Performance Data Graphing for Custom Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ryanb
Posts: 33
Joined: Wed Feb 26, 2014 6:03 pm

Performance Data Graphing for Custom Plugin

Post 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
ryanb
Posts: 33
Joined: Wed Feb 26, 2014 6:03 pm

Re: Performance Data Graphing for Custom Plugin

Post 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).
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Performance Data Graphing for Custom Plugin

Post by jdalrymple »

I notice some of labels and scalars are separated by colons. I suspect that is the issue. Perfdata usually *just works*
ryanb
Posts: 33
Joined: Wed Feb 26, 2014 6:03 pm

Re: Performance Data Graphing for Custom Plugin

Post 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).
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Performance Data Graphing for Custom Plugin

Post 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.
Locked