Page 1 of 3
Performace graphs not displayed after upgrade
Posted: Fri May 31, 2013 5:03 am
by fao
Hello,
Following upgrade to the latest release, the performance graphs are no more displayed. We've unsuccessfully tried the steps in this link :
http://support.nagios.com/wiki/index.ph ... _Displayed
How can we sort it out?
Thanks
Patrick
Re: Performace graphs not displayed after upgrade
Posted: Fri May 31, 2013 9:42 am
by abrist
Few questions:
1. Do the "graph explorer" graphs work?
2. Is npcd running?
3. What is the output of (post in code wraps):
Code: Select all
tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
4. Do a running tail on the httpd error log and while it is tailing try to view a graph:
(kill it afterwards and post the output in code wraps)
Re: Performace graphs not displayed after upgrade
Posted: Fri May 31, 2013 11:09 am
by fao
Yes, Graph Explorer works and npcd is also running.
[root@hqldvnagios1 ~]# service npcd status
NPCD running (pid 20990).
[root@hqldvnagios1 ~]#
[root@hqldvnagios1 ~]# tail -25 /usr/local/nagios/var/npcd.log
[05-31-2013 18:07:44] NPCD: Regular File: 1370016453.perfdata.host
[05-31-2013 18:07:44] NPCD: A thread was started on thread_counter = 0
[05-31-2013 18:07:44] NPCD: DEBUG: load 0.110000/10.000000
[05-31-2013 18:07:44] NPCD: ThreadCounter 1/5 File is host-perfdata.1330987694-PID-2109
[05-31-2013 18:07:44] NPCD: File 'host-perfdata.1330987694-PID-2109' is an already in process PNP file. Leaving it untouched.
[05-31-2013 18:07:44] NPCD: Have to wait: Filecounter = 2 - thread_counter = 1
[05-31-2013 18:07:44] NPCD: Processing file 1370016453.perfdata.host with ID -1215902864 - going to exec /usr/local/nagios/libexec/process_perfd ata.pl -n -b /usr/local/nagios/var/spool/perfdata//1370016453.perfdata.host
[05-31-2013 18:07:44] NPCD: Processing file '1370016453.perfdata.host'
[05-31-2013 18:07:44] NPCD: No more files to process... waiting for 15 seconds
[05-31-2013 18:07:59] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[05-31-2013 18:07:59] NPCD: DEBUG: load 0.140000/10.000000
[05-31-2013 18:07:59] NPCD: ThreadCounter 0/5 File is .
[05-31-2013 18:07:59] NPCD: DEBUG: load 0.140000/10.000000
[05-31-2013 18:07:59] NPCD: ThreadCounter 0/5 File is ..
[05-31-2013 18:07:59] NPCD: DEBUG: load 0.140000/10.000000
[05-31-2013 18:07:59] NPCD: ThreadCounter 0/5 File is 1370016468.perfdata.host
[05-31-2013 18:07:59] NPCD: Regular File: 1370016468.perfdata.host
[05-31-2013 18:07:59] NPCD: A thread was started on thread_counter = 0
[05-31-2013 18:07:59] NPCD: DEBUG: load 0.140000/10.000000
[05-31-2013 18:07:59] NPCD: ThreadCounter 1/5 File is host-perfdata.1330987694-PID-2109
[05-31-2013 18:07:59] NPCD: File 'host-perfdata.1330987694-PID-2109' is an already in process PNP file. Leaving it untouched.
[05-31-2013 18:07:59] NPCD: Have to wait: Filecounter = 2 - thread_counter = 1
[05-31-2013 18:07:59] NPCD: Processing file 1370016468.perfdata.host with ID -1215902864 - going to exec /usr/local/nagios/libexec/process_perfd ata.pl -n -b /usr/local/nagios/var/spool/perfdata//1370016468.perfdata.host
[05-31-2013 18:07:59] NPCD: Processing file '1370016468.perfdata.host'
[05-31-2013 18:07:59] NPCD: No more files to process... waiting for 15 seconds
[root@hqldvnagios1 ~]#
[root@hqldvnagios1 ~]# tail -25 /tmp/perfdata.log
1370015337||HQLTEST1||check_swap||SWAP OK - 89% free (225 MB out of 255 MB)||swap=225MB; 0;0;0;255
[root@hqldvnagios1 ~]#
[root@hqldvnagios1 ~]# tail -f /var/log/httpd/error_log
[Sun May 26 03:21:04 2013] [notice] Digest: generating secret for digest authentication ...
[Sun May 26 03:21:04 2013] [notice] Digest: done
[Sun May 26 03:21:05 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Fri May 31 11:54:11 2013] [notice] caught SIGTERM, shutting down
[Fri May 31 11:54:21 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 11:54:21 2013] [notice] Digest: generating secret for digest authentication ...
[Fri May 31 11:54:21 2013] [notice] Digest: done
[Fri May 31 11:54:21 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
^C
Re: Performace graphs not displayed after upgrade
Posted: Fri May 31, 2013 2:33 pm
by slansing
So we are talking about the classic PNP graphs located at Home > Services > "Service Name" > Performance Graphs
Do you see any errors on this page? Can you run the following command, and then try to load one of your service's graphs through this page?
let us know what the output is when loading the page.
Re: Performace graphs not displayed after upgrade
Posted: Mon Jun 03, 2013 2:17 am
by fao
There is no error in /var/log/httpd/error_log while trying to access performance graphs.
Only this is reported on the GUI : "No performance graphs were found for this service".
Re: Performace graphs not displayed after upgrade
Posted: Mon Jun 03, 2013 11:03 am
by abrist
Are all pnp graphs missing? Did you by chance upgrade pnp4nagios (this is not suggested)?
Re: Performace graphs not displayed after upgrade
Posted: Wed Jun 05, 2013 8:35 am
by fao
Yep! all pnp graphs are missing.
No, I haven't upgraded pnp4nagios.
Re: Performace graphs not displayed after upgrade
Posted: Wed Jun 05, 2013 12:32 pm
by abrist
Just to make sure that pnp4nagios is configured correctly, lets do an in-place reinstall of the component:
Code: Select all
cd /tmp/nagiosxi/subcomponents/pnp
./install
Re: Performace graphs not displayed after upgrade
Posted: Wed Jun 05, 2013 2:54 pm
by fao
pnp reinstalled, performance graphs still not displayed.
Re: Performace graphs not displayed after upgrade
Posted: Wed Jun 05, 2013 4:28 pm
by slansing
Are you able to see the graph explorer graphs?:
Home > Graph Explorer
Can you post the output of the following:
Code: Select all
ll /usr/local/nagios/var/spool/xidpe/|wc -l
ll /usr/local/nagios/var/spool/perfdata/|wc -l
And then run those two commands again about 5 minutes later and compare the output, please show all 4: