nagios and parenting...

Alex Dehaini alexdehaini at gmail.com
Tue Jan 15 16:48:03 CET 2008


let us assume nagios is called "localhost" and let us assume that this is
the host definition for nagios

define host{
        use                     linux-server
        host_name          localhost
        alias                   localhost
        address               192.168.1.1
        parents                *local-router*
        }

The above host definition applies to the local nagios server and it shows
that it depends on a router. On your nagios status map - nagios server will
depend on the local-router.

Alex


On Jan 15, 2008 3:40 PM, Eric F Crist <ecrist at secure-computing.net> wrote:

> OK, great.  How?
>
> Eric
>
> On Jan 15, 2008, at 9:23 AM, Alex Dehaini wrote:
>
> > You can make nagios depend on another host or device, that should
> > solve your problem.
> >
> > On Jan 15, 2008 2:30 PM, Eric F Crist <ecrist at secure-computing.net >
> > wrote:
> > On Jan 14, 2008, at 2:40 PM, Patrick Morris wrote:
> >
> > > On Mon, 14 Jan 2008, Eric F Crist wrote:
> > >
> > >> Is there any way or any benefit to telling nagios it resides on a
> > >> particular host?  It would appear to me that bit of information
> > would
> > >> be necessary to properly handle notifications and parenting.
> > >
> > > Assuming you set up your parents correctly (from the perspective of
> > > Nagios), it'll drop itself into the right place.
> > >
> > > And, no, there's no way to tell Nagios whic host it lives on, but
> > > again,
> > > if you set up parents correctly, it won't matter.
> > >
> > > Say Nagios lives on Box A, and that box plugs into Switch B.  You're
> > > alos monitoring Box C, also attached to Switch B.
> > >
> > > Switch B would have a parent of Box A, and Box C would have a parent
> > > of
> > > Switch B.  When you look at the status map after setting that up,
> > > you'll
> > > see Nagios happily hanging itself off Box A, since it's the topmost
> > > parent of everything else.
> >
> >
> > I think I do have all of the parenting set up correctly, but the
> > Nagios process appears in the status map in the center, not attached
> > to anything.  Should Nagios be at the top of my parenting chain?
> > Rather, the nagios host?
> >
> > -----
> > Eric F Crist
> > Secure Computing Networks
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > 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
> >
> >
> >
> > --
> > Alex Dehaini
> > Developer
> > Site - www.alexdehaini.com
> > Email - alexdehaini at gmail.com
>
> -----
> Eric F Crist
> Secure Computing Networks
>
>
>


-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - alexdehaini at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080115/ec60aec2/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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