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/101069-check_swap.diff.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/attachments/101069-check_swap.diff.txt (limited to 'web/attachments/101069-check_swap.diff.txt') diff --git a/web/attachments/101069-check_swap.diff.txt b/web/attachments/101069-check_swap.diff.txt new file mode 100644 index 0000000..24cfdad --- /dev/null +++ b/web/attachments/101069-check_swap.diff.txt @@ -0,0 +1,18 @@ +49c49 +< char tmp_status[MAX_INPUT_BUFFER]; +--- +> +197c197 +< printf (_("total=%llu, free=%llu\n"), dsktotal, +dskfree); +--- +> printf (_("total=%d, free=%d\n"), dsktotal, dskf +ree); +314,315c314,315 +< sprintf (tmp_status, _(" %d%% free (%llu MB out of %llu MB)"), +< (100 - percent_used), free_swap, + total_swap); +--- +> asprintf (&tmp_status, _(" %d%% free (%llu MB out of %llu MB)"), +> (100 - percent_used), free_swap, + total_swap); -- cgit v1.2.3-74-g34f1