check_cluster: grouping services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

check_cluster: grouping services

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_cluster: grouping services

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_cluster: grouping services

Post by rkennedy »

Thanks @eloyd! You are correct.

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