exhost question
list Bill Perez
Hello, Could someone let me know how I can use 2 different domain names when excluding hosts in the hobbit-alerts.cfg? Example: exhost=%(server).test.com %(server).abc.intra. I tried to use a comma and space between the 2 domain names but it isn't taking it. Thanks in advance for any info
list Henrik Størner
▸
On Fri, Jul 21, 2006 at 09:04:49AM -0400, Bill Perez wrote:
Could someone let me know how I can use 2 different domain names when excluding hosts in the hobbit-alerts.cfg? Example: exhost=%(server).test.com %(server).abc.intra. I tried to use a comma and space between the 2 domain names but it isn't taking it.
How about exhost=%server.(test.com|abc.intra) Regards, Henrik
list Bill Perez
How about exhost=%server.(test.com|abc.intra)
The server names are actually different. so it's server1.test.com server2.abc.intra and another server doesn't have a domain name specified. Any other ideas?
▸
On 7/21/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Fri, Jul 21, 2006 at 09:04:49AM -0400, Bill Perez wrote:Could someone let me know how I can use 2 different domain names when excluding hosts in the hobbit-alerts.cfg? Example: exhost=%(server).test.com %(server).abc.intra. I tried to use a comma and space between the 2 domain names but it isn't taking it.How about exhost=%server.(test.com|abc.intra) Regards, Henrik
list David Gore
Bill Perez wrote:
How about exhost=%server.(test.com|abc.intra)The server names are actually different. so it's server1.test.com <http://server1.test.com>; server2.abc.intra and another server doesn't have a domain name specified. Any other ideas?
▸
On 7/21/06, *Henrik Stoerner* <user-ce4a2c883f75@xymon.invalid <mailto:user-ce4a2c883f75@xymon.invalid>> wrote: On Fri, Jul 21, 2006 at 09:04:49AM -0400, Bill Perez wrote:Could someone let me know how I can use 2 different domain names when excluding hosts in the hobbit-alerts.cfg? Example: exhost=%(server).test.com %(server).abc.intra. I tried to use a comma and space between the 2 domain names but it isn't taking it.How about exhost=%server.(test.com|abc.intra) Regards, Henrik
The host names are separated by commas. Here is our rule, but it uses a macro.
$HOSTS_EXCLUDED=server1.test.com,server2.abc.intra
EXHOST=$HOSTS_EXCLUDED EXSERVICE=$SERVICES_EXCLUDED COLOR=red
IGNORE HOST=* SERVICE=%(tl1am|^se$) TIME=*:0200:1200
Perhaps make sure there are no spaces after the commas or equals sign? Looking at Henrik's example, I suppose EXHOST is not case sensitive, although ours is all uppercase.
Run this to make sure your config looks ok:
bin/bbcmd hobbitd_alert --dump-config
list Nicolas Lienard
Hi,
Hobbit client : hobbit-4.2-beta-20060605
OS: FreeBSD 6.1
I configured on hobbit server the client-local.cfg for freebsd:
[freebsd]
log:/var/log/messages:10240
log:/var/log/maillog:10240
file:/usr/local/bin/bash:md5"
and the hobbit-clients.cfg :
HOST=baldo
FILE /usr/local/bin/bash MD5=e457ec5b7884437c7ce266e5827a4a43
LOG /var/log/messages diff-bkp-mx-dom red
but it doesn't work, the status of FILES is:
red /usr/local/bin/bash
File has MD5 hash (No MD5 data) - should be e457ec5b7884437c7ce266e5827a4a43
On client-data information, there is this section:
[file:/usr/local/bin/bash]
type:100000 (file)
mode:755 (-rwxr-xr-x)
linkcount:1
owner:0 (root)
group:0 (wheel)
size:594692
clock:1153621952 (2006/07/23-04:32:32)
atime:1153620827 (2006/07/23-04:13:47)
ctime:1150500756 (2006/06/17-01:32:36)
mtime:1145695494 (2006/04/22-10:44:54)
it seems it doesn t manage to do the md5 check.
here the way i use to get the md5 of the file:
# md5 /usr/local/bin/bash
MD5 (/usr/local/bin/bash) = e457ec5b7884437c7ce266e5827a4a43
thanks in advance.
Regards,
Nicolas
list Henrik Størner
▸
On Sun, Jul 23, 2006 at 04:43:46AM +0200, Nicolas wrote:
Hi, Hobbit client : hobbit-4.2-beta-20060605 OS: FreeBSD 6.1 I configured on hobbit server the client-local.cfg for freebsd: [freebsd] log:/var/log/messages:10240 log:/var/log/maillog:10240 file:/usr/local/bin/bash:md5"
Is that a direct cut-and-paste ? If it is, try removing that double-quote character after the 'md5'.
▸
On client-data information, there is this section: [file:/usr/local/bin/bash] type:100000 (file) mode:755 (-rwxr-xr-x) linkcount:1 owner:0 (root) group:0 (wheel) size:594692 clock:1153621952 (2006/07/23-04:32:32) atime:1153620827 (2006/07/23-04:13:47) ctime:1150500756 (2006/06/17-01:32:36) mtime:1145695494 (2006/04/22-10:44:54) it seems it doesn t manage to do the md5 check.
Right, which leads me to suspect a configuration error. Also, could you check if the ~hobbit/client/tmp/logfetch.cfg file on the client contains the correct entries ? They should be identical to the [freebsd] section you have in client-local.cfg Regards, Henrik
list Nicolas Lienard
▸
Is that a direct cut-and-paste ? If it is, try removing that double-quote character after the 'md5'.
oh yes, you are right !! i won t configure hobbit the night next time. :-) Sorry and thanks ! Nicolas
list Bill Perez
Thanks for your reply David, this helped to get my issue resolved.
▸
On 7/21/06, David Gore <user-3e5761c68b56@xymon.invalid> wrote:Bill Perez wrote:How about exhost=%server.(test.com|abc.intra)The server names are actually different. so it's server1.test.com <http://server1.test.com>; server2.abc.intra and another server doesn't have a domain name specified. Any other ideas? On 7/21/06, *Henrik Stoerner* <user-ce4a2c883f75@xymon.invalid <mailto:user-ce4a2c883f75@xymon.invalid>> wrote: On Fri, Jul 21, 2006 at 09:04:49AM -0400, Bill Perez wrote:Could someone let me know how I can use 2 different domain names when excluding hosts in the hobbit-alerts.cfg? Example: exhost=%(server).test.com %(server).abc.intra. I tried to use a comma and space between the 2 domain names but it isn't taking it.How about exhost=%server.(test.com|abc.intra) Regards, HenrikThe host names are separated by commas. Here is our rule, but it uses a macro. $HOSTS_EXCLUDED=server1.test.com,server2.abc.intra EXHOST=$HOSTS_EXCLUDED EXSERVICE=$SERVICES_EXCLUDED COLOR=red IGNORE HOST=* SERVICE=%(tl1am|^se$) TIME=*:0200:1200 Perhaps make sure there are no spaces after the commas or equals sign? Looking at Henrik's example, I suppose EXHOST is not case sensitive, although ours is all uppercase. Run this to make sure your config looks ok: bin/bbcmd hobbitd_alert --dump-config