Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Marc Powell

On Jun 1, 2009, at 1:46 PM, Andrew Davis wrote:

 The bulk of my systems are behind one of three switches. I just went  
 through my hosts.cfg file and added the parents line and  
 appropriate switch name for each, but the host dependencies aren't  
 showing up.

Parents and host dependencies are not the same thing. parents is  
probably what you want and have configured correctly based on the  
information you've provided. Nagios doesn't count them for the summary.

--
Marc

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Andrew Davis

Double-checking the docs I think I just realized this...

If I understand this right, the parents option is used for Nagios 
itself (prehaps better re-worded as internally) to define the network 
topology for the core host check. If the switch is down, it won't mark a 
host as Down, only as Unreachable.


For a host dependency, I have to define something like this:

define hostdependency{
   host_nameHost A
   dependent_host_nameHost C
   notification_failure_criteriad
   }

define hostdependency{
   host_nameHost B
   dependent_host_nameHost C
   notification_failure_criteriad,u
   }

Am I understanding this right?

What gets me is that what Nagios seems to call a parent is, to me 
anyway, a network/host dependency. Hosts are dependent on the network 
and services are dependent on hosts. I guess I'm missing where a host 
dependency would actually be of any value...


 A. Davis
 Email: ncc...@gmail.com

 There is no limit to what a man can accomplish
  if he doesn't care who gets the credit. - Ronald Reagan



Marc Powell wrote:

On Jun 1, 2009, at 1:46 PM, Andrew Davis wrote:

  
The bulk of my systems are behind one of three switches. I just went  
through my hosts.cfg file and added the parents line and  
appropriate switch name for each, but the host dependencies aren't  
showing up.



Parents and host dependencies are not the same thing. parents is  
probably what you want and have configured correctly based on the  
information you've provided. Nagios doesn't count them for the summary.


--
Marc

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
  
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Zack Colgan
Andrew Davis wrote:
 The bulk of my systems are behind one of three switches. I just went
 through my hosts.cfg file and added the parents line and appropriate
 switch name for each, but the host dependencies aren't showing up. I do
 use a host template for most of the servers and then other specifics.
 Below is a sample of what's defined. Initially I thought the issue was
 the Nagios server being in the same switch as one of the switches, but
 the last entry below shows a switch defined as a parent and the Nagios
 server is not behind the switch (Nagios is behind flscrb234srvsw5, the
 last host is behind flscrb234srvsw6). The VLAN is the same for all the
 hosts in the three switches... all hosts operate on 10.1.1.x/16 or
 10.1.80.x/16 which is all a single VLAN. I'd appreciate any thoughts on
 why it might not be working:
 
 *snip*
 
 define host {
 host_name   flscrb234srvsw5
 use Network-Switches
 alias   4948-5 - B234
 address 10.100.0.45
 }
 
 define host {
 host_name   flscrb234srvsw6
 use Network-Switches
 alias   4948-6 - B234
 address 10.100.0.46
 }
 ...
 *snip*
 
 define host {
 host_name   aten
 use Linux-Servers
 alias   Aten (SLES)
 address 10.1.80.3
 parents flscrb234srvsw5
 }
 ...
 define host {
 host_name   delos
 use Linux-Servers
 alias   Delos (CentOS)
 address 10.1.1.93
 parents flscrb234srvsw6
 }
 
 
 Reading configuration data...
 
 Running pre-flight check on configuration data...
 
 *snip*
 
 *Checking host dependencies...
 Checked 0 host dependencies.*

Host dependencies are not generated with the use of the parents
directive.  Specifying parents allows you to create a topology for the
status map, and also to allow Nagios to detect a host as being
UNREACHABLE versus DOWN, if they are a child of another host.  If you
want host (or service) dependencies, you must create dependency objects:
 http://nagios.sourceforge.net/docs/3_0/dependencies.html

