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 | | | INFOURL graph_page.html |
30 | | | OVERLIBGRAPH graph_image.png |
31 | | | OVERLIBWIDTH 395 |
32 | | | OVERLIBHEIGHT 153 |
33 | | | WIDTH 4 |
34 | | | |
35 | | | NODE DEFAULT |
36 | | | LABELFONT 101 |
37 | | | INFOURL graph_page.html |
38 | | | |
39 | | | NODE transit |
40 | | | POSITION 400 180 |
41 | | | LABEL TRANSIT |
42 | | | |
43 | | | # a little splash of background colour for these nodes |
44 | | | NODE isp1 |
45 | | | POSITION 250 100 |
46 | | | LABEL ISP1 |
47 | | | INFOURL http://www.isp1.com/support/lookingglass.html |
48 | | | INFOURL graph_page.html |
49 | | | LABELBGCOLOR 255 224 224 |
50 | | | |
51 | | | NODE isp2 |
52 | | | POSITION 550 100 |
53 | | | LABEL ISP2 |
54 | | | INFOURL http://www.isp2.net/portal/ |
55 | | | INFOURL graph_page.html |
56 | | | LABELBGCOLOR 224 255 224 |
57 | | | |
58 | | | NODE core |
59 | | | POSITION 400 300 |
60 | | | LABEL core |
61 | | | INFOURL https://core.mynet.net/admin/ |
62 | | | INFOURL graph_page.html |
63 | | | |
64 | | | NODE customer1 |
65 | | | LABEL xy.com |
66 | | | POSITION 150 370 |
67 | | | |
68 | | | NODE customer2 |
69 | | | LABEL ww.co.uk |
70 | | | POSITION 250 450 |
71 | | | |
72 | | | NODE infra |
73 | | | LABEL INFRASTRUCTURE |
74 | | | POSITION 450 450 |
75 | | | |
76 | | | # this node has an icon, and so we push the label to the South edge of it, so it |
77 | | | # can still be read |
78 | | | NODE sync |
79 | | | LABEL Sync |
80 | | | ICON my_router.png |
81 | | | LABELOFFSET S |
82 | | | LABELFONT 2 |
83 | | | POSITION 550 370 |
84 | | | # the icon is taken from a Nagios icon pack: |
85 | | | # http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=110&tx_netnagext_pi1[page]=10%3A10 |
86 | | | |
87 | | | NODE site1 |
88 | | | LABEL site1 |
89 | | | POSITION 700 220 |
90 | | | |
91 | | | NODE site2 |
92 | | | LABEL site2 |
93 | | | POSITION 750 420 |
94 | | | |
95 | | | LINK sync-core |
96 | | | NODES sync core |
97 | | | TARGET data/sync_traffic_in_259.rrd |
98 | | | _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 |
99 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=256 |
100 | | | INFOURL graph_page.html |
101 | | | # |
102 | | | # Site1 has two E1s, so we use NODE-offsets to allow them to run parallel |
103 | | | # |
104 | | | |
105 | | | LINK sync-site1a |
106 | | | NODES sync:N site1:W |
107 | | | WIDTH 3 |
108 | | | TARGET data/sync_traffic_in_257.rrd |
109 | | | BANDWIDTH 2M |
110 | | | _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=254&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
111 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=126 |
112 | | | INFOURL graph_page.html |
113 | | | |
114 | | | LINK sync-site1b |
115 | | | NODES sync:E site1:SE |
116 | | | WIDTH 3 |
117 | | | _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=255&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
118 | | | TARGET data/sync_traffic_in_258.rrd |
119 | | | BANDWIDTH 2M |
120 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=56 |
121 | | | INFOURL graph_page.html |
122 | | | |
123 | | | # |
124 | | | # site2 also has two links, but this time we use the VIA to curve the links |
125 | | | # |
126 | | | LINK sync-site2a |
127 | | | NODES sync site2 |
128 | | | WIDTH 3 |
129 | | | VIA 650 380 |
130 | | | TARGET data/sync_traffic_in_251.rrd |
131 | | | _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 |
132 | | | BANDWIDTH 1M |
133 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=252 |
134 | | | INFOURL graph_page.html |
135 | | | |
136 | | | LINK sync-site2b |
137 | | | NODES sync site2 |
138 | | | WIDTH 3 |
139 | | | VIA 650 420 |
140 | | | TARGET data/sync_traffic_in_252.rrd |
141 | | | _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 |
142 | | | BANDWIDTH 1M |
143 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=561 |
144 | | | INFOURL graph_page.html |
145 | | | |
146 | | | # |
147 | | | # ISP 1 has a several links, again, but they prefer to see one arrow, and the aggregate bandwidth |
148 | | | # so we use multiple TARGETs on one line, here, to sum the data |
149 | | | |
150 | | | LINK transit-isp1 |
151 | | | NODES transit isp1 |
152 | | | TARGET data/trans1_traffic_in_352.rrd data/trans1_traffic_in_378.rrd data/trans1_traffic_in_420.rrd |
153 | | | BANDWIDTH 10M |
154 | | | _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=355&rra_id=0&graph_nolegend=true&graph_height=100&graph_width= |
155 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=633 |
156 | | | INFOURL graph_page.html |
157 | | | |
158 | | | LINK transit-isp2 |
159 | | | NODES transit isp2 |
160 | | | TARGET data/trans1_traffic_in_438.rrd |
161 | | | BANDWIDTH 34M |
162 | | | _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 |
163 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=265 |
164 | | | INFOURL graph_page.html |
165 | | | |
166 | | | LINK core-transit |
167 | | | NODES transit core |
168 | | | TARGET data/trans1_traffic_in_350.rrd |
169 | | | ARROWSTYLE compact |
170 | | | WIDTH 4 |
171 | | | _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 |
172 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=122 |
173 | | | INFOURL graph_page.html |
174 | | | |
175 | | | LINK cust1-core |
176 | | | NODES customer1 core |
177 | | | TARGET data/extreme_traffic_in_299.rrd |
178 | | | _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 |
179 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=237 |
180 | | | INFOURL graph_page.html |
181 | | | |
182 | | | LINK cust2-core |
183 | | | NODES customer2 core |
184 | | | TARGET data/extreme_traffic_in_286.rrd |
185 | | | _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 |
186 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=222 |
187 | | | INFOURL graph_page.html |
188 | | | |
189 | | | LINK infra-core |
190 | | | NODES infra core |
191 | | | TARGET data/extreme_traffic_in_294.rrd |
192 | | | _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 |
193 | | | INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=228 |
194 | | | INFOURL graph_page.html |