views:

16

answers:

0

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 url http://username:password@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