Переглянути джерело

check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068)

Thomas Guyot-Sionnest 17 роки тому
батько
коміт
f8b606b728
3 змінених файлів з 3 додано та 1 видалено
  1. 1 0
      NEWS
  2. 1 0
      THANKS.in
  3. 1 1
      plugins/check_mrtg.c

+ 1 - 0
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)
 	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)
 	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
 	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
 1.4.13 25th Sept 2008
 	Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
 	Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)

+ 1 - 0
THANKS.in

@@ -244,3 +244,4 @@ Steve Rader
 Dieter Van de Walle
 Dieter Van de Walle
 Jan Lipphaus
 Jan Lipphaus
 Erik Welch
 Erik Welch
+Nik Soggia

+ 1 - 1
plugins/check_mrtg.c

@@ -53,7 +53,7 @@ char *units;
 int
 int
 main (int argc, char **argv)
 main (int argc, char **argv)
 {
 {
-	int result = STATE_UNKNOWN;
+	int result = STATE_OK;
 	FILE *fp;
 	FILE *fp;
 	int line;
 	int line;
 	char input_buffer[MAX_INPUT_BUFFER];
 	char input_buffer[MAX_INPUT_BUFFER];