Melanie Pfefer
2007-09-07 09:17:07 UTC
hi,
I ran this from the shell:
./check_http -H host2 -p 8088
HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 seconds
|time=0.342683s;;;0.000000 size=1192B;;;0
now I added these lines in services.cfg:
define service{
use local-service
; Name of service template to use
host_name host2
service_description HTTP
availability
check_command check_http -H
host2 -p 8080
}
when I ran ./nagios -v ../etc/nagios.cfg, I have this
error:
Error: Service check command 'check_http -H host2 -p
8080' specified in service 'HTTP availability' for
host 'host2' not defined anywhere!
PS: in commands.cfg, I have these:
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -H
$HOSTADDRESS$
}
thanks.
___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
I ran this from the shell:
./check_http -H host2 -p 8088
HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 seconds
|time=0.342683s;;;0.000000 size=1192B;;;0
now I added these lines in services.cfg:
define service{
use local-service
; Name of service template to use
host_name host2
service_description HTTP
availability
check_command check_http -H
host2 -p 8080
}
when I ran ./nagios -v ../etc/nagios.cfg, I have this
error:
Error: Service check command 'check_http -H host2 -p
8080' specified in service 'HTTP availability' for
host 'host2' not defined anywhere!
PS: in commands.cfg, I have these:
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -H
$HOSTADDRESS$
}
thanks.
___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html