[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Host connection test and alert/exec
From: |
Andreas Rust |
Subject: |
Host connection test and alert/exec |
Date: |
Wed, 15 Oct 2003 20:06:25 +0200 |
Hello,
I am new to the list, but wasn't able to turn up reasonable results on the
archives, so I'll try here :)
For monitoring several remote services I created statements similar to the
ones mentioned on the
documentation, like:
check HOST ftp.redhat.com
if failed port 21 then exec
"/usr/X11R6/bin/xmessage -display :0 RedHat is down as usual!"
Now, since remote hosts may disappear due to the line being cut or
something alike,
I'd like to send my alert on a timeout (hence, on several failed tests),
similar to normal process checking.
Means, that some X connection failures are ok, alert me on X+1.
Since HOST checking only allows alert, restart, stop, exec and unmonitor, I
figured
I'd have to use an exec script to simulate this functionality.
Sending the alert/sms/email from the script is not a big deal either, I am just
wondering if someone has done this before or if it is even possible using some
monit statements.
l8r
Andreas Rust - webnova GmbH
address@hidden - www.webnova.de
Tel: +49 (0)234 - 912 96 10
Fax: +49 (0)234 - 912 96 15
+:----------------------------------------------------------:+
Internet Solutions & Creative Design
- Host connection test and alert/exec,
Andreas Rust <=