Page 1 of 1

Some help about service dependencies

Posted: Thu Jan 15, 2015 6:35 am
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

Re: Some help about service dependencies

Posted: Fri Jan 16, 2015 2:55 pm
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?