How to clear host-perfdata under root which is consuming lot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

How to clear host-perfdata under root which is consuming lot

Post by tchandra »

Hi Team,

We have Nagios XI Server with version 5.7.3 and it has two worker servers. One of the worker servers is getting disk root alert.
when we checked the logs and found that host-perfdata under /usr/local/nagios/var is consuming more space (Nearly half of the filesystem).
Please find Attachment for reference.

Appreciate your help in clearing the host-perfdata.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to clear host-perfdata under root which is consuming

Post by benjaminsmith »

Hi,

So, after looking this over some more, there's an issue processing performance data, please send us a current system profile and we''ll check the logs and settings. Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Re: How to clear host-perfdata under root which is consuming

Post by tchandra »

Hi Benjamin ,

I have sent PM to you with system profile of worker server.
please have a look.

Thanks & Regards,
Chandra
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to clear host-perfdata under root which is consuming

Post by benjaminsmith »

HI Chandra,

So there are a couple of issues here. The first is corrupted database tables, which's likely affecting performance but probably not the graphs.
210720 16:55:02 [ERROR] mysqld: Table './nagios/nagios_notifications' is marked as crashed and last (automatic?) repair failed
Log in to the CLI as root and run the following command to fix the database. Let me know if it is not successful.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
The other thing I noticed is a Ramdisk has been implemented.

Code: Select all

define command {
	command_name	process-host-perfdata-file-bulk
	command_line	/bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
	}
However, not all the commands have been set up to point to the new path so the data is not getting processed properly.

Code: Select all

Nagios.cfg
host_perfdata_file=/usr/local/nagios/var/host-perfdata
There are a number of places that need updates when implementing a ramdisk, please follow the steps in the guide below to update those, and let me know. Take a look at page 2 for a listing of all the files to change.
https://assets.nagios.com/downloads/nag ... giosXI.pdf

After making those changes, let me know if the issue is fixed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked