Re: Nagios Logrotation removing notification on rotated file
Posted: Tue Feb 12, 2013 12:33 pm
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#