Page 1 of 1

Performance Data Graphing for Custom Plugin

Posted: Fri Oct 02, 2015 9:50 am
by ryanb
Hello,

I have created a plugin, which I am using successfully and which returns a number of metrics in the performance data section of output (i.e. after '|'). I have selected 'on' for process per data in the check settings page of the service which is calling the command. However, no rrd file has been created in /usr/local/nagios/share/perfdata/ subdirectory for the host which the service is assigned to.

What do I need to do to enable the retention and graphing of this performance data?

Thanks,
Ryan

Re: Performance Data Graphing for Custom Plugin

Posted: Fri Oct 02, 2015 10:25 am
by ryanb
I checked in the Advanced tab of the Service Status Detail page, and the performance data is appearing correctly:

listening=26;Connections=20;Connected Ports=8;Remote Ports=20;Remote Hosts:8;tcpActiveOpens=20166;tcpAttemptFails=12770;tcpCurrEstab=20;tcpEstabResets=3392;tcpInSegs=1030686564;tcpOutSegs=1000459657;tcpPassiveOpens=3211;tcpRetransSegs=14020;udpInDatagrams=670208;udpInErrors=0;udpNoPorts=655;udpOutDatagrams=671195;closed=0;listen=0;synSent=0;synReceived=0;established=20;finWait1=0;finWait2=0;closeWait=0;lastAck=0;closing=0;timeWait=0;deleteTCB=0;Uptime:914211563

(I realize it is a lot of variables, but the majority of them should always be 0).

Re: Performance Data Graphing for Custom Plugin

Posted: Fri Oct 02, 2015 10:44 am
by jdalrymple
I notice some of labels and scalars are separated by colons. I suspect that is the issue. Perfdata usually *just works*

Re: Performance Data Graphing for Custom Plugin

Posted: Fri Oct 02, 2015 11:03 am
by ryanb
Thanks for your response. That did turn out to be the issue (I thought I had fixed it before posting, but I missed a few).

Re: Performance Data Graphing for Custom Plugin

Posted: Fri Oct 02, 2015 11:07 am
by jdalrymple
Locking and marking solved.

If it's useful and you don't mind sharing - don't forget to post it to the Exchange.