Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Support questions about the Network Weather Map plugin
Moderators: Developers , Moderators
chummers
Posts: 23 Joined: Wed Jul 02, 2008 6:44 am
Post
by chummers » Tue Mar 03, 2009 10:45 am
Hi Folks,
I have got my graphs working perfectly now, and ready for the next challenge....
I would like to create a weathermap of the temperature sensors of our datacentre but have run into some trouble...
I would like a simlar setup to Howie's screen shot on the 'show off your weathermaps'
I have got a node, that displays some reading, but the data is reading in percent - how do i read raw data from my RRD files??
This is what i have so far
Code: Select all
# Automatically generated by php-weathermap v0.95b
FONTDEFINE 100 docs/example/Vera.ttf 10
WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib
KEYFONT 100
TITLEFONT 5
TITLE Air Conditioning Temperatures
TIMEPOS 8 558 Created: %b %d %Y %H:%M:%S
TITLEPOS 150 30
KEYPOS DEFAULT 7 434 AC Temperatures
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 180 180 180
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 1 10 140 0 255 Degrees
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0
SET key_hidepercent_DEFAULT 1
# End of global section
# DEFAULT definitions:
NODE DEFAULT
MAXVALUE 100
LINK DEFAULT
BANDWIDTH 100M
# End of DEFAULTS section
# Node definitions:
NODE CCC_AC1_Intake
LABEL AC1 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_26.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_26.rrd:snmp_oid:snmp_oid
POSITION 150 101
NODE CCC_AC1_Outflow
LABEL AC1 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_27.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_27.rrd:snmp_oid:snmp_oid
POSITION 150 282
NODE CCC_AC2_Intake
LABEL AC2 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_28.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_28.rrd:snmp_oid:snmp_oid
POSITION 300 101
NODE CCC_AC2_Outflow
LABEL AC2 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_29.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_29.rrd:snmp_oid:snmp_oid
POSITION 300 282
NODE CCC_AC3_Intake
LABEL AC3 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_30.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_30.rrd:snmp_oid:snmp_oid
POSITION 450 101
NODE CCC_AC3_Outflow
LABEL AC3 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_31.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_31.rrd:snmp_oid:snmp_oid
POSITION 450 282
NODE CCC_AC4_Intake
LABEL AC4 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_32.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_32.rrd:snmp_oid:snmp_oid
POSITION 600 101
NODE CCC_AC4_Outflow
LABEL AC4 {node:this:bandwidth_in}
OVERLIBGRAPH History For {node:this:name} /var/www/html/rra/ccc-b5_snmp_oid_33.rrd
TARGET /var/www/html/rra/ccc-b5_snmp_oid_33.rrd:snmp_oid:snmp_oid
POSITION 600 282
# End of NODE section
# Link definitions:
# End of LINK section
# That's All Folks!
and in my log file I have lots of this :
Code: Select all
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC4_Outflow 177.68% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC4_Intake 144% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC3_Outflow 153.546666664% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC3_Intake 124.88% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC2_Outflow 176% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC1_Outflow 159.92% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: NewColourFromPercent: Clipped CCC_AC1_Intake 153.546666664% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC4_Outflow 177.68% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC4_Outflow 177.68% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC4_Intake 144% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC4_Intake 144% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC3_Outflow 153.546666664% to 100%
03/03/2009 03:40:04 PM - WEATHERMAP: Poller[0] [Map 4] pdc.conf: ColourFromPercent: Clipped CCC_AC3_Outflow 153.546666664% to 100%
Can anyone help or give me any pointers please?
Thanks is advance...
Howie
Cacti Guru User
Posts: 5508 Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:
Post
by Howie » Tue Mar 03, 2009 11:29 am
Set the MAXVALUE for NODE DEFAULT to something larger than you ever expect to see (e.g. 300). This will stop the clipping to 100%.
Here's what I use for my temperature map:
Code: Select all
NODE DEFAULT
LABEL {node:this:bandwidth_in:%0.2f}
LABELFONT 2
OVERLIBCAPTION History for {node:this:name}
OVERLIBGRAPH http://xyz.com/temp/graphs/temp_{node:this:name}_1d.png
TARGET gauge:/var/www/docs/temp/rra/temp_{node:this:name}.rrd:temp:temp
INFOURL /temp/graphs/temp_{node:this:name}.html
OVERLIBWIDTH 445
OVERLIBHEIGHT 192
MAXVALUE 50
NODE DC_FrontMid
POSITION 418 277
NODE DC_BackDoor
POSITION 83 165
The important parts are the MAXVALUE (I don't expect to see more than 50C in the DC) and the LABEL line which formats the values to 1 decimal place as I want them.
I don't actually use Cacti to collect data from my temperature sensors, so the target and infourl stuff is a bit odd. It's a nice example of using the node name to avoid repeating config later on, though
chummers
Posts: 23 Joined: Wed Jul 02, 2008 6:44 am
Post
by chummers » Wed Mar 04, 2009 7:05 am
Thanks for your reply Howie!
I will give that a go and see how i get on
I hope to be able to post the completed result soon to share with everyone else
Cheers!
Chummers
chummers
Posts: 23 Joined: Wed Jul 02, 2008 6:44 am
Post
by chummers » Mon Mar 09, 2009 9:47 am
here's what i managed...
And here is the code, I hope this helps someone...
Code: Select all
# Automatically generated by php-weathermap v0.95b
FONTDEFINE 100 docs/example/Vera.ttf 10
BACKGROUND images/KMC DC Floor Plan5.PNG
WIDTH 969
HEIGHT 557
HTMLSTYLE overlib
KEYFONT 100
TITLEFONT 5
TITLE Kings Meadow Primary Data Centre
TIMEPOS 2 703 Created: %b %d %Y %H:%M:%S
KEYPOS DEFAULT 833 585 AC Temperatures
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 180 180 180
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 1 10.999 0 0 255
SCALE DEFAULT 11 15.999 0 0 255 0 192 255
SCALE DEFAULT 16 20.999 0 192 255 0 255 0
SCALE DEFAULT 21 25.999 0 255 0 255 192 0
SCALE DEFAULT 26 30.999 255 192 0 255 0 0
SCALE DEFAULT 31 100 255 0 0
KEYPOS HUMIDITY 696 585 Humidity
SCALE HUMIDITY 1 25 0 0 255 0 192 255
SCALE HUMIDITY 26 40 0 195 255 0 255 0
SCALE HUMIDITY 41 50 0 255 0 255 255 0
SCALE HUMIDITY 51 60 255 255 0 255 120 0
SCALE HUMIDITY 61 70 255 120 0 255 0 0
SCALE HUMIDITY 71 100 255 0 0
SET key_hidepercent_DEFAULT 1
SET key_hidepercent_HUMIDITY 0
# End of global section
# DEFAULT definitions:
NODE DEFAULT
LABELFONT 5
OVERLIBWIDTH 445
OVERLIBHEIGHT 192
LABELFONTCOLOR 255 255 255
OVERLIBCAPTION History for {node:this:name}
TARGET /var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
MAXVALUE 100
LINK DEFAULT
BANDWIDTH 50M
# End of DEFAULTS section
# Node definitions:
NODE kmc-primary_data_centre_snmp_oid_53
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=48&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 811 467
NODE kmc-primary_data_centre_snmp_oid_60
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=55&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 796 323
NODE kmc-primary_data_centre_snmp_oid_54
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=49&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 581 467
NODE kmc-primary_data_centre_snmp_oid_59
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=54&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 624 323
NODE kmc-primary_data_centre_snmp_oid_55
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=50&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 408 467
NODE kmc-primary_data_centre_snmp_oid_58
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=53&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 452 323
NODE kmc-primary_data_centre_snmp_oid_56
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=51&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 236 467
NODE kmc-primary_data_centre_snmp_oid_57
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=52&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 280 323
NODE kmc-primary_data_centre_snmp_oid_61
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=56&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 265 208
NODE kmc-primary_data_centre_snmp_oid_62
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=57&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 380 208
NODE kmc-primary_data_centre_snmp_oid_63
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=58&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 580 208
NODE kmc-primary_data_centre_snmp_oid_64
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=59&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 796 208
NODE kmc-primary_data_centre_snmp_oid_67
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=62&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 221 92
NODE kmc-primary_data_centre_snmp_oid_68
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=63&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 479 92
NODE kmc-primary_data_centre_snmp_oid_65
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=60&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 838 122
NODE kmc-primary_data_centre_snmp_oid_66
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=61&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 924 122
#######
NODE kmc-environment_sensors_snmp_oid_145
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=139&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 206 488
NODE kmc-environment_sensors_snmp_oid_143
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=137&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 839 488
NODE kmc-environment_sensors_snmp_oid_149
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=143&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 835 173
NODE kmc-environment_sensors_snmp_oid_147
LABEL {node:this:bandwidth_in:%0.0f}°
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=141&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
POSITION 209 173
NODE kmc-environment_sensors_snmp_oid_146
LABEL {node:this:bandwidth_in:%0.0f}%
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=140&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
USESCALE HUMIDITY in
POSITION 239 488
NODE kmc-environment_sensors_snmp_oid_144
LABEL {node:this:bandwidth_in:%0.0f}%
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=138&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
USESCALE HUMIDITY in
POSITION 872 488
NODE kmc-environment_sensors_snmp_oid_150
LABEL {node:this:bandwidth_in:%0.0f}%
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=144&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
USESCALE HUMIDITY in
POSITION 868 173
NODE kmc-environment_sensors_snmp_oid_148
LABEL {node:this:bandwidth_in:%0.0f}%
INFOURL http://uilapdev98/graph.php?action=view&local_graph_id=142&rra_id=all
TARGET gauge:/var/www/html/rra/{node:this:name}.rrd:snmp_oid:snmp_oid
USESCALE HUMIDITY in
POSITION 242 173
# End of NODE section
# Link definitions:
# End of LINK section
# That's All Folks!
Users browsing this forum: No registered users and 2 guests