graph: no data to display

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

Even after updating permissions for CPU files I still have the issue.
It seems to be another kind of problem as any of those .xml or .rrd files have been populated except for HOST files which are up to date.
I checked the permission of directory and all are nagios related. And I have this behavior for all hosts.
Any idea ?

-rw-rw-r-- 1 nagios nagios 4091 Apr 12 12:22 Ping.xml
-rw-rw-r--. 1 nagios nagios 1534768 Apr 12 12:22 Ping.rrd
-rw-rw-r-- 1 nagios nagios 4793 Apr 12 12:22 Memory_Usage.xml
-rw-rw-r--. 1 nagios nagios 1918040 Apr 12 12:22 Memory_Usage.rrd
-rw-rw-r-- 1 nagios nagios 4016 Apr 12 12:22 CPU_Stats.xml.old
-rw-rw-r--. 1 nagios nagios 1534768 Apr 12 12:22 CPU_Stats.rrd.old
-rw-rw-r-- 1 nagios nagios 2207 Apr 12 12:25 _scor_Disk_Usage.xml
-rw-rw-r--. 1 nagios nagios 384952 Apr 12 12:25 _scor_Disk_Usage.rrd
-rw-rw-r-- 1 nagios nagios 0 May 26 22:29 CPU_Stats.rrd
-rw-rw-r-- 1 nagios nagios 0 May 26 22:29 CPU_Stats.xml
-rw-rw-r-- 1 nagios nagios 3977 May 27 21:18 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 May 27 21:18 _HOST_.rrd
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

I'm informed that the RRD import process will create those files, but if the RRD file and XML already exist it'll throw an error and fail to import the data into the RRD database.

Please delete the files you created before using the following command:

Code: Select all

rm /usr/local/nagios/share/perfdata/aenuatvtom/CPU_Stats.{rrd,xml}
Then wait around 20 minutes for the perf data importer to automatically create the file when it imports the first data point.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

I have deleted files but no one is being created after 2h

total 3404
drwxrwxr-x 2 nagios nagios 4096 Jun 1 14:09 .
drwxrwxr-x. 221 nagios nagios 12288 Jun 1 07:00 ..
-rw-rw-r--. 1 nagios nagios 1534768 Jun 1 14:09 _HOST_.rrd
-rw-rw-r-- 1 nagios nagios 3970 Jun 1 14:09 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 Apr 12 12:22 Ping.rrd
-rw-rw-r-- 1 nagios nagios 4091 Apr 12 12:22 Ping.xml
-rw-rw-r--. 1 nagios nagios 384952 Apr 12 12:25 _scor_Disk_Usage.rrd
-rw-rw-r-- 1 nagios nagios 2207 Apr 12 12:25 _scor_Disk_Usage.xml
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

After one day, still no files generated. Is there any service/process to restart ?
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

Can you try restarting Nagios Core (sometimes called the Monitoring Engine)?

Go to Admin (top menu), click the gear icon next to where it says Monitoring Engine, and click Restart.

Or you can run this on the command line on the Nagios XI machine (as root):

Code: Select all

service nagios restart
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

Monitoring Engine & Performance Grapher both restarted.
Still no RRD files generated for CPU and Memory. Only the HOST is up to date.

[a000555@AenPrdMon ~]$ ll /scor/nagios/perfdata/aenuatvtom
total 3388
-rw-rw-r--. 1 nagios nagios 1534768 Jun 3 10:20 _HOST_.rrd
-rw-rw-r-- 1 nagios nagios 3970 Jun 3 10:20 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 Apr 12 12:22 Ping.rrd
-rw-rw-r-- 1 nagios nagios 4091 Apr 12 12:22 Ping.xml
-rw-rw-r--. 1 nagios nagios 384952 Apr 12 12:25 _scor_Disk_Usage.rrd
-rw-rw-r-- 1 nagios nagios 2207 Apr 12 12:25 _scor_Disk_Usage.xml
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

Try going to Admin, and click the gear next to Performance Grapher, and click Restart.

Then go to the Home section, find the CPU Stats service for the host and click Force an immediate check.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

Working!
Thank you
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

Glad to hear you resolved it! Locking thread.

If you have any additional issues, feel free to make a new thread.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked