Remote Linux Client Appears Down But ServicesAreMonitored

Marc Powell marc at ena.com
Tue Jan 23 00:11:09 CET 2007



> -----Original Message-----
> From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
> Sent: Monday, January 22, 2007 3:56 PM
> To: Marc Powell; Nagios-Users (E-mail)
> Subject: RE: [Nagios-users] Remote Linux Client Appears Down But
> ServicesAreMonitored
> 
> > I am interpreting this to mean that the Host status for the remote
host
> is >
> CRITICAL but the services on the host, checked by NRPE, show as OK.
> > If that is the case then the check_command in the host{} definition
for
> > the client does not accurately determine the status of the host.
What is
> > that check_command and does it work if you run it as the nagios user
> from >
> your nagios machine?
> 
> If I understand you correctly, you are referring to the
check-host-alive
> command
> in the hosts.cfg file. I'm sorry if I sound like and idiot, but there
is
> no
> check_host_alive plugin in the libexec directory. What command should
I
> run in
> this case?

You'll have a file with all the command{} definitions in it (typically
named commands.cfg or checkcommands.cfg). One of those command{}
definitions will be named 'check-host-alive'. That command definition
will specify a command_line that will be run to check if the host is
alive. That command_line, substituting in proper variables as required,
would be the command you should be testing as the nagios user.

It's probably something like 

define command{
        command_name    check-host-alive
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80% -c 5000.0,100% -p 1
        }

In which case, as the nagios user, you'd run
'/path/to/nagios/libexec/check_ping -H <ip or name of host here> -w
3000.0,80% -c 5000.0,100% -p 1

Where <ip or name of host here> is the value for 'address' specified in
the client host{} definition.

--
Marc

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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