Everything works! But I want more!

Marc Powell marc at ena.com
Wed Nov 24 17:09:26 CET 2004



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Ben Hyde
> Sent: Wednesday, November 24, 2004 7:55 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Everything works! But I want more!
> 
> On Nov 23, 2004, at 7:10 PM, Mark D. Nagel wrote:
> > Daniel maher wrote:
> >
> >> I think that what he's looking for is a way to represent
> >> non-monitorable (I'm inventing words now) objects in the
> >> automatically generated network map.  This is a neat idea; for
> >> example, I'd /love/ to be able to put a hub in that map, and have
> >> things hang off of it visually, but since there's no way to
> >> intelligently put such an object into the Nagios conf (that I'm
aware
> >> of), the map remains topologically inaccurate.
> >>
> >> To put it another way, I don't want to monitor the hub - I just
want
> >> to /see/ it placed accurately in the map. :)
> >>
> >> Any ideas?
> >>
> > Ya mean, like this?
> >
> > define host {
> >    use                         generic-host
> >    check_command               check_ok
> >    max_check_attempts          1
> >    notification_interval       60
> >    notification_period         never
> >    notification_options        n
> >    host_name                   some-hub
> >    alias                       Some Unmanaged Hub
> >    address                     127.0.0.1
> >    parents                     parent-host
> > }
> >
> > The check_ok command is simply a call to 'check_dummy OK'.  You can
> > then use this as a parent for whatever devices are behind it, but it
> > itself will always appear up.
> 
> That's only marginally different than what I was doing and I still get
> a "Pending" label in my status map for my equivalent of some-hub.  I
> guess my real question boils down to: "What is considered the 'right'
> way to represent objects in my status map that can not be actively or
> passively monitored."

There is no 'right' way to implement functionality that Nagios wasn't
intended to have. However, to make the pending status change to OK,
simply create a dummy service on the host using the same check_command
(check_dummy OK). That should at least emulate what you trying to
accomplish.
 
--
Marc



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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