aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_mrtgtraf.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-14 04:09:19 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-14 04:09:19 +0000
commit4e318b9277ba5209fab447da5afa3c0a22a681d9 (patch)
tree65e99d3a8181584d75726390c5968270c21afa63 /plugins/check_mrtgtraf.c
parentb86b521b38a993b49e03f827859aea672fdfa806 (diff)
downloadmonitoring-plugins-4e318b9277ba5209fab447da5afa3c0a22a681d9.tar.gz
use fperfdata
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@849 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mrtgtraf.c')
-rw-r--r--plugins/check_mrtgtraf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index cdb50f31..d23b76d0 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -179,14 +179,14 @@ main (int argc, char **argv)
(use_average == TRUE) ? _("Avg") : _("Max"), adjusted_incoming_rate,
incoming_speed_rating, (use_average == TRUE) ? _("Avg") : _("Max"),
adjusted_outgoing_rate, outgoing_speed_rating,
- perfdata("in", (long) adjusted_incoming_rate, incoming_speed_rating,
- (int) incoming_warning_threshold, (long) incoming_warning_threshold,
- (int) incoming_critical_threshold, (long) incoming_critical_threshold,
- TRUE, 0, TRUE, (long) incoming_speed_rating),
- perfdata("in", (long) adjusted_outgoing_rate, outgoing_speed_rating,
- (int) outgoing_warning_threshold, (long) outgoing_warning_threshold,
- (int) outgoing_critical_threshold, (long) outgoing_critical_threshold,
- TRUE, 0, TRUE, (long) outgoing_speed_rating));
+ fperfdata("in", adjusted_incoming_rate, incoming_speed_rating,
+ (int)incoming_warning_threshold, incoming_warning_threshold,
+ (int)incoming_critical_threshold, incoming_critical_threshold,
+ TRUE, 0, FALSE, 0),
+ fperfdata("in", adjusted_outgoing_rate, outgoing_speed_rating,
+ (int)outgoing_warning_threshold, outgoing_warning_threshold,
+ (int)outgoing_critical_threshold, outgoing_critical_threshold,
+ TRUE, 0, FALSE, 0));
printf (_("Traffic %s - %s\n"), state_text(result), error_message);