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

graph: no data to display

Post by scorit »

Hello,

When I open the graph (CPU) on a server, I get "no data to display" it only shows ping status for each of the servers.
I have checked and I got all the XML and RRD files for each host in /usr/local/nagios/share/perfdata
Do you have any idea ?

In advance thank you for your support.
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 give more information?

- What's the exact check command that's running for the CPU service?
- Can you post a screenshot of the dashboard page for the service, the "Advanced" tab? There should be a field that says "Performance Data:" that lists what was last captured.
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' m using Nagios plugin for cpu and memory check through nrpe command.
I don't see any "Advanced" tab" on Dashboard page. I am running Nagios XI.
Can you tell me where to find it ?

Thanks
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

1. Open Home from the top menu.
2. Click the Service Status link on the left menu.
3. Find the service in the list and click on the name.
4. Open the Advanced tab.

Please send a screenshot of the Advanced tab.
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 »

Attached
You do not have the required permissions to view the files attached to this post.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

performance graphs
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

The problem likely lies in the storage mechanism for performance data graphs. The current system stores the historic data in a RRD file (stands for Round Robin Database) and unfortunately it has limitations in that it doesn't react well to any change in the data format stored. This means when you add or remove a piece of recorded data, the RRD file will reject the input entirely.

Data often changed format when the check plugin updates, or the name of the service updates and just-so-happens to be the name of another service that was previously defined for that host.

(Good news is that when Nagios XI 6.0 comes out, this whole storage mechanism will change to one that deals better with data format changes, so hopefully this won't be a problem in the future.)

We can work around it by deleting the RRD file, which will unfortunately clear the graph of historical data. Run this command to move them out of the way.

Code: Select all

mv -i /usr/local/nagios/share/perfdata/aenuatvtom/CPU_Stats.rrd{,.old}
mv -i /usr/local/nagios/share/perfdata/aenuatvtom/CPU_Stats.xml{,.old}
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 just deleted the RRD. Performance graph icon for CPU has now disapeared.
I recreated the 2 files through touch command.
Now the graph icon is here but endless loading when I clic on it.
Any idea about this behavior ?
You do not have the required permissions to view the files attached to this post.
scorit
Posts: 17
Joined: Wed Sep 25, 2019 3:06 am

Re: graph: no data to display

Post by scorit »

It seems the 2 files are not populated

rw-r--r-- 1 nagios users 0 May 26 22:29 CPU_Stats.rrd
-rw-r--r-- 1 nagios users 0 May 26 22:29 CPU_Stats.xml
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: graph: no data to display

Post by dchurch »

Please run the following command to fix permissions:

Code: Select all

chown -R nagios:nagios /usr/local/nagios/share/perfdata/aenuatvtom/
chmod 0775 /usr/local/nagios/share/perfdata/aenuatvtom/
chmod 0664 /usr/local/nagios/share/perfdata/aenuatvtom/*
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