Xymon Mailing List Archive search

Syntax for regular expression in client-local.cfg

3 messages in this thread

list Glauber Ribeiro · Mon, 4 Jun 2018 16:35:38 +0000 ·
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 · Mon, 4 Jun 2018 18:02:38 +0000 ·
[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
quoted from Glauber Ribeiro

-----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 · Fri, 8 Jun 2018 08:30:51 -0500 ·
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