what moves perfdata from spool/xidpe to spool/perfdata

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Mitchell
Posts: 130
Joined: Thu Jan 05, 2012 2:33 am

what moves perfdata from spool/xidpe to spool/perfdata

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former 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.
User avatar
Mitchell
Posts: 130
Joined: Thu Jan 05, 2012 2:33 am

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

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

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked