monit-general
[Top][All Lists]
Advanced

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

Re: monitor only when IP address is local


From: Werner Flamme
Subject: Re: monitor only when IP address is local
Date: Wed, 08 Feb 2012 17:25:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Werner Flamme [07.02.2012 15:18]:

> Thanks Martin,
> 
> of course, this will work :-) The simplest solution is what I think
> of last :-)
> 
> But... well, the services are not switched over regularly, but only
> in case of havoc :-\ Last time, it was a choking SAN/OCFS2
> connection...
> 

I think I'll define another service 'addrwatch'. It will just be a
bash script, watching for the IP address and modifying one file
depending on the presence of the address. Then I might use a "check
file foo with path /foo/bar -> if size == 8 B then exec "monit start
dumbsvc" -> if size == 9 B then exec "monit stop dumbsvc".

This might be more reliable than my own actions ;-)

Regards,
Werner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8yogwACgkQk33Krq8b42MF9wCfXFqkAxVMZsH4BwQfO/LQAQq7
nN8An05VYXrm9+w02dw+8O3o1kY8yDQI
=9DrY
-----END PGP SIGNATURE-----



reply via email to

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