[hobbit] hobbit-clients.cfg

Hubbard, Greg L greg.hubbard at eds.com
Fri Aug 25 15:39:22 CEST 2006


Just curious -- in other regex implementations you have to "escape" the
dot if you want it to match a literal period (dot) instead of any
character.  Does PCRE work the same way?  I am always getting bit by
this when I am trying to match IP addresses and domain names...

So would HOST=%host.*.domain.com match both host.somewhere.domain.com as
well as host.adomain-com.somewhere-else.com ?

Of course, in hobbit-alerts we know what our host names are going to
look like -- a simpler problem to solve than when trying to match
freeform text originating who-knows-where...

GLH

-----Original Message-----
From: Henrik Stoerner [mailto:henrik at hswn.dk] 
Sent: Friday, August 25, 2006 2:50 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] hobbit-clients.cfg

On Fri, Aug 25, 2006 at 09:11:54AM +0200, Thomas wrote:

> Anyway I turn it I can never get more hosts to match the same HOST 
> definition even if I have to servers called server1 and server2 I put 
> a HOST=%host*.domain.com but it will not match.

Nope, that one will match "hos.domain.com", "host.domain.com",
"hostt.domain.com", "hosttttttttttttttt.domain.com" etc.

What you're after is HOST=%host.*.domain.com .

> Anyway I am configuring a new host with PROC settings but I can never 
> get the web page to display my settings. Should hobbit be restarted 
> completly after changing the hobbit-clients.cfg filer ?

No, the hobbitd_client module will reload the config regularly, every 10
minutes. Or you can do a "kill -HUP <pid of hobbitd_client>" to force
the config reload.  After the config has reloaded, the new settings will
show up when the client next reports to the server.

> how can I test the file settings ?

Try setting them to something that should cause a yellow or red status.


Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list