From f8b606b728f7ffd3333f93a21ee4bacaea00e7b3 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 3 Dec 2008 08:00:05 -0500 Subject: [PATCH] check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068) --- NEWS | 1 + THANKS.in | 1 + plugins/check_mrtg.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.30.2