Sevice Dependencies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
waheed
Posts: 2
Joined: Tue Apr 30, 2013 1:07 am

Sevice Dependencies

Post by waheed »

How to configure service dependencies . To generate alram by cheking two services of different hosts
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Sevice Dependencies

Post by abrist »

Could you please clarify? Do you want one of the services to be dependent on the other? Or something else?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
waheed
Posts: 2
Joined: Tue Apr 30, 2013 1:07 am

Re: Sevice Dependencies

Post by waheed »

yes....
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Sevice Dependencies

Post by abrist »

In XI, go to --> Config --> Core Config Manager --> Advanced --> Service Dependencies.
Click "add new".
Give it a config name and dependency period.

"Manage Hosts" sets the host for the service your config is depending on.
"Manage Services" sets the Service that the config is depending on.
"Manage Dependent Hosts" sets the host of the service that is dependent on the above service.
"Manage Service Dependencies" sets the service that are dependent on the above service.

Set your notification and execution criteria and save out.

The following document is for core, but the logic is the same in XI: http://nagios.sourceforge.net/docs/3_0/ ... ncies.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hasnatawan
Posts: 5
Joined: Tue Apr 30, 2013 1:57 am

Re: Sevice Dependencies

Post by hasnatawan »

what if we want to add a new service which depends on other two services of different hosts.what will be in the filed of manage service dependencies
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Sevice Dependencies

Post by sreinhardt »

You should be able to do this just fine. However you would manage the dependencies from the new service. Adding multiple dependencies is not an issue.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Sevice Dependencies

Post by abrist »

You would add the dependent service to both of those services' service dependencies. You will have to make a service dependency for each of those services.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hasnatawan
Posts: 5
Joined: Tue Apr 30, 2013 1:57 am

Re: Sevice Dependencies

Post by hasnatawan »

And what if i want to add a service which is totaly dependent on two other services of different hosts ?
hasnatawan
Posts: 5
Joined: Tue Apr 30, 2013 1:57 am

Re: Sevice Dependencies

Post by hasnatawan »

suppose we have 2 host A and B .we want to add a service on host B which which should be ok in the following conditions
1. if A is down and B is UP
2.if B is down and A is UP.
it should only notify when A and B both (hosts) are down
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Sevice Dependencies

Post by slansing »

This sounds like something which would be more easily configured and explained in the context of BPI groups, please take a look at this link:

http://exchange.nagios.org/directory/Ad ... 29/details

It sounds like these are hypothetical questions which I am assuming have some end goal, but this is how they could be put into practice.
Locked