New plugin, network autodiscovery based on CDP capabilities

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

Post Reply
Author
Message
Rno
Cacti User
Posts: 346
Joined: Wed Dec 07, 2011 9:19 am

New plugin, network autodiscovery based on CDP capabilities

#1 Post by Rno » Wed Feb 08, 2017 6:38 am

I had a need to discover my network, but only follow uplink from/to switch/router, not every IP address!
Looking with discovery or dpdiscover even if they are based on cdp they take every device on the network.

So I wrote a plugin that start from one device registered in cacti, pool his cdp table, get name, ip and capabilities of the remote device, and if it's a switch or a router, graph the link, add it to thold (if present) and pool this new device.

Lightly based on the original Discovery and Dpdiscovery plug-in, this plug-in scan an existing device (seed host) to find where it has an uplink to other switch/router.
When it finds a new device, if it’s not existent, it’s added to Cacti and monitored (if requested by user and present), the link is ‘graphed’ (status and traffic based on user template), tholded (if present and a template exist)
The options are the following
- When discovered, create a graph for the CPU.
- Create a Status graph for the new uplink on both sides, and what graphic type.
- Create a Traffic graph for the new uplink on both sides, and what graphic type.
- Create threshold for it, for the Status, if this plug-in is available, and which template.
- Create threshold for it, for the Traffic, if this plug-in is available, and which template.
- Monitor the new device, if plug-in is present
- Specified the Tree where to add the device, for an easy finding later.
- Define the deepness of the CDP discovery.
- Domain name in case it’s missing
- Device is recognizes by the capabilities (it has to by ‘Switch’ or ‘Router’).
- Device description is the short part of the CDP device ID, or fqdn or IP
- Hostname is the Device name, or IP from CDP (has to be joinable)
- Poller time of action

But I can't add it on the web site, this link disen't work http://docs.cacti.net/userplugin
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.45, Map 0.37

Test
Cacti 1.2.6
Spine 1.2.6
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.6
Map 1.2.6

Post Reply