How to delete performance data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

How to delete performance data

Post 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.
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: How to delete performance data

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to delete performance data

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: How to delete performance data

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to delete performance data

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked