CPU Usage in performance graph is not working
CPU Usage in performance graph is not working
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.
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
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
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
Re: CPU Usage in performance graph is not working
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
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?
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
The RRD and XML did not recreate. Attached is a SS of one of the servers.
Thanks.
Thanks.
You do not have the required permissions to view the files attached to this post.
Re: CPU Usage in performance graph is not working
Run the following commands and show the output:
Note: If you are using ramdisk, run the following commands instead:
Is npcd running?
What are the permissions on the RRD & XML files, and the directory?
Substitute <hostname> with the actual hostname of the host to which the "CPU Usage" check is added.
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 -lCode: Select all
ls /var/nagiosramdisk/spool/xidpe | wc -l
ls /var/nagiosramdisk/spool/perfdata/ | wc -l
ls /var/nagiosramdisk/spool/checkresults/ | wc -l
Code: Select all
service npcd statusCode: Select all
ll /usr/local/nagios/share/perfdata/<hostname>
ll -d /usr/local/nagios/share/perfdata/<hostname>Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CPU Usage in performance graph is not working
[ ~]# 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
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
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.logRe: CPU Usage in performance graph is not working
I'm not much of a linux guy. I am not sure what i am looking for in those logs.
Thanks.
Thanks.