I am trying to change the default port for check_http but is not working...
here is what I have in the commands.cfg
$USER1$/check_http -I $HOSTADDRESS$ -p 10000 $ARG1$ $ARG2$
and here is my localhost.cfg
Code:
define service{
use local-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http
notifications_enabled 0
}
nagios is reporting the service as down with
Code:
Name or service not known
HTTP CRITICAL - Unable to open TCP socket
The server only listens in port 10000 and to the LAN IP ie 10.30.4.77 and localhost resolves to 10.30.4.77 and to 127.0.0.1
How can I have nagios check this?
Any ideas?
TIA!