http_check different port
Posted: Sat Jan 19, 2013 11:02 pm
Hi,
I'm having problem with http_check. So this is my configuration.
I added this to commands.cfg
and added host/service to test.cfg
When i check status on Nagios it says:
thank you for your help.
I'm having problem with http_check. So this is my configuration.
I added this to commands.cfg
Code: Select all
define command{
command_name check_http_port
command_line $USER1$/check_http -H $ARG1$ -p $ARG2$
}
Code: Select all
define host{
use linux-server ; Name of host template to use
host_name test
alias test
address 10.0.0.222
}
define service{
use local-service ; Name of service template to use
host_name test
service_description HTTP availability
check_command check_http_port!test!8080
}
check_http works fine:Current Status:
CRITICAL
(for 0d 0h 48m 58s)
Status Information: Name or service not known
HTTP CRITICAL - Unable to open TCP socket
Can anyone tell me what I'm doing wrong?./check_http -H 10.0.0.222 -p 8080
HTTP OK: HTTP/1.0 302 Found - 425 bytes in 0.311 second response time |time=0.311228s;;;0.000000 size=425B;;;0
thank you for your help.