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
I believe only the first match counts in client-local.cfg.
On 1/5/07, Chuck Danger <cdanger2k at yahoo.com> 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
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
participants (3)
-
cdanger2k@yahoo.com
-
henrik@hswn.dk
-
jjj863@gmail.com