host ping
Subhendu Ghosh
sghosh at sghosh.org
Tue Jun 3 18:39:13 CEST 2003
On Fri, 30 May 2003, Jasmine wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> Just wondering if anyone can explain this to me. On the web interface, all my
> hosts have "Assumed to be up" status, even when I had the host check_command
> defined.
>
> define host{
> host_name host abc
> alias host abc
> address xxx.xxx.xxx.xxx
> check_command check-host-alive
> max_check_attempts 3
> notification_interval 0
> notification_period 24x7
> notification_options d,u,r
> }
>
> Also, if I want to vary the arguments passed into check-host-alive. but,
> apparently I failed to get Nagios to work with the configuration.
>
> define command{
> command_name check-thishost-alive
> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$,$ARG2$
> - -c $ARG4$,$ARG5$ -p 5 -t 50
> }
>
> define host{
> host_name host abc
> alias host abc
> address xxx.xxx.xxx.xxx
> check_command check-thishost-alive!20!2%!30!5%
> max_check_attempts 3
> notification_interval 0
> notification_period 24x7
> notification_options d,u,r
> }
>
> Is there anything wrong in defining this? Because Nagios complains that
> "check-thishost-alive" is not defined anywhere!
hosts are only checked if a service fails. if on startup all services are
fine, then hosts may not be checked...
host check command in 1.0 does not accept arguments (like the service
check commands)
--
-sg
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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