Xymon Mailing List Archive search

clients-local.cfg question

4 messages in this thread

list Chuck Danger · Fri, 5 Jan 2007 19:39:53 -0800 (PST) ·
I seem to be having a problem understanding clients-local.cfg.  Is it not possible for a host to match multiple entries in clients-local.cfg?  I have this currently:

bb-hosts:
....
192.168.1.2    test    # class=app

clients-local.cfg:
[sunos]
log: /var/adm/message:10240

[app]
file:/home/test/app/app.log

hobbit-clients.cfg:

DEFAULT
    ....

CLASS=app
    FILE /home/test/app/app.log RED size<150000


I would think that this would result in the client checking the logfile size at /home/test/app/app.log.  However, looking at the logfetch results on the client, I can see that it is not picking up the file config from clients-local.  If I move the "file" statement to [sunos], it works fine.

What am I doing wrong here?

Thanks-
Jay


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
list Jerry Yu · Sat, 6 Jan 2007 14:21:53 -0500 ·
I believe only the first match counts in client-local.cfg.
quoted from Chuck Danger

On 1/5/07, Chuck Danger <user-1bc65d9b5be1@xymon.invalid> wrote:
I seem to be having a problem understanding clients-local.cfg.  Is it not
possible for a host to match multiple entries in clients-local.cfg?  I
have this currently:

bb-hosts:
....
192.168.1.2   test   # class=app

clients-local.cfg:
[sunos]
log: /var/adm/message:10240

[app]
file:/home/test/app/app.log

hobbit-clients.cfg:

DEFAULT
    ....

CLASS=app
    FILE /home/test/app/app.log RED size<150000


I would think that this would result in the client checking the logfile
size at /home/test/app/app.log.  However, looking at the logfetch results on
the client, I can see that it is not picking up the file config from
clients-local.  If I move the "file" statement to [sunos], it works fine.

What am I doing wrong here?

Thanks-
Jay

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
list Henrik Størner · Sun, 7 Jan 2007 00:23:41 +0100 ·
quoted from Chuck Danger
On Fri, Jan 05, 2007 at 07:39:53PM -0800, Chuck Danger wrote:
I seem to be having a problem understanding clients-local.cfg.  
Is it not possible for a host to match multiple entries in 
clients-local.cfg?
Not in the original 4.2.0 release. There is a patch for this on
http://www.hswn.dk/hobbitsw/patches/ in the "Enhancements" section.


Henrik
list Chuck Danger · Tue, 9 Jan 2007 15:43:33 -0800 (PST) ·
Thanks Henrik, I went ahead and applied the patch cluster.

I am still having a problem with classes though;  when I create a CLASS in hobbit-clients.cfg, like so:

CLASS=app
    FILE /var/log/app/app.log size<1 red

and apply the class tag in bb-hosts, like so:

192.168.1.10    test    # testip class=app

it is not picking up the FILE statement in the CLASS definition.  If I change the CLASS definition to a HOST definition (with appropriate hostname), it works fine.

Thanks-
Jay
quoted from Henrik Størner

----- Original Message ----
From: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Saturday, January 6, 2007 3:23:41 PM
Subject: Re: [hobbit] clients-local.cfg question

On Fri, Jan 05, 2007 at 07:39:53PM -0800, Chuck Danger wrote:
I seem to be having a problem understanding clients-local.cfg.  
Is it not possible for a host to match multiple entries in 
clients-local.cfg?
Not in the original 4.2.0 release. There is a patch for this on
http://www.hswn.dk/hobbitsw/patches/ in the "Enhancements" section.


Henrik


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com