Wildcard in client-local.cfg
list L.M.J
Hi,
On Xymon 4.2.2, I would to know if I can add wildcard in
client-local.cfg like this :
[machi*]
log:/var/log/messages:10240
Or, at least,
[machine1,machine2,machine3,machine4]
log:/var/log/messages:10240
Thanks by advance.
list Henrik Størner
▸
In <user-b1a27a551032@xymon.invalid> "L.M.J" <user-78bb6d5d9024@xymon.invalid> writes:
On Xymon 4.2.2, I would to know if I can add wildcard in client-local.cfg like this :
[machi*] log:/var/log/messages:10240
Or, at least,
[machine1,machine2,machine3,machine4] log:/var/log/messages:10240
Unfortunately not. The [foo] in client-local.cfg is matched against the full hostname, then the "class" of the host (defaults to the operating system name, but you can define the class with the CLASS definition in hosts.cfg / bb-hosts, or by starting the client with the "--class" option); and finally it is matched against the operating system name. But in neither case does it support wildcards, lists or patterns. Regards, Henrik
list L.M.J
Le Thu, 10 Feb 2011 16:34:55 +0000 (UTC),
▸
Henrik "Størner" <user-ce4a2c883f75@xymon.invalid> a écrit :
On Xymon 4.2.2, I would to know if I can add wildcard in > client-local.cfg like this : [machi*] log:/var/log/messages:10240 Or, at least, [machine1,machine2,machine3,machine4] log:/var/log/messages:10240Unfortunately not. The [foo] in client-local.cfg is matched against the full hostname, then the "class" of the host (defaults to the operating system name, but you can define the class with the CLASS definition in hosts.cfg / bb-hosts, or by starting the client with the "--class" option); and finally it is matched against the operating system name. But in neither case does it support wildcards, lists or patterns.
Ok, thank you very much for the info ! -- LMJ "May the source be with you my young padawan" http://sites.google.com/site/imatruelinuxmasterjedi/