According to a quick scan of the man page, monit doesn't support this type of check natively. You could however write a simple script to check the IP address. Something like `ifconfig eth0 | grep 192.168.0.1`. Grep should exit 0 if found, 1 if not, in which case, monit will read the exit value and detect an error based on it.
Simple answer is no, but it's hackable easily enough... :-) - C On Tue, 2013-02-12 at 02:34 +0000, Stephen Butler wrote: > Is it possible to get monit to check my ip address, and if its not > what its supposed to be, get it to run a sh script that changes the ip > address to what It should be ? > > > Thanks, > Stephen. > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
