# Sensu Internet Check

**URL:** <https://discourse.sensu.io/t/sensu-internet-check/799>\
**Category:** Sensu Classic (EOL)\
**Created:** [April 11, 2017, 5:39pm UTC](https://discourse.sensu.io/t/sensu-internet-check/799 "2017-04-11T17:39:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Chilton](https://avatars.discourse-cdn.com/v4/letter/i/97f17d/32.png) [@Ian\_Chilton](https://discourse.sensu.io/u/Ian_Chilton)\
**Post date:** [April 11, 2017, 5:39pm UTC](https://discourse.sensu.io/t/sensu-internet-check/799/1 "2017-04-11T17:39:37Z")

</div>

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](http://google.co.uk), [bbc.co.uk](http://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

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [April 14, 2017, 1:50am UTC](https://discourse.sensu.io/t/sensu-internet-check/799/2 "2017-04-14T01:50:25Z")

</div>

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

> **···**
>
> On Tue, Apr 11, 2017 at 10:39 AM, Ian Chilton [ian.chilton@gmail.com](mailto: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](http://google.co.uk), [bbc.co.uk](http://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
> 
> >

---

<div class="post-metadata">

**Author:** ![Ian\_Chilton](https://avatars.discourse-cdn.com/v4/letter/i/97f17d/32.png) [@Ian\_Chilton](https://discourse.sensu.io/u/Ian_Chilton)\
**Post date:** [April 14, 2017, 4:46pm UTC](https://discourse.sensu.io/t/sensu-internet-check/799/3 "2017-04-14T16:46:41Z")

</div>

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](https://serverfault.com/a/347763)
> 
> >

---

<div class="post-metadata">

**Author:** ![Alexander\_Skiba](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/alexander_skiba/32/408_2.png) [@Alexander\_Skiba](https://discourse.sensu.io/u/Alexander_Skiba)\
**Post date:** [April 14, 2017, 7:36pm UTC](https://discourse.sensu.io/t/sensu-internet-check/799/4 "2017-04-14T19:36:15Z")

</div>

Considering these two points, I’d recommend extending [check-ping.rb](https://github.com/sensu-plugins/sensu-plugins-network-checks/blob/master/bin/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](https://serverfault.com/a/347763)
> 
> > >

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/sensu-internet-check/799/5 "2018-11-22T02:07:53Z")

</div>


