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/115753-check_disk.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 web/attachments/115753-check_disk.patch (limited to 'web/attachments/115753-check_disk.patch') diff --git a/web/attachments/115753-check_disk.patch b/web/attachments/115753-check_disk.patch new file mode 100644 index 0000000..aafe4dc --- /dev/null +++ b/web/attachments/115753-check_disk.patch @@ -0,0 +1,28 @@ +diff -u check_disk.c-orig check_disk.c +--- check_disk.c-orig 2005-01-14 10:14:18.650350000 +1100 ++++ check_disk.c 2005-01-14 10:19:13.238477000 +1100 +@@ -20,6 +20,7 @@ + * error. + * + * Notes: ++ * - Fixed logic error with -e switch where result not set (DA, 14/1/2005) + * - IRIX support added by Charlie Cook 4-16-1999 + * - Modifications by Karl DeBisschop 1999-11-24 + * reformat code to 80 char screen width +@@ -118,6 +119,8 @@ + if (strcmp (file_system, "none") == 0) + strncpy (file_system, mntp, MAX_INPUT_BUFFER-1); + ++ result = max_state (result, disk_result); ++ + if (disk_result==STATE_OK && erronly && !verbose) + continue; + +@@ -125,7 +128,6 @@ + asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output, + free_disk, 100 - usp, display_mntp ? mntp : file_system); + +- result = max_state (result, disk_result); + } + + else { -- cgit v1.2.3-74-g34f1