The performance data can be found in the output of the plugin, if the plugin supports it.<br>There are two types of output actually.<br>The first part before the pipe is handled as "output", this will be shown in your Nagios UI and in notifications.<br>
The second part behind the pipe is handled as "performance data". With this data you'll be able to generate graphs.<br><br>See here for an example with check_ping:<br><br># ./check_ping -H <a href="http://google.com">google.com</a> -w 20,50% -c 50,70%<br>
PING OK - Packet loss = 0%, RTA = 15.99 ms|rta=15.987000ms;20.000000;50.000000;0.000000 pl=0%;50;70;0<br><br>Everything behind the pipe is performance data.<br><br><div class="gmail_quote">On Sun, Apr 8, 2012 at 5:28 PM, <span dir="ltr"><<a href="mailto:asmith@dms.cat">asmith@dms.cat</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'd like to be able to log performance data from Nagios but I have<br>
a couple of doubts.<br>
<br>
First and most fundamental, will I be able to use the normal Nagios<br>
perfdata support with passive NSCA clients?<br>
<br>
Secondly, I have been reading the documentation, ie<br>
<a href="http://nagios.manubulon.com/traduction/docs14en/perfdata.html" target="_blank">http://nagios.manubulon.com/traduction/docs14en/perfdata.html</a><br>
<br>
And it says that a plugin must return additional data after a pipe "|"<br>
sign for Nagios to accept any perforamnce data from that plugin. I was<br>
having a look at the standard plugins and they don't seem to have any<br>
support for performance data, ie:<br>
<br>
# ./check_ping<br>
check_ping: Could not parse arguments<br>
Usage:<br>
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%<br>
[-p packets] [-t timeout] [-4|-6]<br>
<br>
There is no option to enable performance data in the plugin output. Am<br>
I getting this wrong or do none of the standard plugins allow any<br>
performance data capture?<br>
<br>
thanks in advance! Andy.<br>
<br>
------------------------------------------------------------------------------<br>
For Developers, A Lot Can Happen In A Second.<br>
Boundary is the first to Know...and Tell You.<br>
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<br>
<a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>