You get an Access Denied because the page refered by $HOSTNAME$ (ex :
www.mydomain.com) can't be access directly.
If you need to go at a specific page ( ex :
www.mydomain.com/login.asp) you must use a different check.
You must be using the basic check_http :
Code:
define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$
}
Define a new one in your checkcommands.cfg :
Code:
define command{
command_name check_http_url
command_line $USER1$/check_http -H "$HOSTADDRESS$/$ARG1$"
}
then in your services.cfg, replace the entry for the new check command :
Code:
define service{
use template_for_that_host
service_description MyWebPage
check_command check_http!login.asp