host ping

Jasmine jasmine.chua at securecirt.com
Thu May 29 20:00:54 CEST 2003


-----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! 

Please let me know. Thanks!
- -- 
Jasmine Chua

"Without change, something sleeps inside us, and seldom awakens.  The
sleeper must be awaken." -- Duke Leto Atreides
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1krbNgvTa7Hj2AURAlF3AJ9DY7awgr9N6C7XhGaMTpkVR0caHACgmWmI
3ozh9BRuE8kz1begePrtjto=
=g4f0
-----END PGP SIGNATURE-----



-------------------------------------------------------
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