Nagios logs growing up

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
providentpolska
Posts: 14
Joined: Fri Jan 10, 2020 2:58 am

Nagios logs growing up

Post by providentpolska »

Hi,
Nagios logs growing up. Please help me if I can remove this logs? (paths below) without any issues? Or if is some script to trunkate it:

16G /usr/local/nagios
8.0G /usr/local/nagios/share
8.0G /usr/local/nagios/share/perfdata
7.6G /usr/local/nagios/var
7.6G /usr/local/nagios/var/archives

15G /usr/local/nagiosxi
3.0G /usr/local/nagiosxi/var/event_handler.log
6.4G /usr/local/nagiosxi/var/eventman.log
3.3G /usr/local/nagiosxi/var/sysstat.log
cbyers
Posts: 11
Joined: Mon Sep 19, 2022 12:53 pm

Re: Nagios logs growing up

Post by cbyers »

Hello providentpolska,

Thank you for reaching out, you could run the following commands to empty the files.

echo '' > /usr/local/nagiosxi/var/event_handler.log
echo '' > /usr/local/nagiosxi/var/eventman.log
echo '' > /usr/local/nagiosxi/var/sysstat.log

As far as no issues that depends on how much you value those log files.
Cody Byers
providentpolska
Posts: 14
Joined: Fri Jan 10, 2020 2:58 am

Re: Nagios logs growing up

Post by providentpolska »

Thank you, logs has been removed.
Post Reply