Page 1 of 1
Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 8:30 am
by easy2kent
Have the VM of Nagios.
The performance graphs have not worked since upgrading to R2.0. Is there a way to fix this or downgrade to 1.8? 1.8 worked great but I figured it was time to upgrade and now the performance graphs do not work.
Thanks,
Kent
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 9:59 am
by scottwilkerson
What results are you getting for the performance graphs? Blank page, continuous spinning processing?
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 1:25 pm
by easy2kent
The graphs were going fine until the upgrade and now the data just looks like it stopped for example the CPU of one of the servers nagios is monitoring is always around 20-30 percent and now there is no graph data just an empty graph.
As I read through more posts in the forum I found out I think it is the same issue with the sourceguardian not installing right. I cannot figure out how to fix it though.
I get this when trying to upgrade again. No valid Sourceguardian extension found for PHP version 5.1
Thanks
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 1:26 pm
by easy2kent
Here is what the graph looks like now:
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 2:47 pm
by scottwilkerson
Can I have you verify that npcd is running
And then also look at the following
Code: Select all
tail -f /usr/local/nagios/var/npcd.log
and
Code: Select all
tail -f /usr/local/nagios/var/perfdata.log
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 2:57 pm
by easy2kent
The npcd service is running. The npcd.log looks like this
[02-08-2012 14:57:33] NPCD: ERROR: Executed command exits with return code '126'
[02-08-2012 14:57:33] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661535'
[02-08-2012 14:57:33] NPCD: Processing file host-perfdata.1328661550 with ID -1219220592 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661550
[02-08-2012 14:57:33] NPCD: Processing file 'host-perfdata.1328661550'
[02-08-2012 14:57:33] NPCD: ERROR: Executed command exits with return code '126'
[02-08-2012 14:57:33] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661550'
[02-08-2012 14:57:33] NPCD: Processing file host-perfdata.1328661565 with ID -1229710448 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661565
[02-08-2012 14:57:33] NPCD: Processing file 'host-perfdata.1328661565'
[02-08-2012 14:57:33] NPCD: ERROR: Executed command exits with return code '126'
[02-08-2012 14:57:33] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661565'
[02-08-2012 14:57:33] NPCD: Processing file host-perfdata.1328661580 with ID -1240200304 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1328661580
[02-08-2012 14:57:33] NPCD: Processing file 'host-perfdata.1328661580'
The perfdata.log looks like this:
2011-07-26 09:37:20 [3659] [0] *** TIMEOUT: Timeout after 5 secs. ***
2011-07-26 09:37:20 [3659] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2011-07-26 09:37:20 [3659] [0] *** TIMEOUT: Please check your npcd.cfg
2011-07-26 09:37:20 [3659] [0] *** TIMEOUT: Could not delete /usr/local/nagios/var/spool/perfdata//host-perfdata.1311691017-PID-3659:No such file or directory
2011-07-26 09:37:20 [3659] [0] *** Timeout while processing Host: ".pnp-internal" Service: "runtime"
2011-07-26 09:37:20 [3659] [0] *** process_perfdata.pl terminated on signal ALRM
Thanks again,
Kent
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 3:53 pm
by easy2kent
After searching for solutions, I looked back and figured I should look at the log again. So I found out what error 126 does and found it was a permissions error. I set the permission on process_perfdata.pl to be able to be executed and it started working again. Even caught up with all of the time it was off.
Thanks for leading me in the right direction and maybe this will help others,
Kent
Re: Performance Graphs and R2.0
Posted: Wed Feb 08, 2012 4:54 pm
by mguthrie
Thanks for the follow-up, we'll have to make sure to add that to our FAQ for performance graph issues.