How to Clear Graph Data?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

How to Clear Graph Data?

Post by Deantwo »

Two weeks ago I created a quick little bash script to monitor the free disk space on the Nagios server it self.
During its short development time I changed the plugin output spec a lot.

Long story short I deleted one of the output values that I didn't need anyway and now the graph in XI have stopped working.

So my simple question is, how do I clear the graph data?

Long story:
The % value used to be the 3rd value, so when I deleted the 2nd value the % value was moved to be the 2nd value and thereby making this graph show a very high % number.
After the removal of the 2nd value, the graph simple stopped getting new data.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to Clear Graph Data?

Post by tgriep »

The performance data for graphs are stored in .rrd and .xml files on the system. If you delete those files, they will get re-created and display the current data after about 20 minutes.
Those files are stored in the following folder under the name of the host check.

Code: Select all

/usr/local/nagios/share/perfdata/<hostname>
Be sure to check out our Knowledgebase for helpful articles and solutions!
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: How to Clear Graph Data?

Post by Deantwo »

That did the trick, thanks!
And wow that folder had a lot of crap. I mean information on all test/old hosts I had created and deleted.

Anyway, this can be closed if you want.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to Clear Graph Data?

Post by Box293 »

Deantwo wrote:And wow that folder had a lot of crap. I mean information on all test/old hosts I had created and deleted.
FYI the Performance Data Tool I created has a delete function that can find old files so you can delete them:

http://exchange.nagios.org/directory/Ad ... ol/details

Upload it into Nagios XI via Admin > System Extensions > Manage Components.

Access it via the Tools menu.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: How to Clear Graph Data?

Post by Deantwo »

Box293 wrote:
Deantwo wrote:And wow that folder had a lot of crap. I mean information on all test/old hosts I had created and deleted.
FYI the Performance Data Tool I created has a delete function that can find old files so you can delete them:

http://exchange.nagios.org/directory/Ad ... ol/details
Ooh interesting!
I'll take a look at that, thanks.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to Clear Graph Data?

Post by mcapra »

Is it alright if we close this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: How to Clear Graph Data?

Post by Deantwo »

mcapra wrote:Is it alright if we close this thread and mark the issue as resolved?
Yup.
Locked