[Nagiosplug-devel] performance data patch for check_ping.c

Christian Schneemann cschneemann at suse.de
Wed Apr 23 15:29:26 CEST 2008


Hi,
it is not realy a patch, it is just one added line, but maybe it is helpfull.

I've just added a line to print the perfdata, I've tested it with Nagios 
3.0.1.

--- plugins/check_ping.c
+++ plugins/check_ping.c
@@ -165,6 +165,7 @@
 							state_text (this_result), warn_text, pl, rta);
 		if (display_html == TRUE)
 			printf ("</A>");
+                printf("|rta=%2.2f;%f;%f;; pl=%d%%;%d%%;%d%%;;", rta, wrta, 
crta, pl, wpl, cpl);
 		printf ("\n");
 
 		if (verbose >= 2)




Greetings

-- 
Christian Schneemann

-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-plugins-perfdata.patch
Type: text/x-diff
Size: 314 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20080423/f432fd00/attachment.patch>


More information about the Devel mailing list