You can let monit restart the apache from logrotate script. In the case of alerts by mail it is possible to use filter on events.

Martin

Qi Lu wrote:
Hi all,

We have a logging message to indicate Apache2 server pid has been changed every day. This is because the cron job does apache logrotate everyday, which restarts apache2.

The restart is done through /etc/init.d/. So Monit will log a pid change at error level. Except we change the apache 'logrotate' script to let monit restart apache everytime we upgrade apache, is there anyway we can stop the log message for this event? Or at least we can lower the log message level?

Thanks

Qi


------------------------------------------------------------------------

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to