From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/119648-check_disk.c.diff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/119648-check_disk.c.diff (limited to 'web/attachments/119648-check_disk.c.diff') diff --git a/web/attachments/119648-check_disk.c.diff b/web/attachments/119648-check_disk.c.diff new file mode 100644 index 0000000..1e0e5fc --- /dev/null +++ b/web/attachments/119648-check_disk.c.diff @@ -0,0 +1,15 @@ +--- check_disk.c.orig 2005-02-11 17:37:48.254928480 +0300 ++++ check_disk.c 2005-02-11 17:37:44.193545904 +0300 +@@ -118,8 +118,11 @@ + if (strcmp (file_system, "none") == 0) + strncpy (file_system, mntp, MAX_INPUT_BUFFER-1); + +- if (disk_result==STATE_OK && erronly && !verbose) ++ /* FIX: If everything is ok set result */ ++ if (disk_result==STATE_OK && erronly && !verbose) { ++ result = max_state (result, disk_result); + continue; ++ } + + if (disk_result!=STATE_OK || verbose>=0) + asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output, -- cgit v1.2.3-74-g34f1