Host DOWN

Jag agrajag at dragaera.net
Wed Mar 3 15:58:08 CET 2004


On Wed, 2004-03-03 at 09:39, Dmitry Chorine wrote:
> Jag,
> 
> What do you mean to run check-host-command from command line?
> 
> According to checkcommands.cfg
> 
> ########################################################################
> ########
> #
> # SAMPLE HOST CHECK COMMANDS
> #
> ########################################################################
> ########
> 
> 
> # This command checks to see if a host is "alive" by pinging it
> # The check must result in a 100% packet loss or 5 second (5000ms) round
> trip 
> # average time to produce a critical error.
> # Note: Only one ICMP echo packet is sent (determined by the '-p 1'
> argument)
> 
> # 'check-host-alive' command definition
> define command{
>         command_name    check-host-alive
>         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 500
> 0.0,100% -p 1
>         }
> 
> Command line was used 
> 
> $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
> 
> Where do I type this commmand? Its obviosly not a shell command
> 

It is a shell command, you just need to substitute in the macro values
:)   $USER1$ should be defined in /etc/nagios/private/resource.cfg  It
is most likely /usr/lib/nagios/plugins     $HOSTADDRESS$ is the IP of
the host in question.  This is the IP you put in the 'address' value of
the host definition.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
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