Xymon Mailing List Archive search

case sensitive bb-hosts?

3 messages in this thread

list Galen Johnson · Mon, 28 Aug 2006 23:38:53 -0400 ·
Not sure if this has come up before but I ran into an issue that I would consider a bug...others may not as it's more of an annoyance.  After setting up 4.2 and a BBWin machine I kept getting a ghost machine listed under the hobbitd montor.  I had entered abc1.fqdn.test.com into the bbhosts file...I got my connection and http info...I checked the hobbitd monitor and saw a "ghost" ABC1...then I changed the entry to abc1...same output...once I changed the entry in bb-hosts to ABC1 (an exact match of the ghost in hobbitd), hobbit displayed the monitors as I would expect it to.

The fact that bb-hosts is case sensitive came as a bit of a surprise.  I would think you would want to run it through tolower...is there a reason it was set to be case sensitive?  I can't think of a good reason for it to do so.

=G=
list Henrik Størner · Tue, 29 Aug 2006 07:30:28 +0200 ·
quoted from Galen Johnson
On Mon, Aug 28, 2006 at 11:38:53PM -0400, Galen Johnson wrote:
The fact that bb-hosts is case sensitive came as a bit of a surprise.  I 
It isn't.

I don't know what you did, but hostnames are always matched without
caring about upper/lowercase. (Just to be sure, I double-checked this on
a 4.2 install using both normal status- and client-messages).

Hobbit *does* care about the full hostname, though. It is common for
ghosts to appear because the bb-hosts entry uses a hostname with the
domain included, and the clients send hostnames with no domain.


Regards,
Henrik
list Galen Johnson · Tue, 29 Aug 2006 16:09:53 -0400 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Mon, Aug 28, 2006 at 11:38:53PM -0400, Galen Johnson wrote:
 
The fact that bb-hosts is case sensitive came as a bit of a surprise.  I    
It isn't.

I don't know what you did, but hostnames are always matched without
caring about upper/lowercase. (Just to be sure, I double-checked this on
a 4.2 install using both normal status- and client-messages).

Hobbit *does* care about the full hostname, though. It is common for
ghosts to appear because the bb-hosts entry uses a hostname with the
domain included, and the clients send hostnames with no domain.


Regards,
Henrik
 
Hmmm....interesting...I installed this on RHEL4 x64 using a package built from the spec file...I figured the lack of domain was what caused this...however,  I didn't get all the tests to show (or the ghost to disappear) until I made the case match...unfortunately I don't have another server I can verify with...yet.

=G=