Zimbra: receiving "service started" mails daily

A customer reported me he was getting Service xx started on host.name notification mails daily, but Zabbix didn’t report any service downtime. After further investigation we found out the mails were generated every day, but reported a start about many days before:

The problem is /var/log/zimbra.log and zimbra-stats.log not being rotated, in fact the file started exactly on Jan 13th as the notification mails reported.

Even manually running

logrotate -d -f /etc/logrotate.d/zimbra

didn’t rotate the files, even if it didn’t report any error.

I manually rotated the files by running (note: owner for Ubuntu based installations is syslog:adm):

cd /var/log
mv zimbra-stats.log zimbra-stats.log.1
kill -HUP `cat /var/run/syslog*.pid`
chown zimbra:zimbra zimbra-stats.log
gzip zimbra-stats.log.1
mv zimbra.log zimbra.log.1
kill -HUP `cat /var/run/syslog*.pid`
chown zimbra:zimbra zimbra.log
gzip zimbra.log.1

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.

Solve : *
20 + 11 =

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.