Page 1 of 1

check_cluster: grouping services

Posted: Thu Oct 20, 2016 8:50 am
by amprantino
Hello all,

I want to aggregate a check for many services running over multiple devices.
For example, my setup:

Server1-> ServiceA
Server2-> ServiceA
Server3-> ServiceB
Server4-> ServiceB

Atm I am checking the services like that:
$SERVICESTATEID:Server1:ServiceA
$SERVICESTATEID:Server2:ServiceA
$SERVICESTATEID:Server3:ServiceB
$SERVICESTATEID:Server4:ServiceB


Is there any way to group different services cluster inside the same check?
If 1 of 2 ServiceA is down ==>W
If 1 of 2 ServiceB is down ==> W
If 1xServiceA and 1xServiceB is down ==> W (and not down)
-w 1 -c 2 will not cover the last case :(


Thank you

Re: check_cluster: grouping services

Posted: Thu Oct 20, 2016 9:05 am
by eloyd
You want to investigate BPI (https://assets.nagios.com/downloads/nag ... _Addon.pdf). It will do exactly what I think you're asking for.

Re: check_cluster: grouping services

Posted: Thu Oct 20, 2016 11:27 am
by rkennedy
Thanks @eloyd! You are correct.

BPI is the way to go @amprantino - let us know if you have any questions about it.