Performance Graphs not working - process_perfdata.pl error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
opsadmin
Posts: 7
Joined: Thu Jun 28, 2018 4:16 am

Performance Graphs not working - process_perfdata.pl error

Post by opsadmin »

I've trawled through a lot of support posts and articles about this and I've exhausted troubleshooting so I hope someone can help.

Performance data isn't showing on our Nagios XI environment (version 5.5.1).

Currently when manually trying to start the process_perfdata.pl process I'm getting the error:

2018-09-11 16:14:30 [5711] [2] Using Config File /usr/local/nagios/etc/pnp/process_perfdata.cfg parameters
2018-09-11 16:14:30 [5711] [1] process_perfdata.pl-0.6.11 starting in SYNC Mode
2018-09-11 16:14:30 [5711] [1] Cant find Nagios Environment. Exiting ....

Happy to send Nagios profile plus configuration files for Nagios, NPCD etc via PM if someone is able to understand where we've gone wrong. It stopped pulling data through a few months ago and I've found some time to look at it properly now but I'm unable to sort it.

Thanks in advance
Sarah :)
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Performance Graphs not working - process_perfdata.pl err

Post by npolovenko »

Hello, @opsadmin. Yes, could you PM your system profile to me.
Click the "Admin" > "System Profile" Menu
Then click the "Download Profile" button
Were there any updates or major changes done to this server before the perfdata stopped working?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
opsadmin
Posts: 7
Joined: Thu Jun 28, 2018 4:16 am

Re: Performance Graphs not working - process_perfdata.pl err

Post by opsadmin »

Hi, I'm unable to PM as I've not been on the forum long. Is there another method I could send it?

As far as I'm aware there were no updates run before it stopped working. We have done a few updates since it stopped though in the hope it may fix it (if it were a bug for example).

Another thing I've noticed is that there are no xml/rrd files being generated in the /usr/local/nagios/share/perfdata/ directory for new servers.

Thanks
Sarah
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Performance Graphs not working - process_perfdata.pl err

Post by npolovenko »

Thanks, @opsadmin. I received the profile. Looks like you had a ramdisk at some point but not anymore. Your perfdata commands were modified to use the ramdisk.

Open the /usr/local/nagios/etc/commands.cfg file, find and replace the following commands:
define command {
command_name process-service-perfdata-file-bulk
command_line /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.service
}

define command {
command_name process-host-perfdata-file-bulk
command_line /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
}
With:
define command {
command_name process-service-perfdata-file-bulk
command_line /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
}
define command {
command_name process-host-perfdata-file-bulk
command_line /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
}

Or you can just reinstall the ramdisk.
https://assets.nagios.com/downloads/nag ... giosXI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
opsadmin
Posts: 7
Joined: Thu Jun 28, 2018 4:16 am

Re: Performance Graphs not working - process_perfdata.pl err

Post by opsadmin »

Perfect thank you VERY much! This has fixed the issue.

Thanks
Sarah
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graphs not working - process_perfdata.pl err

Post by scottwilkerson »

opsadmin wrote:Perfect thank you VERY much! This has fixed the issue.

Thanks
Sarah
Excellent!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked