Hi,

the configuration looks OK. If you test the exact URL used by monit in browser, 
do you get to the site? The problem could be related to the use of IP address 
in the testing URL vs. http configuration which may drop you to the default 
host - if you use IP address it will also appear in the Host header in http 
request ... that combined with name based virtual servers in http configuration 
which may redirect the testing request to different site.

1.) run monit in verbose mode (using -vI options) and send output
2.) attach network trace if the communication between monit and tested http 
server with the testing problem

Regards,
Martin


On Sep 5, 2010, at 10:23 PM, M M wrote:

> Hi,
> 
> We have few sites on a Unix server that we monitor using monit. All sites are 
> monitored correctly except for 2 that require http-basic-auth.
> 
> I have passed the credentials in the URL like below as suggested by the monit 
> 4.8.1 documentation:
> 
> check host aHost with address anIPAddress if failed 
> urlhttp://username:passw...@anipaddress/advancedSearch.jsp for 5 cycles then 
> alert
> 
> However, when checking the connection status on monit for the aHost the 
> status is:
> 
> Connection Failed.
> 
> What am I doing wrong?
> 
> How can I manage to pass the credentials and get a successful connection?
> 
> PS this is monit 4.8.1
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to