Page 1 of 1

what moves perfdata from spool/xidpe to spool/perfdata

Posted: Fri Aug 09, 2013 12:01 pm
by Mitchell
Hello,

In one of Nagios server I am observing that perfdata is moved to spool/xidpe but never gets moved to spool/perfdata to be picked up by npcd. I wanted to understand what moves the perfdata from spool/xidpe to spool/perfdata directory.

Thanks
Ashish

Re: what moves perfdata from spool/xidpe to spool/perfdata

Posted: Fri Aug 09, 2013 12:44 pm
by abrist
That would be the process_perfdata.pl script located at:

Code: Select all

/usr/local/nagios/libexec/process_perfdata.pl
I just ran into someone esle with a problem akin to this, and the issue was that the script was suid'ed. We removed the suid bit and it started working correctly. Can you post the output of:

Code: Select all

ls -la /usr/local/nagios/libexec/process_perfdata.pl

Re: what moves perfdata from spool/xidpe to spool/perfdata

Posted: Fri Aug 09, 2013 1:49 pm
by Mitchell
I have upgraded the pnp4nagios hence..

Code: Select all

[root@pnagios09lxv xidpe]# ls -la /usr/local/pnp4nagios/libexec/process_perfdata.pl
-rwxr-xr-x 1 nagios nagios 53088 Jan  6  2013 /usr/local/pnp4nagios/libexec/process_perfdata.pl
I thought npcd kicks the process_perfdata.pl . And npcd is configured to pickup files from spool/perfdata directory. Am I missing something?

Anyways, I am now using pnp worker to process the perfdata instead of npcd and it is working fine however I still would like to understand what did I miss with nagios+npcd processing perfdata?

Thanks
Ashish

Re: what moves perfdata from spool/xidpe to spool/perfdata

Posted: Fri Aug 09, 2013 2:13 pm
by scottwilkerson
Mitchell wrote:I thought npcd kicks the process_perfdata.pl . And npcd is configured to pickup files from spool/perfdata directory. Am I missing something?
This is correct, but if you upgraded pnp4nagios on your own, you will be somewhat on your own in deciphering what npcd configuration you are now using and making sure that it has the correct path...

Upgrading pnp4nagios from the version delivered in XI is not something that has been tested and documented in house yet...