Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Weathermap auto creating map script

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
danathane
Cacti User


Joined: 03 May 2007
Posts: 127

PostPosted: Thu Jun 14, 2007 4:09 am    Post subject: Weathermap auto creating map script Reply with quote

Hello everybody!!!

I have a little request for you : do you know if some one has already written a script to create map from the database?

Thanks a lot for answering
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Jun 14, 2007 8:40 am    Post subject: Re: Weathermap auto creating map script Reply with quote

danathane wrote:
Hello everybody!!!

I have a little request for you : do you know if some one has already written a script to create map from the database?

Thanks a lot for answering


There isn't enough infomration in the database - how do you tell what is connected to what?
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Jun 14, 2007 10:27 am    Post subject: Re: Weathermap auto creating map script Reply with quote

Howie wrote:
danathane wrote:
Hello everybody!!!

I have a little request for you : do you know if some one has already written a script to create map from the database?

Thanks a lot for answering


There isn't enough infomration in the database - how do you tell what is connected to what?


Obviously, you'd need to write a PFM module.
Back to top
danathane
Cacti User


Joined: 03 May 2007
Posts: 127

PostPosted: Fri Jun 15, 2007 2:00 am    Post subject: Reply with quote

It is true that there is not enought information ine the database. But in my case i have what i need to do this script :d
My switches and routers are configured with the name of the device which comes next to him and before him.
so i can do that.
But you may fionc lot of information in the database. Bu is not not easy to find them.

If somebody needs, i can share what i know on the databse and the tatble.

See you
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Fri Jun 15, 2007 4:01 am    Post subject: Reply with quote

So you have a list of devices (-> NODES). Each device has multiple interfaces, each in a different subnet (assume it's all layer 3 for now). The IP and netmask would tell you if an interface on device A is in the same subnet as an interface on device B. The subnet masks are not stored in the Cacti database as far as I know, unless you use a modified data query to capture that info.

The address info is stored against data sourcse, so if you can figure out which datasources are actually opposite ends of the same link, you have a way to map those interconnections to cacti datasources (for the RRD files). The OVERLIB and INFOURL can be figured out from the RRD filename (I already have a script for that part).

Finally, you need something to make some attempt at laying out the map. That could just put all the nodes in a grid and leave you to fix it in the editor, but better would be either: store pre-arranged coordinates along with the device information, or an automatic layout algorithm. I have done some work on automatic layout a while ago - it needs a lot more work.

So in fact, adding the netmask to interface.xml might allow enough info to do the job for all devices.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group