Hi, I have upgraded Monit from 4.8.1 to 5.0.3 and it fixed our issues.
Thanks for all your help. Regards, Max On Tue, Sep 21, 2010 at 8:18 PM, Martin Pala <[email protected]> wrote: > Hello, > > The "connection failed" showed for "aHost" can be error in old monit > version 4.8.1 which it seems you use. I think there was some problem where > the error flag was not reset so it showed false error => monit upgrade will > fix that problem. > > Regarding "dHost" - it seems that the log entry from http server log is for > some different request, as it shows 401(unauthorized), where monit log says > 404 (not found). As mentioned in one of previous emails, try to get network > trace of the communication between monit and the web server so you can check > full http request from monit (Authorization header, Host header, etc.) and > if check the URL encoding. > > If you have two hosts which authenticate OK and one which refuses, you > should focus on differences, such as whether the host which returns 401 use > the same username and password as the two hosts which return 200? > > Regards, > Martin > > > > On Sep 21, 2010, at 1:23 AM, M M wrote: > > > 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:passw...@aipaddress/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:passw...@dipaddress/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 > > > > > > > > -- > > To unsubscribe: > > http://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
