CPU Usage in performance graph is not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

CPU Usage in performance graph is not working

Post 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.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: CPU Usage in performance graph is not working

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CPU Usage in performance graph is not working

Post 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
Former Nagios Employee
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: CPU Usage in performance graph is not working

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

Re: CPU Usage in performance graph is not working

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: CPU Usage in performance graph is not working

Post by angus »

The RRD and XML did not recreate. Attached is a SS of one of the servers.

Thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CPU Usage in performance graph is not working

Post 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?

Code: Select all

service npcd status
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: CPU Usage in performance graph is not working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU Usage in performance graph is not working

Post 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
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: CPU Usage in performance graph is not working

Post by angus »

I'm not much of a linux guy. I am not sure what i am looking for in those logs.

Thanks.
Locked