Page 1 of 1
/usr/local/nagios/var/nagios.log rotation
Posted: Tue Dec 18, 2018 8:15 am
by hbouma
How to I change the rotation of the nagios.log file? Currently, it is only keeping a few hours of data. We would like to keep additional data using the logrotate functionality, but I don't see where the current log rotation settings are kept.
We are on RHEL 7.6 VM's with Nagios XI 5.5.7/
Re: /usr/local/nagios/var/nagios.log rotation
Posted: Tue Dec 18, 2018 10:52 am
by lmiltchev
Your log rotation method is probably set to "Hourly" in the nagios.cfg file. Change it to "Daily", and restart nagios service.
or
See the explanation of the log rotation method directives in the nagios.cfg file here:
https://assets.nagios.com/downloads/nag ... gmain.html
Hope this helps. Thank you!
Re: /usr/local/nagios/var/nagios.log rotation
Posted: Tue Dec 18, 2018 11:05 am
by hbouma
Thank you. That is the information I needed.
You can close out the ticket.
Re: /usr/local/nagios/var/nagios.log rotation
Posted: Tue Dec 18, 2018 11:16 am
by lmiltchev
I am glad I could help!
