summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2008-12-03 13:00:05 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2008-12-03 13:00:05 (GMT)
commitf8b606b728f7ffd3333f93a21ee4bacaea00e7b3 (patch)
treed319e717a4c0144267dd71bd31e8c9fe8ea6d1e9
parentd2f56c4e8609ea8281e22ad62fbaa208965d32d2 (diff)
downloadmonitoring-plugins-f8b606b728f7ffd3333f93a21ee4bacaea00e7b3.tar.gz
check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068)
-rw-r--r--NEWS1
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_mrtg.c2
3 files changed, 3 insertions, 1 deletions
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.
18 check_disk: make autofs mount paths specified with -p before we determing the mount list (Erik Welch) 18 check_disk: make autofs mount paths specified with -p before we determing the mount list (Erik Welch)
19 Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265) 19 Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265)
20 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 20 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
21 Fixed check_mrtg returning UNKNOWN instead of OK (bug #2378068)
21 22
221.4.13 25th Sept 2008 231.4.13 25th Sept 2008
23 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) 24 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
244Dieter Van de Walle 244Dieter Van de Walle
245Jan Lipphaus 245Jan Lipphaus
246Erik Welch 246Erik Welch
247Nik 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;
53int 53int
54main (int argc, char **argv) 54main (int argc, char **argv)
55{ 55{
56 int result = STATE_UNKNOWN; 56 int result = STATE_OK;
57 FILE *fp; 57 FILE *fp;
58 int line; 58 int line;
59 char input_buffer[MAX_INPUT_BUFFER]; 59 char input_buffer[MAX_INPUT_BUFFER];