Syntax for regular expression in client-local.cfg
list Glauber Ribeiro
What is the syntax for using regular expressions in client-local.cfg? Is it [host=regexp] or [host=%regexp]? Does it require quotes? Thanks, glauber
list Paul Root
[host=.*v201vm191] . . . [host=.*nas.*] . . . [host=nsm.*vp185] file:`ls /opt/smarts-ncm/ncmcore/java_pid*.hprof` log:/opt/smarts-ncm/ncmcore/logs/catalina.out:10240
▸
-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Ribeiro, Glauber
Sent: Monday, June 04, 2018 11:36 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon] Syntax for regular expression in client-local.cfg
What is the syntax for using regular expressions in client-local.cfg?
Is it [host=regexp] or [host=%regexp]? Does it require quotes?
Thanks,
glauber
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Schminke_Erik_D
Here are a couple of working uses of regexp in client-local.cfg I have in my setup: [class=%^(oracledb)$] log:`cat /hfc/xymon/client/etc/alert_log_list.txt`:10240 ignore (ORA-01013|Warning.*Heavy swapping observed on system in last 5 mins|ALTER SYSTEM ARCHIVE LOG|Thread.*advanced to log sequence.*LGWR switch|Archived Log entry.*added for.*|Current log.*seq.*mem.*|swapped in.*pct of memory swapped out|Private strand flush not complete|Setting Resource Manager plan |Starting background process) trigger (ORA-|checkpoint not complete|ARC|cannot allocate new log|core dump|Errors in file|Incident details in|WARNING|corrupt) [host=%aix] file:/hfc/tmp log:/var/log/ntp/ntp.log:12345 Erik D. Schminke | Associate Systems Programmer Hormel Foods Corporation | One Hormel Place | Austin, MN XXXXX Phone: (XXX) XXX-XXXX user-15513f33c451@xymon.invalid | www.hormelfoods.com