Sensu Internet Check

Hi,

Is it possible to have a sensu check which has multiple destinations is only counted as down if ALL of the destinations fail?

I’d like a check which all my other checks can depend on, which ensures the sensu server is online before sending alerts.

i.e to stop alert floods if it’s the internet connection on the sensu server which is broken, not all of the destinations it’s monitoring.

The ideal here would be to check some big sites - like google.co.uk, bbc.co.uk etc but only mark that check as down if ALL of them are down, not just one of them.

Is this possible? - anyone done such a thing before?

Thanks,

Ian

I would put that complexity into the check itself
https://serverfault.com/a/347763

···

On Tue, Apr 11, 2017 at 10:39 AM, Ian Chilton ian.chilton@gmail.com wrote:

Hi,

Is it possible to have a sensu check which has multiple destinations is only counted as down if ALL of the destinations fail?

I’d like a check which all my other checks can depend on, which ensures the sensu server is online before sending alerts.

i.e to stop alert floods if it’s the internet connection on the sensu server which is broken, not all of the destinations it’s monitoring.

The ideal here would be to check some big sites - like google.co.uk, bbc.co.uk etc but only mark that check as down if ALL of them are down, not just one of them.

Is this possible? - anyone done such a thing before?

Thanks,

Ian

Good point - I actually started thinking about a check which did something like check_ping xx || check_ping yy - with short timeouts.

Ian

···

On Friday, 14 April 2017 02:50:27 UTC+1, Kyle Anderson wrote:

I would put that complexity into the check itself
https://serverfault.com/a/347763

Considering these two points, I’d recommend extending check-ping.rb in sensu-plugins-http, possibly contributing the multiple host check back with a PR, if you’re satisfied how it works for you.

···

On Friday, April 14, 2017 at 6:46:41 PM UTC+2, Ian Chilton wrote:

Good point - I actually started thinking about a check which did something like check_ping xx || check_ping yy - with short timeouts.

On Friday, 14 April 2017 02:50:27 UTC+1, Kyle Anderson wrote:

I would put that complexity into the check itself
https://serverfault.com/a/347763