AutoM8 0.35 Reg Ex help?

General discussion about Plugins for Cacti

Moderators: Moderators, Developers

Post Reply
Posts: 14
Joined: Sat Jun 11, 2011 7:31 pm

AutoM8 0.35 Reg Ex help?

#1 Post by OneZero » Mon Aug 01, 2011 9:59 am

I'm trying to write a regex for host graph tree creation. Got two of them created, but can't seem to get this one to match.
Here's what I've got.
Matching on host desc, which is B100 Bink to Str0, some are B100, some are B28 or B14. So I need to match the first 3-4 chars, to a space. And I want that to be the subtree.
Tried this matching pattern, which should work I think, ^(B[0-9]*)
With replacement pattern of ${1}

But as the result, I get the whole string back B100 Bink to Str0

What am I missing?

Posts: 23
Joined: Thu Jul 15, 2010 8:56 am
Location: Tours, FRANCE

Re: AutoM8 0.35 Reg Ex help?

#2 Post by ELDemorose » Tue Aug 02, 2011 2:52 am


Try ^(B[0-9]+) .*$
Begin with B, then one or more figure, then a space, then whatever.
Cacti Version - 0.8.7g
Plugin Architecture - 2.8
Poller Type - Spine
Server Info - Linux
Web Server - Apache/2.2.3 (Linux/SUSE)
PHP - 5.2.5
MySQL - 5.0.26
RRDTool - 1.2.12
Plugins Autom8 - Aggregate - Realtime

Posts: 24
Joined: Wed Oct 13, 2010 3:22 am

Re: AutoM8 0.35 Reg Ex help?

#3 Post by annapatil » Wed Feb 15, 2017 1:22 am

Hi There,

I am using cacti 1.0.1, having issue with regular expression matching for data query output field 'ifDescr'

ifDescr showing as below,
Found item [ifDescr='V1'] index: 1 [from value]
Found item [ifDescr='V2'] index: 2 [from value]
Found item [ifDescr='V3'] index: 3 [from value]
Found item [ifDescr='V4'] index: 4 [from value]

Graph Creation Criteria

Operation - blank

Field Name - ifDescr

Matching Pattern - ^(V[1-4])
Graph-criteria.JPG (40.52 KiB) Viewed 499 times
Autom Graph.JPG
Autom Graph.JPG (98.25 KiB) Viewed 499 times

Post Reply