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.
Help understanding automation rules
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Help understanding automation rules
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.
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?
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?
Re: Help understanding automation rules
First thing I did was set up my sites
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.
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).
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.
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.
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).
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.
Re: Help understanding automation rules
Anyone have any advice on how and if I can get this to work the way I am wanting?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Help understanding automation rules
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 (34.06 KiB) Viewed 1116 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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests