![]() ![]() |
weathermap |
Subversion Repositories: |
Compare with Previous - Blame - Download
suite-1.confsuite-2.conf============These are my test map config files that exercise a fair bit of thefunctionality of Weathermap, in a couple of files. The first oneis mostly NODE stuff, and the second is mostly LINK stuff. As such,they make quite useful demo maps, I guess. suite-1.png and suite-2.pngshow what these maps *should* look like. They use quite a few fontsthat I can't supply, but mostly they use Bitstream Vera, which is inthe docs/example directory.map-split.php=============Reads in a map, then writes out 'submaps' of a certain size. Edit thetop of the script to specify the source map, and the required size ofthe new maps, and it will chop up your map for you. It doesn't doanything clever with things like KEYPOS or TITLEPOS, but it will doNODEs OK. It'll delete any links where only one end is in the finalmap, so cross-sheet links will need to be put back in. It also removesthe BACKGROUND image if there is one, since it will (by definition) bethe wrong size for the new maps.auto-overlib.pl===============A small but useful script that takes a weathermap config file withreferences to Cacti RRD targets and automatically adds in all theINFOURL and OVERLIBGRAPH lines it can, where they don't exist.You'll need to edit the script to allow it to log in to your Cactidatabase. Requires the Perl DBI and DBD::mysql modules.Should work with both PHP and perl versions, but not tested with PHPone.cacti-integrate.php===================A script that reads in a weathermap config file, looks for special SETvariables and uses them to populate as much as it can of TARGET, INFOURL,OVERLIBGRAPH, and BANDWIDTH. Requires a correct editor-config.php to accessthe Cacti database.You need SET one of 'cacti_id', 'hostname' or 'address' in each NODE so thatit can find the Cacti Host ID for each node.You need to SET one of 'in_interface' or 'out_interface' to the interface nameso that it can figure out which data sources are relevant. The interface name shouldmatch one of ifAlias, ifName or ifDescr from your router.More info here: http://forums.cacti.net/about26544.htmlcacti-mapper.php================A script that reads interface IPs from Cacti, and then uses Cacti's SNMP datato fetch a netmask for each interface. It then uses all this info to work outwhich interfaces are in the same address range as each other, and produces amap. The map positions are random, but the connections should be right. You needto run the results through cacti-integrate.php, to fill in the TARGET lines.Requires a correct editor-config.php to access the Cacti database.bristle.php============Generates a section of Weathermap config useful for showing traffic for all switchports in a small space. Intended to work with cacti-integrate.phpMore info here: http://forums.cacti.net/post-152500.html#152500