Nagios XI log files growing

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios XI log files growing

Postby dkstuart23 » Mon Jun 07, 2021 1:14 pm

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
dkstuart23
 
Posts: 8
Joined: Thu Feb 18, 2021 2:42 pm

Re: Nagios XI log files growing

Postby benjaminsmith » Tue Jun 08, 2021 10:29 am

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!
User avatar
benjaminsmith
 
Posts: 4837
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI log files growing

Postby dkstuart23 » Wed Jul 07, 2021 8:05 am

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.
dkstuart23
 
Posts: 8
Joined: Thu Feb 18, 2021 2:42 pm

Re: Nagios XI log files growing

Postby benjaminsmith » Wed Jul 07, 2021 4:44 pm

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!
User avatar
benjaminsmith
 
Posts: 4837
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul


Return to Community Support

Who is online

Users browsing this forum: No registered users and 32 guests