summaryrefslogtreecommitdiffstats
path: root/web/attachments/119648-check_disk.c.diff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/119648-check_disk.c.diff
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/119648-check_disk.c.diff')
-rw-r--r--web/attachments/119648-check_disk.c.diff15
1 files changed, 15 insertions, 0 deletions
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 @@
1--- check_disk.c.orig 2005-02-11 17:37:48.254928480 +0300
2+++ check_disk.c 2005-02-11 17:37:44.193545904 +0300
3@@ -118,8 +118,11 @@
4 if (strcmp (file_system, "none") == 0)
5 strncpy (file_system, mntp, MAX_INPUT_BUFFER-1);
6
7- if (disk_result==STATE_OK && erronly && !verbose)
8+ /* FIX: If everything is ok set result */
9+ if (disk_result==STATE_OK && erronly && !verbose) {
10+ result = max_state (result, disk_result);
11 continue;
12+ }
13
14 if (disk_result!=STATE_OK || verbose>=0)
15 asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output,