Nested notifications; parent vis-a-vis parent_host

Marc Powell marc at ena.com
Tue Jul 3 17:13:55 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Lev Lafayette
> Sent: Monday, July 02, 2007 10:40 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nested notifications; parent vis-a-vis
parent_host
> 
> 
> Hey nagios people,
> 


> However, when the parent machine goes down, all the VMs (for obvious
> reasons) send out a "Oh Noes!" message as well. This is not wanted.
> 

Shouldn't happen if your host checks work properly and you have the
parents directive properly set up to match your environment.

> Now the nagios documentation, dating back from the netsaint days, says
> the system to walk a dependency path using parent_host... however the
> hosts.cfg has entries like the following:

Why are you reading netsaint docuementation? It's incredibly outdated in
general. In this particular regard however, the parents functionality
has remained the same.

> define host{
>         use                     generic-host            ; Name of host
> template to use
>         host_name               guestvm1
>         alias                   guestvm1
>         address                 xxx.xxx.xxx.xxx
>         parents                 xendom0
>         check_command           check-host-alive
>         }
>

Does the host check for xendom0 return a down status when it's down?
That should do what you want.

> Now presumably, cgis like statusmap.cgi is built from this
information.
> Would changing 'parents' to 'parent_map' in the above fix the
dependency
> walk and notifications? And would it break statusmap.cgi?

No, it would break your configuration since parent_map isn't a valid
nagios directive. I think if you verify that your host check for xendom0
does what you think it does you should be ok with the above
configuration.

Recent documentation on the subject can be found at
http://nagios.sourceforge.net/docs/2_0/networkreachability.html

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list