Page 1 of 1

Performance Graphs not working - process_perfdata.pl error

Posted: Tue Sep 11, 2018 10:19 am
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 :)

Re: Performance Graphs not working - process_perfdata.pl err

Posted: Tue Sep 11, 2018 3:59 pm
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?

Re: Performance Graphs not working - process_perfdata.pl err

Posted: Wed Sep 12, 2018 2:19 am
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

Re: Performance Graphs not working - process_perfdata.pl err

Posted: Wed Sep 12, 2018 1:08 pm
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

Re: Performance Graphs not working - process_perfdata.pl err

Posted: Thu Sep 13, 2018 10:18 am
by opsadmin
Perfect thank you VERY much! This has fixed the issue.

Thanks
Sarah

Re: Performance Graphs not working - process_perfdata.pl err

Posted: Thu Sep 13, 2018 11:07 am
by scottwilkerson
opsadmin wrote:Perfect thank you VERY much! This has fixed the issue.

Thanks
Sarah
Excellent!

Locking thread