From: Thomas Guyot-Sionnest Date: Wed, 3 Dec 2008 13:00:05 +0000 (-0500) Subject: check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068) X-Git-Url: https://git.tokkee.org/?p=nagiosplug.git;a=commitdiff_plain;h=f8b606b728f7ffd3333f93a21ee4bacaea00e7b3 check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068) --- diff --git a/NEWS b/NEWS index 729beae..b37fe70 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ This file documents the major additions and syntax changes between releases. check_disk: make autofs mount paths specified with -p before we determing the mount list (Erik Welch) Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265) Re-bundled libtap as a built-in library (--enable-libtap): detects system library as pre-1.4.13 and does not install the built-in library anymore + Fixed check_mrtg returning UNKNOWN instead of OK (bug #2378068) 1.4.13 25th Sept 2008 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) diff --git a/THANKS.in b/THANKS.in index 7784be9..eb6158a 100644 --- a/THANKS.in +++ b/THANKS.in @@ -244,3 +244,4 @@ Steve Rader Dieter Van de Walle Jan Lipphaus Erik Welch +Nik Soggia diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c index 550326b..65260ed 100644 --- a/plugins/check_mrtg.c +++ b/plugins/check_mrtg.c @@ -53,7 +53,7 @@ char *units; int main (int argc, char **argv) { - int result = STATE_UNKNOWN; + int result = STATE_OK; FILE *fp; int line; char input_buffer[MAX_INPUT_BUFFER];