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/
/usr/local/nagios/var/nagios.log rotation
Re: /usr/local/nagios/var/nagios.log rotation
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!
Code: Select all
log_rotation_method=dCode: Select all
service nagios restartCode: Select all
systemctl restart nagioshttps://assets.nagios.com/downloads/nag ... gmain.html
Hope this helps. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: /usr/local/nagios/var/nagios.log rotation
Thank you. That is the information I needed.
You can close out the ticket.
You can close out the ticket.
Re: /usr/local/nagios/var/nagios.log rotation
I am glad I could help! 
Be sure to check out our Knowledgebase for helpful articles and solutions!