Page 1 of 3
CPU Usage in performance graph is not working
Posted: Thu Nov 05, 2015 8:37 am
by angus
My CPU useage perf graphs are no working. When i click on them i only see "No Data to Display". October 13th is the last time i have history in the perf graph. This is only affecting my NCPA servers.
I read through this post but i didn't see the section mentioned on the Admin tab.
https://support.nagios.com/forum/viewto ... =6&t=28385
Please assist.
Thanks.
Re: CPU Usage in performance graph is not working
Posted: Thu Nov 05, 2015 1:02 pm
by angus
Thinking back, this may be in relation to changing the CPU monitoring to Aggregate, combining all the CPUs into one. i hope this helps.
Re: CPU Usage in performance graph is not working
Posted: Thu Nov 05, 2015 2:46 pm
by rkennedy
Did the graphs stop working when you changed the monitoring to aggregate? The reason I ask is because this thread may be related to what you're experiencing.
https://support.nagios.com/forum/viewto ... 10#p135966
Re: CPU Usage in performance graph is not working
Posted: Mon Nov 09, 2015 1:09 pm
by angus
I removed CPU_Usage.rrd and xml from a couple servers but it hasn't repopulated. How long does this take or do i need to make a manual change?
Re: CPU Usage in performance graph is not working
Posted: Mon Nov 09, 2015 2:45 pm
by scottwilkerson
Usually they take about 15 minutes before data starts showing up.
Did the .rrd re-generate?
If not, is npcd running?
Can you send a screenshot of the Advances tab in the Service status detail page?
Re: CPU Usage in performance graph is not working
Posted: Mon Nov 09, 2015 2:59 pm
by angus
The RRD and XML did not recreate. Attached is a SS of one of the servers.
Thanks.
Re: CPU Usage in performance graph is not working
Posted: Mon Nov 09, 2015 3:24 pm
by lmiltchev
Run the following commands and show the output:
Code: Select all
ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
Note: If you are using ramdisk, run the following commands instead:
Code: Select all
ls /var/nagiosramdisk/spool/xidpe | wc -l
ls /var/nagiosramdisk/spool/perfdata/ | wc -l
ls /var/nagiosramdisk/spool/checkresults/ | wc -l
Is npcd running?
What are the permissions on the RRD & XML files, and the directory?
Code: Select all
ll /usr/local/nagios/share/perfdata/<hostname>
ll -d /usr/local/nagios/share/perfdata/<hostname>
Substitute <hostname> with the actual hostname of the host to which the "CPU Usage" check is added.
Re: CPU Usage in performance graph is not working
Posted: Tue Nov 10, 2015 1:33 pm
by angus
[ ~]# ls /usr/local/nagios/var/spool/xidpe | wc -l
2
[ ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
2
[ ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
0
[ ~]# service npcd status
NPCD running (pid 1516).
[ ~]# ll /usr/local/nagios/share/perfdata/hostname
total 2268
-rwxrwxr-x 1 nagios nagios 768224 Jul 30 16:30 _admin_index.jsp_Website_Defacement.rrd
-rwxrwxr-x 1 nagios nagios 2980 Jul 30 16:30 _admin_index.jsp_Website_Defacement.xml
-rwxrwxr-x 1 nagios nagios 768224 Aug 7 10:36 _HOST_.rrd
-rwxrwxr-x 1 nagios nagios 2575 Aug 7 10:36 _HOST_.xml
-rwxrwxr-x 1 nagios nagios 768224 Jul 30 16:31 Web_Page_Content.rrd
-rwxrwxr-x 1 nagios nagios 3070 Jul 30 16:31 Web_Page_Content.xml
[ ~]# ll -d /usr/local/nagios/share/perfdata/hostname
drwxrwxr-x 2 nagios nagios 4096 Aug 7 10:36 /usr/local/nagios/share/perfdata/Hostname
You have new mail in /var/spool/mail/root
Re: CPU Usage in performance graph is not working
Posted: Tue Nov 10, 2015 4:43 pm
by ssax
Do you see any relevant information in any of these files?
Code: Select all
/var/log/cron
/usr/local/nagiosxi/var/perfdataproc.log
/usr/local/nagios/var/npcd.log
/usr/local/nagios/var/perfdata.log
Re: CPU Usage in performance graph is not working
Posted: Mon Nov 16, 2015 8:38 am
by angus
I'm not much of a linux guy. I am not sure what i am looking for in those logs.
Thanks.