jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [docs/] [example/] [example-fake.conf] - Rev 32 Go to most recent revision

Compare with Previous - Blame - Download


#
# some initial comments...
#
# This sample configuration file demonstrates most of the basic features of 
# PHP Weathermap, along with some of the cosmetic and layout changes possible
#
# NOTE: to use this file as it stands, you need to keep it together with
#       the relevant font, background and icon image files.


BACKGROUND background.png
HTMLOUTPUTFILE example.html
IMAGEOUTPUTFILE example.png
TITLE Network Overview
HTMLSTYLE overlib
KEYPOS 10 400

# define some new TrueType fonts - built-in ones go from 1 to 5, so start high
FONTDEFINE 100 VeraIt 8
FONTDEFINE 101 Vera 12
FONTDEFINE 102 Vera 9

KEYFONT 102

LINK DEFAULT
        BANDWIDTH 100M
        BWLABEL bits
        BWFONT 100
        INFOURL graph_page.html
        OVERLIBGRAPH graph_image.png
        OVERLIBWIDTH 395
        OVERLIBHEIGHT 153
        WIDTH 4
        
NODE DEFAULT
        LABELFONT 101
        INFOURL graph_page.html

NODE transit
        POSITION 400 180
        LABEL TRANSIT

# a little splash of background colour for these nodes
NODE isp1
        POSITION 250 100
        LABEL ISP1
        INFOURL http://www.isp1.com/support/lookingglass.html
        INFOURL graph_page.html 
        LABELBGCOLOR 255 224 224

NODE isp2
        POSITION 550 100
        LABEL ISP2
        INFOURL http://www.isp2.net/portal/
        INFOURL graph_page.html 
        LABELBGCOLOR 224 255 224

NODE core
        POSITION 400 300
        LABEL core
        INFOURL https://core.mynet.net/admin/
        INFOURL graph_page.html 

NODE customer1
        LABEL xy.com
        POSITION 150 370

NODE customer2
        LABEL ww.co.uk
        POSITION 250 450

NODE infra
        LABEL INFRASTRUCTURE
        POSITION 450 450

# this node has an icon, and so we push the label to the South edge of it, so it
# can still be read
NODE sync
        LABEL Sync
        ICON my_router.png
        LABELOFFSET S
        LABELFONT 2
        POSITION 550 370
# the icon is taken from a Nagios icon pack:
#   http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=110&tx_netnagext_pi1[page]=10%3A10

NODE site1
        LABEL site1
        POSITION 700 220
        
NODE site2
        LABEL site2
        POSITION 750 420

LINK sync-core
        NODES sync core
        TARGET data/sync_traffic_in_259.rrd
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=256
        INFOURL graph_page.html
#
# Site1 has two E1s, so we use NODE-offsets to allow them to run parallel
#

LINK sync-site1a
        NODES sync:N site1:W
        WIDTH 3
        TARGET data/sync_traffic_in_257.rrd
        BANDWIDTH 2M
        _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=254&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=126
        INFOURL graph_page.html

LINK sync-site1b
        NODES sync:E site1:SE
        WIDTH 3
        _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=255&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=
        TARGET data/sync_traffic_in_258.rrd
        BANDWIDTH 2M
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=56
        INFOURL graph_page.html

#
# site2 also has two links, but this time we use the VIA to curve the links
#
LINK sync-site2a
        NODES sync site2
        WIDTH 3
        VIA 650 380
        TARGET data/sync_traffic_in_251.rrd
        _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
        BANDWIDTH 1M
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=252
        INFOURL graph_page.html

LINK sync-site2b
        NODES sync site2
        WIDTH 3
        VIA 650 420
        TARGET data/sync_traffic_in_252.rrd
        _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
        BANDWIDTH 1M
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=561
        INFOURL graph_page.html

#
# ISP 1 has a several links, again, but they prefer to see one arrow, and the aggregate bandwidth
#   so we use multiple TARGETs on one line, here, to sum the data 

LINK transit-isp1
        NODES transit isp1
        TARGET data/trans1_traffic_in_352.rrd data/trans1_traffic_in_378.rrd data/trans1_traffic_in_420.rrd
        BANDWIDTH 10M
        _OVERLIBGRAPH http://support.mynet.net/cacti/graph_image.php?local_graph_id=355&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=633
        INFOURL graph_page.html

LINK transit-isp2
        NODES transit isp2
        TARGET data/trans1_traffic_in_438.rrd
        BANDWIDTH 34M
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=265
        INFOURL graph_page.html

LINK core-transit
        NODES transit core
        TARGET data/trans1_traffic_in_350.rrd
        ARROWSTYLE compact
        WIDTH 4
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=122
        INFOURL graph_page.html

LINK cust1-core
        NODES customer1 core
        TARGET data/extreme_traffic_in_299.rrd
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=237
        INFOURL graph_page.html

LINK cust2-core
        NODES customer2 core
        TARGET data/extreme_traffic_in_286.rrd
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=222
        INFOURL graph_page.html

LINK infra-core
        NODES infra core
        TARGET data/extreme_traffic_in_294.rrd
        _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
        INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=228
        INFOURL graph_page.html

Powered by WebSVN 2.2.1