summaryrefslogtreecommitdiffstats
path: root/web/attachments/41664-check_ping.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/41664-check_ping.patch')
-rw-r--r--web/attachments/41664-check_ping.patch31
1 files changed, 31 insertions, 0 deletions
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 @@
1Index: check_ping.c
2===================================================================
3RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
4retrieving revision 1.11
5diff -r1.11 check_ping.c
610a11,14
7> * updated Mon Jan 20 19:03:57 CET 2003 by Edwin Eefting (DatuX.nl)
8> * -minor bugfixes
9> * -now returns performance data
10> *
1121c25
12< -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
13---
14> -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%\n\
15138c142,147
16< printf ("\n");
17---
18>
19> /* print performance data */
20> printf("|loss=%d",pl);
21> if (pl != 100)
22> printf(",rta=%f",rta);
23> printf("\n");
24145c154
25<
26---
27>
28343c352
29< max_seconds = crta / 1000.0 * max_packets + max_packets;
30---
31> max_seconds = crta / 1000.0 * max_packets + max_packets + 10;