{bb} [Solved for me] Reversing the http test - a bug?
John Horne <[email protected]> Fri, 10 Oct 2008 17:26:53 +0100
| Newsgroups | gmane.network.bb4.general |
|---|---|
| Organization | University of Plymouth |
| Message-ID | <[email protected]> |
On Mon, 2008-09-15 at 12:12 -0400, Sean MacGuire wrote: > John Horne wrote: > > > > I have had 2 servers each running a web service, and monitored that it > > was running using BB. In the bb-hosts file I had entries like > > 'http://...'. > > I now want to reverse those tests to ensure that no-one restarts the web > > services. I have changed the bb-hosts entries to just '!http'. However, > > this does not seem to be working. It shows red on the monitor and BB > > says 'http - No connection'. > > > > Looking through old messages, it seems that this has been a problem for > > other people. I have an entry in /etc/services for 'http' on port 80, so > > that's not the problem. What I have noticed is that in the BBOUT file I > > get these messages: > > > > Mon Sep 15 12:50:59 2008 bbnet Unknown host: http > > > > It seems that BB is not handling the '!http' correctly. Is this (still) > > a bug? Does anyone have reverse http tests working correctly? If not, > > then I can spend a little while looking in to this to try and see what > > is going on. > > > > I should add, were using BB 1.9i on a CentOS 5.2 box. > > Hey John. I don't think reversing http tests work under 1.9i. > > I'd set up another service in /etc/services (web) and reverse > that one instead. > Hmmm... yeah, not really happy with that :-) I think the code should be able to sort this out. I spent a little time looking at it today, and I have added 'http' to the BBNETSVCS variable in the etc/bbdef-server.sh file (although there is a comment in there saying not to do this). Other than that all I had to do was add '!http' into the bb-hosts file, and it all seems to work fine :-) I get 'green' when the web service is down, and 'red' when it is back up. Nothing is logged in the log file (i.e. no obvious errors produced), and as far as I can see this causes no problems. Note: I have absolutely no idea if this would work for https, as I haven't tested that (and don't intend to). John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 587287 E-mail: [email protected] Fax: +44 (0)1752 587001 -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-= To unsubscribe from this list, or to subscribe to the bb-digest list send e-mail to mailto:[email protected] with unsubscribe bb -and/or- subscribe bb-digest in the BODY of the message.