On Aug 13, 2010, at 7:25 PM, Kimo Rosenbaum wrote:
The config that seems to get me the closest is:
check host localhost with address localhost
if failed host 127.0.0.1 port 53 type udp protocol dns then
exec "stop anycast IP"
else if recovered then
exec "start anycast IP"
if failed host 127.0.0.1 port 53 type tcp protocol dns then
exec "stop anycast IP"
else if recovered then
exec "start anycast IP"
But I get 5 messages every check interval which is too noisy. It also runs the
stop/start script twice since the udp and tcp checks happen at the same time
(not bad, just annoying).
Is there a way to only log on the first failure (resetting on recovery)?
Which monit version it is? By default Monit sends only one alert on first error. Please can you run monit in verbose mode (-v option) and send monit log to show the problem?