Page 1 of 1
How to delete performance data
Posted: Tue May 29, 2018 9:19 am
by andyb4u
Hi. I'm trying to find out how to remove performance data for hosts and services that have been removed.
My understanding it that is is a manual process via commandline but my manager has asked me to try and confirm this.
Are the performance data files left behind by design? My manager expected XI to remove these files upon deletion of a host or service.
Re: How to delete performance data
Posted: Tue May 29, 2018 9:47 am
by optionstechnology
If you look in the admin section under Deadpool Settings you'll see an option for -
Remove performance data files (RRDs) upon host/service deletion
Although I think this is just for servers that are removed via the deadpool system
Re: How to delete performance data
Posted: Tue May 29, 2018 10:52 am
by lmiltchev
You can delete old (unwanted) perfdata from Nagios XI by by running the following commands from the command line:
Code: Select all
cd /usr/local/nagios/share/perfdata
rm -rf <hostname>/*
There is a component on the Nagios Exchnage (Performance Data Tool) that you can install in XI, and use for deleting the old perfdata in the GUI. You can install it as any other XI component by going to
Admin > Manage Components > Browse > ... > Upload & Install. The newly added component will show under the Tools menu.
Screenshot:
example01.PNG
You can download the component from here:
https://exchange.nagios.org/directory/A ... ol/details
Hope this helps.
Re: How to delete performance data
Posted: Thu May 31, 2018 4:32 am
by andyb4u
Thanks for your responses and the link to the Performance Data Tool.
I have installed the component on a couple of our test XI systems. I'm having a few issue with it. I'm unable to delete individual files if I browse to a folder and try and delete a file, it results in an error. It displays the table correctly on one XI system but on the other it's not displaying the full table (with sorting arrows etc) and I'm unable to display the rrd data. I've tried using different browsers.
performance_data_tool.JPG
I know this component in't supported here but I was just wondering if anyone has seen the issues I'm experiencing with it?
Re: How to delete performance data
Posted: Thu May 31, 2018 9:06 am
by lmiltchev
You are correct - this is a 3rd party component that is not officially supported by Nagios. However, we are going to contact the author of the component, and try to troubleshoot the issue in house. We will get back to you as soon as we hear from Box293.
For the time being, I would recommend that you delete perfdata files from the CLI.
Thank you!