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. --- .../210121-check_disk.multiple_perfdata.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/attachments/210121-check_disk.multiple_perfdata.patch (limited to 'web/attachments/210121-check_disk.multiple_perfdata.patch') diff --git a/web/attachments/210121-check_disk.multiple_perfdata.patch b/web/attachments/210121-check_disk.multiple_perfdata.patch new file mode 100644 index 0000000..bf2d265 --- /dev/null +++ b/web/attachments/210121-check_disk.multiple_perfdata.patch @@ -0,0 +1,30 @@ +Index: plugins/check_disk.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v +retrieving revision 1.81 +diff -u -r1.81 check_disk.c +--- plugins/check_disk.c 20 Dec 2006 19:25:59 -0000 1.81 ++++ plugins/check_disk.c 7 Jan 2007 07:01:22 -0000 +@@ -164,8 +164,8 @@ + double dfree_pct = -1, dused_pct = -1; + double dused_units, dfree_units, dtotal_units; + double dused_inodes_percent, dfree_inodes_percent; +- double warning_high_tide = UINT_MAX; +- double critical_high_tide = UINT_MAX; ++ double warning_high_tide; ++ double critical_high_tide; + int temp_result; + + struct mount_entry *me; +@@ -300,6 +300,11 @@ + Hack here. Trying to get warn/crit levels from freespace_(units|percent) for perf + data. Assumption that start=0. Roll on new syntax... + */ ++ ++ /* *_high_tide must be reinitialized at each run */ ++ warning_high_tide = UINT_MAX; ++ critical_high_tide = UINT_MAX; ++ + if (path->freespace_units->warning != NULL) { + warning_high_tide = dtotal_units - path->freespace_units->warning->end; + } -- cgit v1.2.3-74-g34f1