Below is my requirement.
I have switch, which is being monitored by Nagios core & I have 10 servers associates with that Hosts.
So if problem in N/W or switch is not accessible, all the servers which are associates with that Switch will shown down. In this case I should reach to Root Cause.
How to built service depencencies in Nagios Core
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to built service depencencies in Nagios Core
Could you provide more detail please? I am gathering that you have a switch, and would like the host connected to it to also show as down when it has issues. However you cannot make hosts dependent on services or vice versa. You can however have hosts dependent, and service checks should not alert if hosts are down. Finally, I recall another thread, where you are using XI not core, have you changed to core, or should I move this to the XI forum?
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.
Re: How to built service depencencies in Nagios Core
The following core document covering host and service dependencies is probably worth a read if you have not done so already: 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.
"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.
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: How to built service depencencies in Nagios Core
Below example might help you to understand my exact requirement.
I would need to find the Root cause of the problem. E.g. if my switch goes down, obvious server which are connected to that switch will not be accessible.
So I want to build relationship such as parent & child. Here Switch will act as Parent & server as child.
If switch goes down rather working on server, I will check switch existence first.
I would need to find the Root cause of the problem. E.g. if my switch goes down, obvious server which are connected to that switch will not be accessible.
So I want to build relationship such as parent & child. Here Switch will act as Parent & server as child.
If switch goes down rather working on server, I will check switch existence first.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to built service depencencies in Nagios Core
As abrist mentioned, the service dependencies documentation is very good to review, you should also look at Determining Status and Reachability of Network Hosts This should describe exactly what you are looking to implement.
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.