Hi !
I am having a hard time configuring any check on my 4.2.p1 system.
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. Only way is to make HOST=server1.domain.com and HOST=server2.domain.com
How can this be ? its a very simple setup.
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 ? how can I test the file settings ?
BR Thomas
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
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
Greg,
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...
Ya you have to escape it if you wanna be sure it's a "DOT". You can try it with pcretest on your shell
[root at hera ~/netdisco]# pcretest PCRE version 4.5 01-December-2003
re> /\d\.\d.\d/
data> 1.234
0: 1.234
data> 123.4
No match
data> 1.2.3
0: 1.2.3
data> 12345
No match
So you can see that "\." will match exactly a DOT not any other
character as "." will do.
-Werner
participants (4)
-
greg.hubbard@eds.com
-
henrik@hswn.dk
-
tlp-hobbit@holme-pedersen.dk
-
wxxx333@gmail.com