Service Dependencies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Service Dependencies

Post by yaanatech »

Hi All,

I am attempting to setup service dependencies and I need a little push in the correct direction.

I have a script we wrote that runs a netstat against an expected ip, if the status is established the script returns ok to nagios, anything else it returns critical. We have a 2nd ip we check for, as long as that 2nd ip test returns ok, I don't want to get an alert. How exactly would I set this up in service dependencies? I set the 1st service test as my parent and the 2nd as the child. This still caused an alert, I reversed the order and got another alert.

Any suggestions? Do I disable the notifications in the service itself and just enable them in the dependencies?

Gavin
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service Dependencies

Post by slansing »

Gavin,

In order to no longer receive notifications if a specific service's state changes simply select the service from Views>Service Detail> and once you are on the services page after selecting it, Configure>Re-Configure This Service>Notifications>Here you can set basic preferences.


If you need a more detailed set of options enter Core Config Manager>Services>Select the Configure icon next to your Service of choice>Alert Settings.


If this was not what you are looking for let us know!
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: Service Dependencies

Post by yaanatech »

I am talking about setting services dependencies, so if one service is critical, it doesn't send a notification if the 2nd services is still up.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Service Dependencies

Post by mguthrie »

Dependencies can be a bit tricky, but the best overall documentation on the logic of it is still the Core manual:
http://nagios.sourceforge.net/docs/3_0/ ... ncies.html
Locked