/etc/logrotate.d/icinga2 is in icinga2-common 2.6.0-2+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | /var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 nagios nagios
postrotate
/bin/kill -USR1 $(cat /run/icinga2/icinga2.pid 2> /dev/null) 2> /dev/null || true
endscript
}
/var/log/icinga2/error.log {
daily
rotate 90
compress
delaycompress
missingok
notifempty
create 644 nagios nagios
# TODO: figure out how to get Icinga to re-open this log file
}
|