[Nagiosplug-help] check_ping patch for Redhat Enterprise Linux 3
Dan Stromberg
strombrg at dcs.nac.uci.edu
Thu Aug 26 15:51:15 CEST 2004
Please see the attached patch - I haven't tested it all that much, but
it appears to make RHEL 3's ping output format work better when hosts
are down. It already worked fine when hosts were up.
Thanks.
--
Dan Stromberg DCS/NACS/UCI <strombrg at dcs.nac.uci.edu>
-------------- next part --------------
--- plugins/check_ping.c.t 2004-08-26 15:44:31.000000000 -0700
+++ plugins/check_ping.c 2004-08-26 15:46:57.000000000 -0700
@@ -400,6 +400,9 @@
|| sscanf
(input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1
/* Suse 8.0 as reported by Richard * Brodie */
+ || sscanf
+ (input_buffer, "%*d packets transmitted, %*d received, %d%% packet loss, time", &pl) == 1
+ /* RHEL 3 as reported by Dan Stromberg */
)
continue;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20040826/0f588646/attachment.sig>
More information about the Help
mailing list