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/399715-check_disk.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 web/attachments/399715-check_disk.patch (limited to 'web/attachments/399715-check_disk.patch') diff --git a/web/attachments/399715-check_disk.patch b/web/attachments/399715-check_disk.patch new file mode 100644 index 0000000..7f8a4f3 --- /dev/null +++ b/web/attachments/399715-check_disk.patch @@ -0,0 +1,31 @@ +161a162 +> char *flag_header; +222d222 +< +357d356 +< +391,393c390,397 +< +< asprintf (&output, "%s %s %.0f %s (%.0f%%", +< output, +--- +> +> if(disk_result && verbose >= 1) { +> asprintf(&flag_header, " %s [", state_text (disk_result)); +> } else { +> asprintf(&flag_header, ""); +> } +> asprintf (&output, "%s%s %s %.0f %s (%.0f%%", +> output, flag_header, +399c403 +< asprintf(&output, "%s inode=-);", output); +--- +> asprintf(&output, "%s inode=-)%s;", output, (disk_result ? "]" : "")); +401c405 +< asprintf(&output, "%s inode=%.0f%%);", output, dfree_inodes_percent ); +--- +> asprintf(&output, "%s inode=%.0f%%)%s;", output, dfree_inodes_percent, ((disk_result && verbose >= 1) ? "]" : "")); +403c407 +< +--- +> free(flag_header); -- cgit v1.2.3-74-g34f1