Page 1 of 1

Service Dependencies

Posted: Thu May 03, 2012 12:50 am
by craigles
Hi,

Having an issue with setting up service dependencies in Nagios XI.
I've set them up, but I'm still getting all the services notifying us when they all go down, instead of obeying the service dependencies (unless I'm mis-understanding what service dependencies is).

I've tried using just the server name and also using host-groups but it seems no matter what I do nothing works properly.

I've done a screenshot of what the service dependency management screen looks for one entry:
Capture.PNG
Basically, i've set the same server in dependent hosts and hosts field, nothing in the hostgroups or dependent hostgroups, services i've selected LOAD and PING since if either of these triggers I dont want to get email notifications or sms notifications about anything else (as it implies that the server is screwed anyway) and then for dependent services i've selected all the other services being monitoring on that server.

Should that work, or have I stuffed up something monumentally?

Thanks,
Craig

Re: Service Dependencies

Posted: Thu May 03, 2012 7:32 pm
by jsmurphy
Not monumental, you just forgot to set the notification failure criteria ;)

You select which state the dependant service has to be in to trigger the stoppage of notifications from the depending services.

Re: Service Dependencies

Posted: Thu May 03, 2012 8:05 pm
by craigles
Thanks for the reply :)
Don't I feel like a doofus now? Oh wells.

So I would set the Notification failure criteria to say w,u,c which would signify "Warning, Unknown, Critical" so if the ping or load go into any of those states, it will suppress the notifications for the other services which depend on it correct?

Thanks for your help.

Cheers,
Craig

Re: Service Dependencies

Posted: Fri May 04, 2012 12:46 am
by jsmurphy
craigles wrote: So I would set the Notification failure criteria to say w,u,c which would signify "Warning, Unknown, Critical" so if the ping or load go into any of those states, it will suppress the notifications for the other services which depend on it correct?
Yep, spot on. :D