[Xymon] XYMON - corrective measures?

Henrik Størner henrik at hswn.dk
Fri Dec 23 23:21:03 CET 2011


On 23-12-2011 23:17, Tom S wrote:
> Thanks Henrik,
>
> So this should do it?

Yes.

> HOST=www.foo.com <http://www.foo.com/> <http://www.foo.com
> <http://www.foo.com/>> SERVICE=http
> MAIL cio at foo.com <mailto:cio at foo.com> <mailto:cio at foo.com
> <mailto:cio at foo.com>> DURATION>2 COLOR=red
> SCRIPT /usr/local/bin/restartapache.sh 123456789 REPEAT 1440
>
> That above will email cio at foo.com <mailto:cio at foo.com> after 2 minutes
> of RED
> It will also call up /usr/local/bin/restartapache.sh and run it once
> every 24 hours if it's down that long?

Yes.

> Do I need to put in a DURATION on that one also or does it keep the 2
> minutes from the above line or does it run it as soon as it see's it's
> red?  Can I put a DURATION on that also? (eg. SCRIPT
> /usr/local/bin/restartapache.sh 123456789 REPEAT 1440 DURATION>2 )

When you put the DURATION setting on the MAIL or SCRIPT line, it is 
local to that recipient, so You can add a DURATION on the SCRIPT also - 
either the same, or different.

You can also put it on the HOST+SERVICE line, in which case it will be 
the default for all of the recipients.


Regards,
Henrik



More information about the Xymon mailing list