# This file is an example of what directives may be used in your configuration file. For more details, please visit : # # http://weathermap4rrd.tropicalex.net # December 2005 / Alexandre Fontelle # BACKGROUND directive defines a background PNG file. # (optional) #BACKGROUND france_.png # Size of image generated if no background has been defined. If one background is defined, size of background will be used. HEIGHT 600 WIDTH 740 # FONT from 1 to 5 (define size of font that will be used in graph to display node's names, title...) FONT 4 # Position of legend LEGENDPOS 300 460 # LEGENDSTYLE should be "orignal" or "line" LEGENDSTYLE line # label of TITLE TITLE "Example Tropicalex Network map" # Position of title in graph TITLEPOS 4 470 # Color of background title TITLEBACKGROUND 255 255 128 # Color of font to display title TITLEFOREGROUND 0 0 0 # Allow to define if CHECK directive in NODE section has to be used or not # ******* # WARNING : use of this feature could really slow generation of map because of ping function call (especially when a node is down) # ******* # IPCHECK default value is 0 IPCHECK 0 # Time between two refresh of display in seconds REFRESH 40 # OUTPUTFILE define path and name of PNG picture that will be generated OUTPUTFILE /var/www/htdocs/weathermap4rrd-php-1.2final/weathermap.png # HTMLFILE define path and name of html file that will be generated to store html map of network weathermap HTMLFILE /var/www/htdocs/weathermap4rrd-php-1.2final/weathermap.html # Legend colors and boundaries values # For example first line means that between 1 and 10% of bandwidth use, color used to draw the arrow will be RGB(140,0,255) # low high red green blue SCALE 1 10 140 0 255 SCALE 10 25 32 32 255 SCALE 25 40 0 192 255 SCALE 40 55 0 240 0 SCALE 55 70 240 240 0 SCALE 70 85 255 192 0 SCALE 85 90 255 100 0 SCALE 90 100 255 0 0 # You may use AUTOSCALE directive to create a dynamic colors scale # Example of AUTOSCALE syntax : # AUTOSCALE 15 24 232 2 0 0 0 # AUTOSCALE 11 ################ # NODES SECTION # ################ # Name of node (this name won't be displayed on map) NODE Freebackbone # Position of node in the map POSITION 135 125 # Name that will be displayed on the map in label LABEL Freebackbone # You have ability to choose between several kind of label : "round" or "normal" for square LABELTYPE round NODE Bastille2 POSITION 200 387 # You need to define IP of node if you plan to use CHECK directive (see below) IP 192.168.0.7 # Weathermap4rrd will test if node is down or up with a TCP request on port 80 of node # ******* # WARNING : use of this feature could really slow generation of map (especially when a node is down) # ******* CHECK tcp 80 LABEL Bastille2 LABELTYPE round # LABELTPT defined transparency of node on network weathermap. # Be careful 0 will disable LABELTPT value reading and it will be like LABELTPT 100 LABELTPT 80 # You may associate an icon to your node. To do so, use ICON directive # Icon has to be a PNG file format ICON icons/router_cisco.png # You may want to resize icon...then use ICONRESIZE. Value is in % of original image. In this example icon displayed on map will be 75% of original size ICONRESIZE 75 NODE k7 POSITION 478 387 IP 192.168.0.8 # Weathermap4rrd will test if node is down or up with a "ping" request (use ICMP protocol). # ******* # WARNING : use of this feature could really slow generation of map (especially when a node is down) # ******* CHECK ping LABEL K7 # if no LABELTYPE is defined, default is "normal" (square) # LABELTYPE round ICON icons/terminal.png ICONTPT 50 NODE switch POSITION 405 125 LABEL switch LABELTYPE round NODE workstation1 POSITION 500 250 LABEL workstation1 LABELTYPE round NODE workstation2 POSITION 500 300 LABEL workstation2 LABELTYPE round ################# # LINKS section # ################# # Name of link (won't be displayed on map, just useful for internal use of weathermap4rrd) LINK internet-switch # Put name of nodes A and B that are linked NODES Freebackbone switch # Define file where interfaces trafic values have to be read (could be a MRTG file or RRD file). See http://weathermap4rrd.tropicalex.net for details # You may have a different file for inbound and outbound values. If so, use TARGETIN and TARGETOUT directives. TARGET /home/monitor/monitoring/rrd/bastille2.eth1.rrd # LINKOVERLIBGRAPH allow you to display a popup window when mouse cursor is over a link. Content of this window will be result of call to script defined as value of LINKOVERLIBGRAPH directive. If LINKOVERLIBGRAPH is used without parameter (as in this example), script graph.php will be used. LINKOVERLIBGRAPH # LINKINFOURL defined URL link that will be used if you click on link. Default is globalgraph (that in fact called linkgraph.php) # You may put what you like LINKINFOURL globalgraph # Define position of RRA in RRD file for inbound bandwidth values for node A (here Freebackbone) INPOS 1 # Define position of RRA in RRD file for outbound bandwidth values for node A (here Freebackbone) OUTPOS 2 # UNIT defines unit of values stored in TARGET file UNIT bytes # Define bandwidth of link in Kilobits BANDWIDTH 316 # DISPLAYVALUE allow you to display value of bandwith just below the % bandwidth DISPLAYVALUE 1 # Type of ARROW to display. You may choose between : "normal", "round" or "halfarrow" ARROW halfarrow # You may create group of link in order to filter display GROUP dsl #INTERNODEDISPLAY 100 # Define if middle internode will be displayed when number of internodes is odd INTERNODEDISPLAYMID no INTERNODEDISPLAYNUM no LINK internet-Bastille2 NODES Freebackbone Bastille2 TARGET /home/monitor/monitoring/rrd/bastille2.eth1.rrd # LINKOVERLIBGRAPH http://www.google.fr/intl/fr_fr/images/logo.gif LINKOVERLIBGRAPH LINKINFOURL globalgraph INPOS 1 OUTPOS 2 UNIT bytes BANDWIDTH 316 DISPLAYVALUE 1 ARROW normal # Define points that have to be used to draw link between nodes A & B INTERNODE 135 250 # Define transparency of round that will be display on internode position INTERNODEDISPLAY 75 # When there is a odd number of internodes defined. You may choose if you want to display a round as for an internode in middle of link. INTERNODEDISPLAYMID no # You may want to display a number in round (for debug) INTERNODEDISPLAYNUM no LINK k7-Bastille2 NODES Bastille2 k7 TARGETOUT /home/monitor/monitoring/rrd/bastille2.eri0.rrd TARGETIN /home/monitor/monitoring/rrd/bastille2.eri0.rrd LINKOVERLIBGRAPH currentvalues.php LINKINFOURL globalgraph INPOS 1 OUTPOS 2 UNIT bytes BANDWIDTH 316 DISPLAYVALUE 1 ARROW normal LINK switch-workstation1 NODES switch workstation1 TARGET /home/monitor/monitoring/rrd/bastille2.eri0.rrd INPOS 1 OUTPOS 2 UNIT bytes BANDWIDTH 31 DISPLAYVALUE 0 ARROW circle INTERNODE 500 125 LINK switch-workstation2 NODES switch workstation2 TARGET /home/monitor/monitoring/rrd/bastille2.eri0.rrd INPOS 1 OUTPOS 2 UNIT bytes BANDWIDTH 13 DISPLAYVALUE 0 ARROW circle INTERNODE 405 300 INTERNODEDISPLAY 75