Hello,

the monit-reload message can be suppresed with alert filter - the alert class 
is "instance" (used for monit instance related messages such as monit 
start/stop/reload):

--8<--
  set alert foo@bar but not on { instance }
--8<--

Another option could be to set logrotate to truncate the file (logratote's 
"copytruncate" option), which then doesn't require the reload of Monit, as the 
log file can be kept open.

Regards,
Martin


On Mar 18, 2012, at 1:17 PM, Callum Macdonald wrote:

> Holamigos,
> 
> I'm running Monit on a handful of ubuntu hosts. Logrotate automatically
> calls `monit reload` after rotating out the logs. This in turn generates
> a monit reloaded notification. I'm wondering if it's possible to disable
> only that message.
> 
> One approach, is it possible to call `monit reload` in such a way that
> it will not generate an email? I do want to be notified for other reload
> events, just not the one created by logrotate.
> 
> Any inspiring suggestions for me? :-)
> 
> If all else fails, I could filter the emails automatically, they're at a
> predictable time so it should be fairly manageable.
> 
> Cheers - Callum.
> 
> ==
> Callum Macdonald
> 
> Morocco mobile: +212 652 060 089
> UK mobile: +44 7968 378 810
> Desk: +44 845 126 0875
> www.callum-macdonald.com
> 
> 
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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

Reply via email to