monit-general
[Top][All Lists]
Advanced

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

Re: monitor interface


From: Jan-Henrik Haukeland
Subject: Re: monitor interface
Date: Wed, 28 Jan 2004 19:16:24 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux)

"Francis Antonietti" <address@hidden> writes:

> questions:
> can i tell monit witch interface to use for the test?

monit does not monitor ethX interfaces, only ip-addresses or
hostnames. If you monitor ip-addresses bound to a certain interfaces,
you will implicit monitor a interface.

> is it possible to save some status-variables or something
> like if eth0 up do this else do this

Not at the moment, but we plan to include an event when a service is
comming up again. (Now, events are only sent when a service
fails). This up-event may be used to achive what you ask for (I
think).

> how can i launch more than one program after the "if failed....than"
> command?

Call a script that starts several programs or use something like this:

      if failed port 25 using protocol smtp 
          then exec "/bin/sh -c 'program1; program2; program3;'"


> and the last question (sorry i have so much :-)) lets say that the
> environment where the box is locate changes. so the destination
> address for the ping test change. can i pass this address by a
> variable to monit?

No, you must change the .monitrc control file and restart
monit. (using e.g.: monit reload)

-- 
Jan-Henrik Haukeland




reply via email to

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