Page 1 of 1

Pnp4nagios and perfdata

Posted: Wed Sep 11, 2024 10:23 am
by dr00min
Hi all, would really appreciate some thoughts on this issue.

So i have nagios core running fine, I install pnp4nagios, and the moment i start it, two services start delivering perfdata.

Code: Select all

root@kagiosthecanary:/home/serveradmin# ls -la /usr/local/pnp4nagios/var/perfdata/IA-001-WEB-www1.fakename.co.uk/
total 1520
drwxrwxr-x   2 nagios nagios   4096 Sep 11 16:20 .
drwxr-xr-x 109 nagios nagios   4096 Sep 11 11:36 ..
-rw-r--r--   1 nagios nagios 768224 Sep 11 16:20 Check_a_website.rrd
-rw-r--r--   1 nagios nagios   2805 Sep 11 16:20 Check_a_website.xml
-rw-r--r--   1 nagios nagios 768224 Sep 11 16:19 _HOST_.rrd
-rw-r--r--   1 nagios nagios   2702 Sep 11 16:19 _HOST_.xml
I would like all services to deliver perfdata, but I am unsure is to how or why only these 2 started working as the service npcd starts.

I thought I may need to add attributes to each command in commands.cfg, like -f, --perfparse or whatever the manual suggests for each service.
It doesnt seem to have worked.

How can I check if the services are doing their part, and will rrdtool or pnp4nagios give some indication like "yes we see this service trying to output perfdata but computer says no beacuse xxxxx"

Deep breath and thank you for reading :-)

Re: Pnp4nagios and perfdata

Posted: Tue Sep 17, 2024 1:10 pm
by danderson
Thanks for reaching out @dr00min,

What's an example of the output of a service that isn't getting the perfdata delivered? My current theory is that the plugins that those services are running aren't outputting performance data. However, if they are, I'll have to look into it more.