Xymon Mailing List Archive search

Wildcard in client-local.cfg

3 messages in this thread

list L.M.J · Thu, 10 Feb 2011 11:31:10 +0200 ·
 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 · Thu, 10 Feb 2011 16:34:55 +0000 (UTC) ·
quoted from L.M.J
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 · Fri, 11 Feb 2011 16:41:05 +0100 ·
Le Thu, 10 Feb 2011 16:34:55 +0000 (UTC),
quoted from Henrik Størner
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: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.
Ok, thank you very much for the info !

-- 
 LMJ
 "May the source be with you my young padawan"
 http://sites.google.com/site/imatruelinuxmasterjedi/