I'm running mon 0-99-2.6 on Debian woody.
My mon.cf has the following config for a remote web page:
watch paul
service http
description Paul's remote page
interval 1m
monitor http_t.monitor -l /var/log/mon/exodus_web -T 6.0 -t
20.0
period wd {Sun-Sat}
alert mail.alert [EMAIL PROTECTED]
alertafter 3
upalert mail.alert [EMAIL PROTECTED]
alertevery 12h
My problem is that even though I have alertevery set, I get an email every
minute. I assume this is because of the TimeOfDay included in the "Summary
output:" (which is the output from http_t.monitor) changes, and so mon no
longers considers it the same failure.
Here's what's in my emails:
Summary output : 1033493273 www.socolow.com /mon.html 352 -1.000
Group : paul
Service : http
Time noticed : Tue Oct 1 10:28:54 2002
Secs until next alert :
Members : www.socolow.com:/mon.html
Is there an easy way to a) get mon to ignore that field or b) get
http_t.monitor to not print the timestamp.
I know I could just edit http_t.monitor, but I don't want to break anything
that might depend on the timestamp.
Apologies if this is covered somewhere, but I didn't see it in the docs or
the mailing list archives.
Thanks,
Paul Socolow
_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon