Page 2 of 2

Re: Nagios Logrotation removing notification on rotated file

Posted: Tue Feb 12, 2013 12:33 pm
by jose-martins
Is this ok?

Code: Select all

root@*:/opt/nagios/nagios/etc# cat nagios.cfg |grep log |egrep -v "^#"
log_file=/opt/nagios/nagios/var/nagios.log
log_rotation_method=d
log_archive_path=/opt/nagios/nagios/var/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=1
service_perfdata_file=/var/opt/nagios/perfdata.log
root@*:/opt/nagios/nagios/etc#

Re: Nagios Logrotation removing notification on rotated file

Posted: Tue Feb 12, 2013 2:09 pm
by slansing
Everything looks fine, how large is your installation? What version of Core are you running on, and how large is the nagios.log file currently?