diff options
Diffstat (limited to 'web/attachments/41664-check_ping.patch')
-rw-r--r-- | web/attachments/41664-check_ping.patch | 31 |
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 @@ | |||
1 | Index: check_ping.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v | ||
4 | retrieving revision 1.11 | ||
5 | diff -r1.11 check_ping.c | ||
6 | 10a11,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 | > * | ||
11 | 21c25 | ||
12 | < -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\ | ||
13 | --- | ||
14 | > -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%\n\ | ||
15 | 138c142,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"); | ||
24 | 145c154 | ||
25 | < | ||
26 | --- | ||
27 | > | ||
28 | 343c352 | ||
29 | < max_seconds = crta / 1000.0 * max_packets + max_packets; | ||
30 | --- | ||
31 | > max_seconds = crta / 1000.0 * max_packets + max_packets + 10; | ||