check_ping and performance data

Bock, Christian Christian.Bock at liz.lsa-net.de
Fri Jun 18 11:19:01 CEST 2004


is it really *that* easy?

I just added the missing information to the output line
in check_pinp.c and everything's working great :-)))

chris


136c136
<               if (display_html == TRUE)
---
 >               if (display_html == TRUE) {
139,140c139,140
<                       printf (_("PING %s - %sPacket loss = %d%%"), state_text (this_result), warn_text,
<                                                       pl);
---
 >                       printf (_("PING %s - %sPacket loss = %d%%"),state_text (this_result), warn_text, pl );
 >
143,146c143,154
<                                                       state_text (this_result), warn_text, pl, rta);
<               if (display_html == TRUE)
<                       printf ("</A>");
<               printf ("\n");
---
 >                                                       state_text (this_result), warn_text, pl, rta );
 >                       printf ("</A>\n");
 >               }
 >               else {
 >               if (pl == 100)
 >                       printf (_("PING %s - %sPacket loss = %d%% | packet_loss=%d%%;%d;%d;0;100"),
 >                                state_text (this_result), warn_text, pl, pl, wpl, cpl );
 >
 >               else
 >                       printf (_("PING %s - %sPacket loss = %d%%, RTA = %2.2f ms | packet_loss=%d%%;%d;%d;0;100 RTA=%2.2fms;%d;%f;;\n"),
 >                                       state_text (this_result), warn_text, pl, rta, pl, wpl, cpl, rta, wrta, crta );
 >               }



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_ping.c
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040618/4e8efbc2/attachment.c>


More information about the Users mailing list