-Zack

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Max Hetrick
Andrew Davis wrote:
 Double-checking the docs I think I just realized this...
 
 If I understand this right, the parents option is used for Nagios 
 itself (prehaps better re-worded as internally) to define the network 
 topology for the core host check. If the switch is down, it won't mark a 
 host as Down, only as Unreachable.
 
 For a host dependency, I have to define something like this:
 
 define hostdependency{
 host_nameHost A
 dependent_host_nameHost C
 notification_failure_criteriad
 }
 
 define hostdependency{
 host_nameHost B
 dependent_host_nameHost C
 notification_failure_criteriad,u
 }
 
 Am I understanding this right?
 
 What gets me is that what Nagios seems to call a parent is, to me 
 anyway, a network/host dependency. Hosts are dependent on the network 
 and services are dependent on hosts. I guess I'm missing where a host 
 dependency would actually be of any value...

Host dependencies aren't to be confused with parent/child relationships. 
Parent/child relationships are what actually define the network topology.

Host dependencies are just for defining a dependency from host A to 
from host B and so on. I'm not sure the usefulness of this, but I'm 
sure someone uses it.

http://www.nagios.org/faqs/viewfaq.php?faq_id=145

Regards,
Max

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Glen Barber
On Mon, Jun 1, 2009 at 3:43 PM, Max Hetrick maxhetr...@verizon.net wrote:

 Host dependencies aren't to be confused with parent/child relationships.
 Parent/child relationships are what actually define the network topology.

 Host dependencies are just for defining a dependency from host A to
 from host B and so on. I'm not sure the usefulness of this, but I'm
 sure someone uses it.

 http://www.nagios.org/faqs/viewfaq.php?faq_id=145

 Regards,
 Max


I could see the usefulness for remote sites, checking that a router is
on a network, before scanning servers/clients inside the network.
Obviously if the router is unreachable, you don't want to continue
scanning that part of the network.

Regards,

-- 
Glen Barber
FreeBSD Tutorials: http://www.dev-urandom.com

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Marc Powell

On Jun 1, 2009, at 2:24 PM, Andrew Davis wrote:

 Double-checking the docs I think I just realized this...

 If I understand this right, the parents option is used for Nagios  
 itself (prehaps better re-worded as internally) to define the  
 network topology for the core host check. If the switch is down, it  
 won't mark a host as Down, only as Unreachable.

 For a host dependency, I have to define something like this:

 define hostdependency{
 host_nameHost A
 dependent_host_nameHost C
 notification_failure_criteriad
 }

 Am I understanding this right?

Correct.

 What gets me is that what Nagios seems to call a parent is, to me  
 anyway, a network/host dependency. Hosts are dependent on the  
 network and services are dependent on hosts. I guess I'm missing  
 where a host dependency would actually be of any value...

Yes, they are very similar... hostdependencies give you more  
flexibility about when it's valid and under what conditions though.  
Like you, I'm hard-pressed to come up with an example of when it's  
actually interesting... I guess the best example I can think of based  
on my understanding is if you have your nagios server on a different  
LAN than two other servers. Server B is dependent on Server A for  
functioning. If ServerA and ServerB are unreachable from nagios, that  
may not be a big deal; they could still be providing services locally  
just fine. If ServerA is down though, that's a different matter.  
*shrug* I could be completely off base on that scenario ;) I don't use  
dependencies G

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Host dependencies not being picked up...

2009-06-01 Thread Max Hetrick
Marc Powell wrote:

 Yes, they are very similar... hostdependencies give you more  
 flexibility about when it's valid and under what conditions though.  
 Like you, I'm hard-pressed to come up with an example of when it's  
 actually interesting... I guess the best example I can think of based  
 on my understanding is if you have your nagios server on a different  
 LAN than two other servers. Server B is dependent on Server A for  
 functioning. If ServerA and ServerB are unreachable from nagios, that  
 may not be a big deal; they could still be providing services locally  
 just fine. If ServerA is down though, that's a different matter.  
 *shrug* I could be completely off base on that scenario ;) I don't use  
 dependencies G

Ahh, yeah I guess that makes sense. I don't use them either, except for 
a few service dependencies. We have an i5 AS400 here where the services 
that we're checking are dependent on a login service. If you can't 
login, you can't check the services, but that doesn't mean that the 
other services are down.

This is the only time I've ever needed to use host/service dependencies. 
I guess there are specific applications for the need of them. :)

Regards,
Max

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null