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/41664-check_ping.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 web/attachments/41664-check_ping.patch (limited to 'web/attachments/41664-check_ping.patch') diff --git a/web/attachments/41664-check_ping.patch b/web/attachments/41664-check_ping.patch new file mode 100644 index 0000000..a65f132 --- /dev/null +++ b/web/attachments/41664-check_ping.patch @@ -0,0 +1,31 @@ +Index: check_ping.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v +retrieving revision 1.11 +diff -r1.11 check_ping.c +10a11,14 +> * updated Mon Jan 20 19:03:57 CET 2003 by Edwin Eefting (DatuX.nl) +> * -minor bugfixes +> * -now returns performance data +> * +21c25 +< -H -w ,%% -c ,%%\n\ +--- +> -H -w ,% -c ,%\n\ +138c142,147 +< printf ("\n"); +--- +> +> /* print performance data */ +> printf("|loss=%d",pl); +> if (pl != 100) +> printf(",rta=%f",rta); +> printf("\n"); +145c154 +< +--- +> +343c352 +< max_seconds = crta / 1000.0 * max_packets + max_packets; +--- +> max_seconds = crta / 1000.0 * max_packets + max_packets + 10; -- cgit v1.2.3-74-g34f1