monit-general
[Top][All Lists]
Advanced

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

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


From: M M
Subject: Re: Unable to monitor sites behind http-basic-auth with monit
Date: Tue, 21 Sep 2010 11:23:38 +1200

Hello again,

I have checked the web-server's error log:

for the aIPAddress below:

check host aHost with address aIPAddress 
    if failed url http://username:address@hidden/advancedSearch.jsp for 5 cycles then alert 

The server log shows no error 401:

[20/Sep/2010:23:04:46 +0000] "GET /advancedSearch.jsp HTTP/1.1" 200 7719 "-" "monit/4.8.1"

When running Monit in verbose mode for aIPAdress it correctly displays:

'dHost' succeeded connecting to INET[aIPAddress :80] via TCP
succeeded testing protocol [HTTP] at INET[aIPAddress :80] via TCP

Yet Monit shows that the Connection Failed and we do not get any email alert whether the site is up or down.

For the dIPAddress below:

check host dHost with address dIPAddress 
    if failed url http://username:address@hidden/advancedsearch.jsp for 5 cycles then alert

We still get the 401 error.  The password contains characters that should not be written in URLs.
In our case the characters are '^' and '@'.  I have encoded this characters respectively with 

^    %5E
@   %40

but I still get the 4101 error in the server log:

[20/Sep/2010:23:13:03 +0000] "GET /advancedSearch.jsp HTTP/1.1" 401 579 "-" "monit/4.8.1"

and of course when running Monit in verbose mode I get:

'dHost' succeeded connecting to INET[dIPAddress:80] via TCP 
HTTP error: Server returned status 404 

Monit in fact shows Connection failed and we do not get any email alert whether the site is up or down.

By the way hese two sites are always up and running.

Does anyone has a suggestion on how to fix these problems?

Thanks




reply via email to

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