Cactiusers.org


It is currently Mon May 21, 2012 5:38 pm




Post new topic Reply to topic  [ 2 posts ] 
 CDP Network Discovery for Weathermap 
Author Message
New User

Joined: Fri Jun 08, 2007 1:27 am
Posts: 1
Post CDP Network Discovery for Weathermap
Hello,

I mostly use cacti for network trafic graphing.
We have more than a hundred network equipments and topology is frequently modified.
Manually updating network weathermap is *very* boring.

Cisco equipments use a protocol to discover each other : Cisco Discovery Protocol.
Each equipment keeps a table of its neighbors and you can request this table through SNMP.
A rapid scan of these MIBs allows you then to discover network topology.

My idea is to code a plugin that would perform several actions :
-scan CDP MIB to discover network topology from a seed device.
-create discovered devices in cacti.
-create data sources and graphs for trunk interfaces (links between network equipments).
-export topology to Howie's great Weathermap
(http://www.network-weathermap.com/).

Now for the implementation :
-CDP discovery is easy, even with PHP. I found a class for this (not tested yet)
http://www.potato-people.com/code/docs/ ... s.php.html
-Export to weathermap is easy (text file configuration), the only problem is to provide equipments coordinates but I think Howie is working on automatic layout based on graphviz (neato) .
-The hard point I cannot solve is automatic creation of devices and graphs.
I took a look at cacti API and did not see any function for this.

Any idea ?
Does someone already work on this ?

Some other appz already do network discovery (Nedi, netdisco) but not real time graphing.
I really think this feature would be very useful for many people !
Thanks to you all.


Fri Jun 08, 2007 2:01 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Thanks for the link to the class, I will see about implementing it in the Discovery plugin, shouldn't be too hard.

---------------
-scan CDP MIB to discover network topology from a seed device.
Should be really easy to implement.

-create discovered devices in cacti.
Discovery already does this for you, so I just have to make it add the CDP found devices

-create data sources and graphs for trunk interfaces (links between network equipments).
Discovery can already create graphs for you, just setup a host template with everything you want, and then setup the discovery template to apply it.

-export topology to Howie's great Weathermap
I will leave that to Howie


Mon Jun 11, 2007 11:26 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: