Sensu with knowledge of infrastructure.

Hello,

We have the following use case.

Lets say we have a web server cluster A with 2 servers all checked by Sensu.

If a web server goes down it will show it in the Sensu API for this particular web server. If another one goes down it will also shown in the Sensu API.

But what we additionally want is that we get a third event saying that the cluster A is completely down now.

What would be the best approach to archive this?

Thanks in advance!

This sounds similar to what we built as the "cluster check":
https://github.com/Yelp/puppet-monitoring_check/blob/master/files/check-cluster.rb
Which inspects the current events for a particular name (check_http)
and alerts if it sees more than a certain threshold. (in your case it
would be 2)

This might also be possible with aggregates:
https://sensuapp.org/docs/latest/api-aggregates

ยทยทยท

On Fri, Feb 12, 2016 at 11:45 PM, chris85lang via sensu-users <sensu-users@googlegroups.com> wrote:

Hello,

We have the following use case.

Lets say we have a web server cluster A with 2 servers all checked by Sensu.
If a web server goes down it will show it in the Sensu API for this
particular web server. If another one goes down it will also shown in the
Sensu API.
But what we additionally want is that we get a third event saying that the
cluster A is completely down now.

What would be the best approach to archive this?

Thanks in advance!