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