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
what moves perfdata from spool/xidpe to spool/perfdata
Re: what moves perfdata from spool/xidpe to spool/perfdata
That would be the process_perfdata.pl script located at:
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
/usr/local/nagios/libexec/process_perfdata.plCode: Select all
ls -la /usr/local/nagios/libexec/process_perfdata.plFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: what moves perfdata from spool/xidpe to spool/perfdata
I have upgraded the pnp4nagios hence..
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
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: what moves perfdata from spool/xidpe to spool/perfdata
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...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?
Upgrading pnp4nagios from the version delivered in XI is not something that has been tested and documented in house yet...