diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-12-03 13:00:05 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-12-03 13:00:05 (GMT) |
commit | f8b606b728f7ffd3333f93a21ee4bacaea00e7b3 (patch) | |
tree | d319e717a4c0144267dd71bd31e8c9fe8ea6d1e9 | |
parent | d2f56c4e8609ea8281e22ad62fbaa208965d32d2 (diff) | |
download | monitoring-plugins-f8b606b728f7ffd3333f93a21ee4bacaea00e7b3.tar.gz |
check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068)
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_mrtg.c | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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 | ||
22 | 1.4.13 25th Sept 2008 | 23 | 1.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) |
@@ -244,3 +244,4 @@ Steve Rader | |||
244 | Dieter Van de Walle | 244 | Dieter Van de Walle |
245 | Jan Lipphaus | 245 | Jan Lipphaus |
246 | Erik Welch | 246 | Erik Welch |
247 | 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; | |||
53 | int | 53 | int |
54 | main (int argc, char **argv) | 54 | main (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]; |