mrkamel / heartbeat

Use Heartbeat to monitor your Hetzner Failover IP and automatically switch to another server.
53 stars 13 forks source link

Additional test methods #6

Open jeff1985 opened 10 years ago

jeff1985 commented 10 years ago

What do you thing about allowing additional test methods? Ping is good for testing basic network conncectivity. But it would be nice to be able to test the actual functionality.

I've just had a server, that has been responding to pings, but declined any other requests (ssh/http) until physical reboot.

So what i'm thing of is to allow plugin tests like the actual hook system for notifications.

For example one could use curl and grep to test http:

curl -s --header 'Host: example.org' "$ip/someurl" | grep -c FINDTHISSTRING
mrkamel commented 10 years ago

Hi, yeah thx, i already have this in mind, kinda visible in the v1 branch, as there are some refactorings, that make heartbeat more pluggable. I think of a script directory like 'hooks', named 'checks' or similar, where you can place your own checks and plug them in via the config file.

However, i first want to bring the v1 changes into master.