summaryrefslogtreecommitdiffstats
path: root/web/attachments/256811-check_disk.extra-debug.patch
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/256811-check_disk.extra-debug.patch
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/256811-check_disk.extra-debug.patch')
-rw-r--r--web/attachments/256811-check_disk.extra-debug.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/attachments/256811-check_disk.extra-debug.patch b/web/attachments/256811-check_disk.extra-debug.patch
new file mode 100644
index 0000000..c083be7
--- /dev/null
+++ b/web/attachments/256811-check_disk.extra-debug.patch
@@ -0,0 +1,15 @@
1Index: plugins/check_disk.c
2===================================================================
3--- plugins/check_disk.c (revision 1828)
4+++ plugins/check_disk.c (working copy)
5@@ -311,6 +311,10 @@
6 available_to_root = fsp.fsu_bfree;
7 used = total - available_to_root;
8
9+ if (verbose >= 3)
10+ printf ("For %s, total=%llu, available=%llu, available_to_root=%llu, used=%llu, fsp.fsu_files=%llu, fsp.fsu_ffree=%llu\n",
11+ me->me_mountdir, total, available, available_to_root, used, fsp.fsu_files, fsp.fsu_ffree);
12+
13 dused_pct = calculate_percent( used, used + available ); /* used + available can never be > uintmax */
14
15 dfree_pct = 100 - dused_pct;