[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Host connection test and alert/exec

From: Srinath
Subject: RE: Host connection test and alert/exec
Date: Wed, 15 Oct 2003 21:03:54 +0100


I am new too...but was wondering if something like the following works

if failed port 21 for 3 cycles  then exec
"/usr/X11R6/bin/xmessage -display :0 RedHat is down as usual!"

Here if the connection failure is for 3 consecutive cycles only then the
command is executed.
But as i said, i am not 100% sure, worth a try..


Srinath Maddali
Deltion Ltd
address@hidden <mailto:address@hidden>
Tel     : 44 (0) 208 755 5855
Direct : 44 (0) 208 755 5831
Fax    : 44 (0) 208 755 5885

-----Original Message-----
From: address@hidden
n Behalf Of Andreas Rust
Sent: 15 October 2003 19:06
To: address@hidden
Subject: Host connection test and alert/exec


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
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
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
wondering if someone has done this before or if it is even possible using
monit statements.


     Andreas Rust     -   webnova GmbH
     address@hidden  -
     Tel:  +49 (0)234 - 912 96 10
     Fax:  +49 (0)234 - 912 96 15
       Internet Solutions & Creative Design

reply via email to

[Prev in Thread] Current Thread [Next in Thread]