Performance graphs and R2.0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
easy2kent
Posts: 45
Joined: Wed Aug 24, 2011 11:11 am

Performance graphs and R2.0

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Performance graphs and R2.0

Post by scottwilkerson »

What results are you getting for the performance graphs? Blank page, continuous spinning processing?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
easy2kent
Posts: 45
Joined: Wed Aug 24, 2011 11:11 am

Re: Performance graphs and R2.0

Post 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
Last edited by easy2kent on Wed Feb 08, 2012 1:28 pm, edited 1 time in total.
easy2kent
Posts: 45
Joined: Wed Aug 24, 2011 11:11 am

Re: Performance graphs and R2.0

Post by easy2kent »

Here is what the graph looks like now:
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Performance graphs and R2.0

Post by scottwilkerson »

Can I have you verify that npcd is running

Code: Select all

service npcd status
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
easy2kent
Posts: 45
Joined: Wed Aug 24, 2011 11:11 am

Re: Performance graphs and R2.0

Post 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
easy2kent
Posts: 45
Joined: Wed Aug 24, 2011 11:11 am

Re: Performance graphs and R2.0

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graphs and R2.0

Post by mguthrie »

Thanks for the follow-up, we'll have to make sure to add that to our FAQ for performance graph issues.