Page 1 of 1

How to Clear Graph Data?

Posted: Fri Jul 08, 2016 7:25 am
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.

Re: How to Clear Graph Data?

Posted: Fri Jul 08, 2016 10:26 am
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>

Re: How to Clear Graph Data?

Posted: Mon Jul 11, 2016 1:35 am
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.

Re: How to Clear Graph Data?

Posted: Mon Jul 11, 2016 2:06 am
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.

Re: How to Clear Graph Data?

Posted: Mon Jul 11, 2016 2:15 am
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.

Re: How to Clear Graph Data?

Posted: Mon Jul 11, 2016 9:07 am
by mcapra
Is it alright if we close this thread and mark the issue as resolved?

Re: How to Clear Graph Data?

Posted: Mon Jul 11, 2016 9:32 am
by Deantwo
mcapra wrote:Is it alright if we close this thread and mark the issue as resolved?
Yup.