AUTOM8 plugin rule - need help!

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hid3nax
Cacti User
Posts: 68
Joined: Thu Jan 12, 2012 7:48 am

AUTOM8 plugin rule - need help!

Post by hid3nax »

Hello.

I have the excellent AUTOM8 plugin. I'm trying to create a rule to get UP'ed switch ports to be graphed.
I have the following Rule Items:

Code: Select all

Item#1	1	 	ifOperStatus	matches	Up
Item#2	4	AND	ifType	matches	ethernetCsmacd(6)
Item#3	5	OR	ifType	matches	propVirtual(53)
Item#4	6	AND	ifDescr	does not match with	DEFAULT_VLAN
Item#5	7	AND	ifDescr	does not match regular expression	VLAN.+[0-9]?

Most things seems to be Okay. But in the "Show matching graphs" (The graphs which would be created if I enabled the rule) I see the following interfaces being matched:

Code: Select all

192.168.35.238	Up	100000	Up	vlan	1		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100006	Down	vlan	7		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100023	Up	vlan	24		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100032	Up	vlan	33		propVirtual(53)	0	0	00:12:CF:79:56:E0	192.168.35.238
192.168.35.238	Up	100040	Up	vlan	41		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100073	Up	vlan	74		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100098	Up	vlan	99		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100099	Down	vlan	100		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100149	Down	vlan	150		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100150	Down	vlan	151		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100151	Down	vlan	152		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100152	Down	vlan	153		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100153	Down	vlan	154		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100154	Down	vlan	155		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100155	Down	vlan	156		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100156	Down	vlan	157		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100157	Down	vlan	158		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100158	Down	vlan	159		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100182	Up	vlan	183		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100245	Up	vlan	246		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100253	Up	vlan	254		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100256	Up	vlan	257		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100257	Up	vlan	258		propVirtual(53)	0	0	00:12:CF:79:56:E0	
192.168.35.238	Up	100261	Up	vlan	262		propVirtual(53)	0	0	00:12:CF:79:56:E0
Note, that some of those interfaces have ifOperStatus 'Down' AND all their ifDescr is vlan.
What's wrong with my Rule Items? Those interfaces should be excluded by my rule. Any input?

Thanks.
mooneyn
Posts: 33
Joined: Tue Aug 21, 2012 2:19 am

Re: AUTOM8 plugin rule - need help!

Post by mooneyn »

Rule #1 for physical interfaces

Code: Select all

Item#1	1	 	ifOperStatus	matches	Up	
Item#2	3	AND	ifHwAddr	is not empty		
Item#3	4	AND	ifType	contains	ethernet	
Item#4	5	AND	ifHighSpeed	is greater than or equal	10
Item#5	6	AND	ifAlias	does not contain	Phone	
Rule #2 for virtual interlaces

Code: Select all

Item#1	1	 	ifOperStatus	matches	Up
Item#2	3	AND	ifHwAddr	is not empty
Item#3	4	AND	ifType	contains	Prop
Item#4	5	AND	ifHighSpeed	is greater than or equal	1000
Item#5	6	AND	ifIP	is not empty


Substitute the word phone for whatever you need in your environment.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests