blob: a65f132abc734a3d7b7932556fdd6afaac73f0cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
---
> -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%\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;
|