[Nagiosplug-devel] check_mrtg plugin for version 1.4.3

Sebastien Coutu sebasc at digidyne.ca
Tue Aug 1 21:29:32 CEST 2006


Hi Guys,
 
I had little problems with the check_mrtg plugin which always returned a
STATE_UNKNOWN instead of a STATE_OK even though everything seemed OK. I
hope I didn't misread the help output but I've fixed it by doing the
following changes to the check_mrtg.c :
 
--- check_mrtg.c.orig   2006-08-01 15:20:45.000000000 -0400
+++ check_mrtg.c        2006-08-01 15:20:02.000000000 -0400
@@ -134,6 +134,8 @@
                result = STATE_CRITICAL;
        else if (rate > value_warning_threshold)
                result = STATE_WARNING;
+        else
+               result = STATE_OK;
 
        printf("%s. %s = %lu %s|%s\n",
               (use_average == TRUE) ? _("Avg") : _("Max"),
 
Anybody can tell me if I was right to do this change this way?
 
Thanks!
 
Sebastien Coutu
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20060801/5916e9dd/attachment.html>


More information about the Devel mailing list