Some help about service dependencies

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
jonybravo30
Posts: 1
Joined: Tue May 20, 2014 4:02 am

Some help about service dependencies

Post by jonybravo30 »

Hello!


I have about 5 servers monitorized with nagios core, due to our monitoring process there is one service called i.e. testservice in each machine, like that:
All my nagios notifications are not recurrent/recursive, i.e. if a service fall in critical state comes one critical mail, only will come new mails in state change like unknown, warning or OK.

HOST1---> SERVICE testservice
HOST2---> SERVICE testservice
HOST3---> SERVICE testservice
HOST4---> SERVICE testservice
HOST5---> SERVICE testservice

(each machine execute service "testservice" in their end with NRPE)

all service testservice must be dependent on all called testservice on that hosts.
Normaly with an event that happens somedays (something normal) in our infraestructure a "testsevice" fail and comes 5 alerts I would like reduce alerts to 1 and receive only service alert when service failed in the first host and then not to receive more alerts of the same name service of other hosts.


¿¿Maybe something like this??

I known this not works, but for give an idea of what i like to make

define servicedependency{
host_name HOST1,HOST2,HOST3,HOST4,HOST5

service_description testservice

dependent_host_name HOST1,HOST2,HOST3,HOST4,HOST5

dependent_service_description testservice
}

¿ Some ideas ?

Greetings and thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Some help about service dependencies

Post by tmcdonald »

So if I understand correctly, you want all 5 testservices to be dependent on the other 4 testservices, but only to have a single email sent if any 1 of the 5 goes down?
Former Nagios employee
Locked