diff options
Diffstat (limited to 'web/attachments/210121-check_disk.multiple_perfdata.patch')
-rw-r--r-- | web/attachments/210121-check_disk.multiple_perfdata.patch | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | Index: plugins/check_disk.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v | ||
4 | retrieving revision 1.81 | ||
5 | diff -u -r1.81 check_disk.c | ||
6 | --- plugins/check_disk.c 20 Dec 2006 19:25:59 -0000 1.81 | ||
7 | +++ plugins/check_disk.c 7 Jan 2007 07:01:22 -0000 | ||
8 | @@ -164,8 +164,8 @@ | ||
9 | double dfree_pct = -1, dused_pct = -1; | ||
10 | double dused_units, dfree_units, dtotal_units; | ||
11 | double dused_inodes_percent, dfree_inodes_percent; | ||
12 | - double warning_high_tide = UINT_MAX; | ||
13 | - double critical_high_tide = UINT_MAX; | ||
14 | + double warning_high_tide; | ||
15 | + double critical_high_tide; | ||
16 | int temp_result; | ||
17 | |||
18 | struct mount_entry *me; | ||
19 | @@ -300,6 +300,11 @@ | ||
20 | Hack here. Trying to get warn/crit levels from freespace_(units|percent) for perf | ||
21 | data. Assumption that start=0. Roll on new syntax... | ||
22 | */ | ||
23 | + | ||
24 | + /* *_high_tide must be reinitialized at each run */ | ||
25 | + warning_high_tide = UINT_MAX; | ||
26 | + critical_high_tide = UINT_MAX; | ||
27 | + | ||
28 | if (path->freespace_units->warning != NULL) { | ||
29 | warning_high_tide = dtotal_units - path->freespace_units->warning->end; | ||
30 | } | ||