Pending Host Check ... Forever

Tom DE BLENDE tdeblend at gcc.dhl.com
Fri Mar 28 09:22:30 CET 2003


I think some of you missed this one :-)

Subject: 
        Re: [Nagios-users] Pending Host Check ... Forever
   Date: 
        Thu, 27 Mar 2003 04:28:59 -0800 (PST)
   From: 
        "Roy S. Rapoport" <rsr at inorganic.org>
     To: 
        Tom DE BLENDE <tdeblend at gcc.dhl.com>
    CC: 
        <Nagios-users at lists.sourceforge.net>




On Thu, 27 Mar 2003, Tom DE BLENDE wrote:

> You know what? This looks very much like it is pending. And come to
> think of it, I did see this before, and that was due to some errors in
> the config file. Run a "nagios -v nagios.cfg" and see what it returns.

Found the problem -- there was no check_command defined for the host. 
I'm
surprised Nagios wasn't more upset about this.  Interestingly, even
running
nagios -v nagios.cfg did not expose this as a problem.

-roy

Fredrik Wänglund wrote:
> 
> Or a litle bit more simple one:
> 
> define service {
> ...
> check_command                  "echo OK"
> ...
> }
> 
> /FredrikW
> 
> Kertzman, Sam wrote:
> 
> >>Not requiring a check_command for a host is a _feature_ IMHO.  I have a
> >>couple of pieces of gear in my network (unmanaged hubs and switches)
> >>that need to be represented in Nagios so that graphs and dependencies
> >>work out correctly.  However, there's no direct way to determine if the
> >>host is up, except by the fact that I can reach hosts through
> >>that piece of gear.  But yes, the infinite "pending" status is annoying.
> >>
> >>Jeff
> >>
> >>
> >
> >Try building a check in the checkcommands.cfg file that uses 'check_dummy
> >0'.  For example:
> >
> >checkcommands.cfg
> >
> >...
> >define command{
> >    command_name  check_ok
> >    command_line  $USER1$/check_dummy 0
> >}
> >...
> >
> >
> >hosts.cfg
> >
> >...
> >define host{
> >    use            generic_host
> >    host_name      test_host
> >    alias          Generic Test Host
> >    check_command  check_ok
> >}
> >...
> >
> >
> >kertzman
> >
> >


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
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