1 | 1 | simandl | # |
2 | | | # some initial comments... |
3 | | | # |
4 | | | # This sample configuration file demonstrates most of the basic features of |
5 | | | # PHP Weathermap, along with some of the cosmetic and layout changes possible |
6 | | | # |
7 | | | # NOTE: to use this file as it stands, you need to keep it together with |
8 | | | # the relevant font, background and icon image files. |
9 | | | |
10 | | | |
11 | | | BACKGROUND background.png |
12 | | | HTMLOUTPUTFILE example.html |
13 | | | IMAGEOUTPUTFILE example.png |
14 | | | TITLE Network Overview |
15 | | | HTMLSTYLE overlib |
16 | | | KEYPOS 10 400 |
17 | | | |
18 | | | # define some new TrueType fonts - built-in ones go from 1 to 5, so start high |
19 | | | FONTDEFINE 100 VeraIt 8 |
20 | | | FONTDEFINE 101 Vera 12 |
21 | | | FONTDEFINE 102 Vera 9 |
22 | | | |
23 | | | KEYFONT 102 |
24 | | | |
25 | | | LINK DEFAULT |
26 | | | BANDWIDTH 100M |
27 | | | BWLABEL bits |
28 | | | BWFONT 100 |
29 | | | OVERLIBWIDTH 395 |
30 | | | OVERLIBHEIGHT 153 |
31 | | | WIDTH 4 |
32 | | | |
33 | | | NODE DEFAULT |
34 | | | LABELFONT 101 |
35 | | | |
36 | | | NODE transit |
37 | | | POSITION 400 180 |
38 | | | LABEL TRANSIT |
39 | | | |
40 | | | # a little splash of background colour for these nodes |
41 | | | NODE isp1 |
42 | | | POSITION 250 100 |
43 | | | LABEL ISP1 |
44 | | | INFOURL http://www.isp1.com/support/lookingglass.html |
45 | | | LABELBGCOLOR 255 224 224 |
46 | | | |
47 | | | NODE isp2 |
48 | | | POSITION 550 100 |
49 | | | LABEL ISP2 |
50 | | | INFOURL http://www.isp2.net/portal/ |
51 | | | LABELBGCOLOR 224 255 224 |
52 | | | |
53 | | | NODE core |
54 | | | POSITION 400 300 |
55 | | | LABEL core |
56 | | | INFOURL https://core.mynet.net/admin/ |
57 | | | |
58 | | | NODE customer1 |
59 | | | LABEL xy.com |
60 | | | POSITION 150 370 |
61 | | | |
62 | | | NODE customer2 |
63 | | | LABEL ww.co.uk |
64 | | | POSITION 250 450 |
65 | | | |
66 | | | NODE infra |
67 | | | LABEL INFRASTRUCTURE |
68 | | | POSITION 450 450 |
69 | | | |
70 | | | # this node has an icon, and so we push the label to the South edge of it, so it |
71 | | | # can still be read |
72 | | | NODE sync |
73 | | | LABEL Sync |
74 | | | ICON my_router.png |
75 | | | LABELOFFSET S |
76 | | | LABELFONT 2 |
77 | | | POSITION 550 370 |
78 | | | # the icon is taken from a Nagios icon pack: |
79 | | | # http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=110&tx_netnagext_pi1[page]=10%3A10 |
80 | | | |
81 | | | NODE site1 |
82 | | | LABEL site1 |
83 | | | POSITION 700 220 |
84 | | | |
85 | | | NODE site2 |
86 | | | LABEL site2 |
87 | | | POSITION 750 420 |
88 | | | |
89 | | | LINK sync-core |
90 | | | NODES sync core |
91 | | | TARGET data/sync_traffic_in_259.rrd |
92 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=256&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
93 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=256 |
94 | | | # |
95 | | | # Site1 has two E1s, so we use NODE-offsets to allow them to run parallel |
96 | | | # |
97 | | | |
98 | | | LINK sync-site1a |
99 | | | NODES sync:N site1:W |
100 | | | WIDTH 3 |
101 | | | TARGET data/sync_traffic_in_257.rrd |
102 | | | BANDWIDTH 2M |
103 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=254&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
104 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=126 |
105 | | | |
106 | | | LINK sync-site1b |
107 | | | NODES sync:E site1:SE |
108 | | | WIDTH 3 |
109 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=255&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
110 | | | TARGET data/sync_traffic_in_258.rrd |
111 | | | BANDWIDTH 2M |
112 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=56 |
113 | | | |
114 | | | # |
115 | | | # site2 also has two links, but this time we use the VIA to curve the links |
116 | | | # |
117 | | | LINK sync-site2a |
118 | | | NODES sync site2 |
119 | | | WIDTH 3 |
120 | | | VIA 650 380 |
121 | | | TARGET data/sync_traffic_in_251.rrd |
122 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=248&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
123 | | | BANDWIDTH 1M |
124 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=252 |
125 | | | |
126 | | | LINK sync-site2b |
127 | | | NODES sync site2 |
128 | | | WIDTH 3 |
129 | | | VIA 650 420 |
130 | | | TARGET data/sync_traffic_in_252.rrd |
131 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=228&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
132 | | | BANDWIDTH 1M |
133 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=561 |
134 | | | |
135 | | | # |
136 | | | # ISP 1 has a several links, again, but they prefer to see one arrow, and the aggregate bandwidth |
137 | | | # so we use multiple TARGETs on one line, here, to sum the data |
138 | | | |
139 | | | LINK transit-isp1 |
140 | | | NODES transit isp1 |
141 | | | TARGET data/trans1_traffic_in_352.rrd data/trans1_traffic_in_378.rrd data/trans1_traffic_in_420.rrd |
142 | | | BANDWIDTH 10M |
143 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=355&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
144 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=633 |
145 | | | |
146 | | | LINK transit-isp2 |
147 | | | NODES transit isp2 |
148 | | | TARGET data/trans1_traffic_in_438.rrd |
149 | | | BANDWIDTH 34M |
150 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=433&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
151 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=265 |
152 | | | |
153 | | | LINK core-transit |
154 | | | NODES transit core |
155 | | | TARGET data/trans1_traffic_in_350.rrd |
156 | | | ARROWSTYLE compact |
157 | | | WIDTH 4 |
158 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=347&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
159 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=122 |
160 | | | |
161 | | | LINK cust1-core |
162 | | | NODES customer1 core |
163 | | | TARGET data/extreme_traffic_in_299.rrd |
164 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=296&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
165 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=237 |
166 | | | |
167 | | | LINK cust2-core |
168 | | | NODES customer2 core |
169 | | | TARGET data/extreme_traffic_in_286.rrd |
170 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=283&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
171 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=222 |
172 | | | |
173 | | | LINK infra-core |
174 | | | NODES infra core |
175 | | | TARGET data/extreme_traffic_in_294.rrd |
176 | | | OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=291&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300 |
177 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=228 |