• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D24-Sep-20092.8 KiB7054

auto-overlib.plH A D19-Mar-20083.5 KiB12087

bristle.phpH A D24-Sep-20092 KiB6843

cacti-integrate.phpH A D18-Feb-201014.8 KiB404305

cacti-mapper.phpH A D30-Dec-200810.2 KiB350294

map-split.phpH A D19-Mar-20082.3 KiB8568

suite-1.confH A D19-Mar-20089.1 KiB545449

suite-2.confH A D19-Mar-20083.2 KiB207147

README

1suite-1.conf
2suite-2.conf
3============
4These are my test map config files that exercise a fair bit of the
5functionality of Weathermap, in a couple of files. The first one
6is mostly NODE stuff, and the second is mostly LINK stuff. As such,
7they make quite useful demo maps, I guess. suite-1.png and suite-2.png
8show what these maps *should* look like. They use quite a few fonts
9that I can't supply, but mostly they use Bitstream Vera, which is in
10the docs/example directory.
11
12map-split.php
13=============
14
15Reads in a map, then writes out 'submaps' of a certain size. Edit the
16top of the script to specify the source map, and the required size of
17the new maps, and it will chop up your map for you. It doesn't do
18anything clever with things like KEYPOS or TITLEPOS, but it will do
19NODEs OK. It'll delete any links where only one end is in the final
20map, so cross-sheet links will need to be put back in. It also removes
21the BACKGROUND image if there is one, since it will (by definition) be
22the wrong size for the new maps.
23
24auto-overlib.pl
25===============
26
27A small but useful script that takes a weathermap config file with
28references to Cacti RRD targets and automatically adds in all the
29INFOURL and OVERLIBGRAPH lines it can, where they don't exist.
30
31You'll need to edit the script to allow it to log in to your Cacti
32database. Requires the Perl DBI and DBD::mysql modules.
33
34Should work with both PHP and perl versions, but not tested with PHP
35one.
36
37cacti-integrate.php
38===================
39
40A script that reads in a weathermap config file, looks for special SET
41variables and uses them to populate as much as it can of TARGET, INFOURL,
42OVERLIBGRAPH, and BANDWIDTH. Requires a correct editor-config.php to access
43the Cacti database.
44
45You need SET one of 'cacti_id', 'hostname' or 'address' in each NODE so that
46it can find the Cacti Host ID for each node.
47
48You need to SET one of 'in_interface' or 'out_interface' to the interface name
49so that it can figure out which data sources are relevant. The interface name should
50match one of ifAlias, ifName or ifDescr from your router.
51
52More info here: http://forums.cacti.net/about26544.html
53
54cacti-mapper.php
55================
56
57A script that reads interface IPs from Cacti, and then uses Cacti's SNMP data
58to fetch a netmask for each interface. It then uses all this info to work out
59which interfaces are in the same address range as each other, and produces a
60map. The map positions are random, but the connections should be right. You need
61to run the results through cacti-integrate.php, to fill in the TARGET lines.
62Requires a correct editor-config.php to access the Cacti database.
63
64bristle.php
65============
66
67Generates a section of Weathermap config useful for showing traffic for all switch
68ports in a small space. Intended to work with cacti-integrate.php
69
70More info here: http://forums.cacti.net/post-152500.html#152500