[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to monitor sites behind http-basic-auth with monit

From: Martin Pala
Subject: Re: Unable to monitor sites behind http-basic-auth with monit
Date: Mon, 6 Sep 2010 00:04:07 +0200


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


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


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:address@hidden/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:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]