[Nagiosplug-devel] PATCH: check_mrtgtraf.c
Paul Dlug
paul at aps.org
Wed Oct 30 19:45:03 CET 2002
Looks like check_mrtgtraf doesn't actually return a warning or critical
message. Patch follows.
diff -urN check_mrtgtraf.c ~/check_mrtgtraf.c
--- check_mrtgtraf.c Thu Feb 28 01:42:58 2002
+++ /home/paul/check_mrtgtraf.c Wed Oct 30 22:42:24 2002
@@ -198,7 +198,7 @@
if (incoming_rate > incoming_critical_threshold
|| outgoing_rate > outgoing_critical_threshold)
{
result = STATE_CRITICAL;
- sprintf (error_message, "%s. In = %0.1f %s, %s. Out =
%0.1f %s",
+ sprintf (error_message, "Traffic CRITICAL %s. In =
%0.1f %s, %s. Out = %0.1f %s",
(use_average == TRUE)
? "Ave" : "Max", adjusted_incoming_rate,
incoming_speed_rating,
(use_average == TRUE) ? "Ave" : "Max",
adjusted_outgoing_rate, outgoing_speed_rating);
@@ -206,7 +206,7 @@
else if (incoming_rate > incoming_warning_threshold
|| outgoing_rate >
outgoing_warning_threshold) {
result = STATE_WARNING;
- sprintf (error_message, "%s. In = %0.1f %s, %s. Out =
%0.1f %s",
+ sprintf (error_message, "Traffic WARNING %s. In = %0.1f
%s, %s. Out = %0.1f %s",
(use_average == TRUE)
? "Ave" : "Max", adjusted_incoming_rate,
More information about the Devel
mailing list