[Pkg-nagios-devel] Bug#335871: nagios-plugins: check_mrtg return
unknown when state is ok
uno at sysplan.co.jp
uno at sysplan.co.jp
Wed Oct 26 12:16:43 UTC 2005
Package: nagios-plugins
Version: 1.4-6
Severity: normal
Hi,
the check_mrtg command is returning STATE_UNKNOWN when the state is ok.
Here is a one line patch for check_mrtg.
It just fix the default result value is STATE_OK.
(or it needs to put a code "result = STATE_OK" in place.)
--- check_mrtg.c.ORIG 2004-12-26 08:17:44.000000000 +0900
+++ check_mrtg.c 2005-10-26 20:38:22.000000000 +0900
@@ -43,7 +43,7 @@
int
main (int argc, char **argv)
{
- int result = STATE_UNKNOWN;
+ int result = STATE_OK;
FILE *fp;
int line;
char input_buffer[MAX_INPUT_BUFFER];
Thanks,
UNO Takeshi
More information about the Pkg-nagios-devel
mailing list