Problems with check_alive

Alexis Chauvin Alexis.chauvin at courtsplc.com
Tue Oct 14 16:21:31 CEST 2003


 
Hi,
 
Can you run the command from the command line ?
Ex : 
On my redhat it's for example 
$ /usr/local/nagios/libexec/check_ping -H ip.of.dst.host -w 100.0,80% -c
200.0,100% -p 2
 
if it return any status, that means the command is working
 
regards
 
alexis 
 
-----Original Message-----
From: grik at student.no [mailto:grik at student.no] 
Sent: 14 October 2003 13:45
To: Matthew Wilson
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Problems with check_alive
 
 
I cant find any called command.cfg but one called checkcommands.cfg
I cant really find any pointer to what command nagios really does, but
here is what I found in checkcommands.cfg
# 'check-host-alive' command definition
define command{
command_name   check-host-alive
command_line   $USER1$/check_ping -H $HOSTADRESS -w 3000. 0, 80% -c
5000. 0, 100% -p 1
}
So I am not sure where I can find the command that nagios really is
running.
I should mention that I havent installed any plugins or add-on's yet,
this is right from distributed .tar.gz
Maybe I am missing something ?

The check_ping definition in checkcommands.cfg looks like this:
# 'check_ping' command definition
define command{
command_name   check_ping
command_line    $USER1$/check_ping -H $HOSTADRESS -w $ARG1$ -c $ARG2$ -p
5
 
Mvh
 
Kjell Grindalen
 
 
----- Original Message -----
From: Matthew Wilson <matthewwilson at dsl.pipex.com> 
Date: Tuesday, October 14, 2003 2:22 pm 
Subject: Re: [Nagios-users] Problems with check_alive 
> Hi, 
> Have a look at you commands.cfg and check the command definiton for 
> check_ping / check_host_alive and try running it from the command 
> line. 
> If it doesn't work, post the full command definition and we can 
> take a 
> look. 
> 
> Matthew Wilson 
> DC-Sat.net 
> 
> On Tue, 2003-10-14 at 12:42, grik at student.no wrote: 
> > Hello! 
> > 
> > 
> > 
> > I have a small problem with the check alive standard check service 
> > 
> > 
> > 
> > In my nagios.log I get the following: 
> > 
> > SERVICE ALERT: hostname; PING;WARNING;HARD;3; (No output!) 
> > 
> > For all the hosts 
> > 
> > I searched a little, but couldnt find anything matching my problem. 
> > 
> > The nagios server is running on a Solaris 9 server, and I have 6 
> other> Solaris servers that I am watching with Nagios. I was 
> thinking that 
> > this had something to do with statistics about the icmp packet and 
> > tried to add a -v to the check-host-alive command like this: 
> > $USER1/check_ping -v -H $HOSTNAME -w etc... 
> > This didnt help, so maybe it has nothing to do with the Solaris 
> > implementation of ping..? 
> > 
> > 
> > Any advice for a newbie at Nagios ? 
> > 
> > ------------------------------------------------------- This SF.net 
> > email is sponsored by: SF.net Giveback Program. SourceForge.net 
> hosts> over 70,000 Open Source Projects. See the people who have 
> HELPED US 
> > provide better services: Click here: 
> > http://sourceforge.net/supporters.php 
> > _______________________________________________ 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 
> 
> 
------------------------------------------------------- This SF.net
email is sponsored by: SF.net Giveback Program. SourceForge.net hosts
over 70,000 Open Source Projects. See the people who have HELPED US
provide better services: Click here:
http://sourceforge.net/supporters.php
_______________________________________________ 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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031014/e828bfbf/attachment.html>


More information about the Users mailing list