Nagios XI log files growing

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dkstuart23
Posts: 8
Joined: Thu Feb 18, 2021 2:42 pm

Nagios XI log files growing

Post by dkstuart23 »

We have an instance of Nagios XI running and I have noticed that the log files in nagiosxi/var are growing quite large and do not roll over like I would expect. I have questions: 1) is there somewhere that you set the logging verbosity? 2) is there a way to truncate the log files? 3) is there a place in the system to set the log files accumulate for 'x' days then roll over?
TIA,
Doug
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI log files growing

Post by benjaminsmith »

Hi Doug,

Nagios XI uses logrotate to keep the log files in check and archive them. I suspect the service is not running or there is some kind of permission issue.

You can run logrotate with debug output using the following command to help troubleshoot the issue.

Code: Select all

logrotate -d /etc/logrotate.d/nagiosxi
Also, make sure the corn daemon is running is running.

Code: Select all

systemctl status crond
Good luck, please post any error output for help troubleshooting.
--Benajmin
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!
dkstuart23
Posts: 8
Joined: Thu Feb 18, 2021 2:42 pm

Re: Nagios XI log files growing

Post by dkstuart23 »

sorry, forgot to post this sooner. Log rotate was not set up properly. Actually, I think that one of the Nagios log files was put in two places in the config file and that appears to have been what was causing the problem.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI log files growing

Post by benjaminsmith »

Hi @dkstuart23,
sorry, forgot to post this sooner. Log rotate was not set up properly.
No problem. Glad to hear it's working better now.

--Benjamin
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