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/256811-check_disk.extra-debug.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/256811-check_disk.extra-debug.patch (limited to 'web/attachments/256811-check_disk.extra-debug.patch') 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 @@ +Index: plugins/check_disk.c +=================================================================== +--- plugins/check_disk.c (revision 1828) ++++ plugins/check_disk.c (working copy) +@@ -311,6 +311,10 @@ + available_to_root = fsp.fsu_bfree; + used = total - available_to_root; + ++ if (verbose >= 3) ++ printf ("For %s, total=%llu, available=%llu, available_to_root=%llu, used=%llu, fsp.fsu_files=%llu, fsp.fsu_ffree=%llu\n", ++ me->me_mountdir, total, available, available_to_root, used, fsp.fsu_files, fsp.fsu_ffree); ++ + dused_pct = calculate_percent( used, used + available ); /* used + available can never be > uintmax */ + + dfree_pct = 100 - dused_pct; -- cgit v1.2.3-74-g34f1