Nagios didn't rotate logs

Greg greg at easyflirt.com
Tue Feb 19 11:53:36 CET 2008


Hi,

Nagios 3.0rc1 didn't rotate the log files !

Settings :

epoc-01:~# egrep ^log_ /etc/nagios/nagios.cfg
log_file=/var/log/nagios.log
log_rotation_method=d
log_archive_path=/var/nagios/archives
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=1
log_external_commands=1
log_passive_checks=1

epoc-01:~# ls -altrh /var/log/nagios.*
-rw-r--r-- 1 nagios nagios 12M 2008-02-19 11:51 /var/log/nagios.log


epoc-01:~# ls -altrh /var/nagios/archives/
total 8.0K
drwxrwxr-x 2 nagios nagios 4.0K 2007-12-19 09:15 .
drwxrwxr-x 5 nagios nagios 4.0K 2008-02-19 11:52 ..


epoc-01:~# ps auxw | grep nagios
nagios    1365  0.4  0.0  16852  2348 ?        Ssl  Feb13  41:26 
/usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg


Is it a bug ? Should I'll have to use debian's logrotate ?

-- 
Greg


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list