Page 1 of 1

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

Posted: Sun Jul 18, 2021 10:38 pm
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.

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

Posted: Mon Jul 19, 2021 10:56 am
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

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

Posted: Tue Jul 20, 2021 1:59 am
by tchandra
Hi Benjamin ,

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

Thanks & Regards,
Chandra

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

Posted: Tue Jul 20, 2021 3:53 pm
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.