Help understanding automation rules

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
bmcwhirt
Posts: 8
Joined: Sun Apr 01, 2012 12:23 am

Help understanding automation rules

Post by bmcwhirt »

Is there specific documentation and or tutorials that will help me understand how to set up automation rules to sort discovered and added devices into sites and or locations based on subnet?

I was reading through a lot of documentation, much of it from when automation was still a plugin and have tried to figure this out to no avail.

Thank you in advance.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Help understanding automation rules

Post by TheWitness »

We are still looking for people to contribute notes on this particular feature. It's basically a chain from:

Networks -> A series of subnets to be scanned for devices. Generally, this would be for either a management vlan, or data center vlan or vlans. Use the snmp options provided to find "snmp" devices that respond and log those devices.

Device Rules -> Match the snmp sysDescr or sysOID via pattern match of the devices found to a Device Template. By default, Cacti will create all Non Data Query Graphs for that Device Template using default "presets".

Graph Rules -> Basically for Data Query based Graphs, create Graphs for Data Queries that contain a pattern match. In the case of the default. It searches for "up" interfaces with and IP Address associated with them.

Tree Rules -> Based upon a pattern match, create Tree branches and drop devices on those Tree's and branches.

SNMP Options -> These are the approved or known good SNMP options for equipment on networks to be scanned. Cacti will use them in the order specified and the first pattern that works, Cacti will use for the discovered devices when it add's them to Cacti.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
bmcwhirt
Posts: 8
Joined: Sun Apr 01, 2012 12:23 am

Re: Help understanding automation rules

Post by bmcwhirt »

First thing I did was set up my sites
Image

Then I set up my network discovery range setting the associated site. I thought this would be enough to sort into sites but it was not.
Image

So I set up a tree rule (this screenshot show this with the tree as test but it was on default till I started experimenting and it is back to default now).
Image

But alas it's not sorting, even after running the automatons on all devices and after clearing all devices and rediscovering. Clearly I am doing something wrong but I'm not sure what. The ones in this screenshot that are sorted were done manually to make sure the sites were actually usable.
Image
bmcwhirt
Posts: 8
Joined: Sun Apr 01, 2012 12:23 am

Re: Help understanding automation rules

Post by bmcwhirt »

Anyone have any advice on how and if I can get this to work the way I am wanting?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Help understanding automation rules

Post by TheWitness »

Well, what do you Automation Device Templates look like? That's where the SNMP information is mapped to a Device Template. You can not create graph rules or anything like that until you identify the Device Template for a specific device detected.
Attachments
AutomationDeviceTemplates.png
AutomationDeviceTemplates.png (34.06 KiB) Viewed 1115 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest