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
Nagios XI log files growing
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI log files growing
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.
Also, make sure the corn daemon is running is running.
Good luck, please post any error output for help troubleshooting.
--Benajmin
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
Code: Select all
systemctl status crond
--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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 8
- Joined: Thu Feb 18, 2021 2:42 pm
Re: Nagios XI log files growing
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.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI log files growing
Hi @dkstuart23,
--Benjamin
No problem. Glad to hear it's working better now.sorry, forgot to post this sooner. Log rotate was not set up properly.
--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!
Be sure to check out our Knowledgebase for helpful articles and solutions!