Label values not showing

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Label values not showing

Post by robogoat »

Cacti 0.8.7e
Plugin Architecture 2.5
Weathermap Plugin 0.96a


I am trying to show the sensor temperature (among other values) as an icon label using the below configuration. I am able to get the correct values if I use an snmp target but not gauge or scale. The graphs work correctly, I just can't pull that value into the label.


SCALE temp 0 0 192 192 192
SCALE temp 0 70 181 234 170
SCALE temp 71 80 240 240 0
SCALE temp 81 90 255 192 0
SCALE temp 91 100 255 0 0

NODE TEMPPROBE
LABEL Temp:{node:this:bandwidth_in:%d}F
ZORDER 800
LABELFONT 1
ICON 50 18 rbox
USESCALE temp

NODE ArgonTemp
TEMPLATE TEMPPROBE
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=775
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=775
TARGET gauge:/usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp:-
POSITION Argon 0 75

According to the logs the poller is fetching the correct value but Weathermap does not see the DS as being valid.

10/27/2009 09:55:08 AM - WEATHERMAP: Poller[0] WARNING: [Map 9] destro: ReadData: NODE ArgonTemp, target: gauge:/usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp:- on config line 137 had no valid data, according to WeatherMapDataSource_rrd
10/27/2009 09:55:08 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:737] [Map 9] destro: ReadData: New Target: gauge:/usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp:-
10/27/2009 09:55:08 AM - WEATHERMAP: Poller[0] DEBUG: [ReadConfig@Weathermap.class.php:1915] [Map 9] destro: TARGET: gauge:/usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp:-
10/27/2009 09:55:08 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /usr/share/cacti/site/rra/52/781.rrd (781) (/52/781.rrd)
10/27/2009 09:55:06 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/52/781.rrd --template APC_SensorPod1_Temp 1256651706:78
10/27/2009 09:55:06 AM - WEATHERMAP: Poller[0] WM poller_output: Got one! /usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp -> 1256651706 78
10/27/2009 09:55:06 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /usr/share/cacti/site/rra/52/781.rrd (781) (/52/781.rrd)
10/27/2009 09:55:05 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /usr/share/cacti/site/rra/52/781.rrd (781) (/52/781.rrd)
10/27/2009 09:55:04 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /usr/share/cacti/site/rra/52/781.rrd (781) (/52/781.rrd)
10/27/2009 09:55:02 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /usr/share/cacti/site/rra/52/781.rrd (781) (/52/781.rrd)



So i ran an rrdtool info against the rrd file and the DS appears to be correct.

www-data@graphing:/usr/share/cacti/site/plugins/weathermap/configs$ rrdtool info /usr/share/cacti/site/rra/52/781.rrd | grep ds
ds[APC_SensorPod1_Temp].type = "GAUGE"
ds[APC_SensorPod1_Temp].minimal_heartbeat = 600
ds[APC_SensorPod1_Temp].min = 0.0000000000e+00
ds[APC_SensorPod1_Temp].max = NaN
ds[APC_SensorPod1_Temp].last_ds = "78"
ds[APC_SensorPod1_Temp].value = 4.6800000000e+02
ds[APC_SensorPod1_Temp].unknown_sec = 0


What am I missing?

Thanks in advance...



[/img]
Attachments
Screen shot 2009-10-27 at 9.23.55 AM.png
Screen shot 2009-10-27 at 9.23.55 AM.png (4.37 KiB) Viewed 2427 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Try

Code: Select all

TARGET gauge:/usr/share/cacti/site/rra/52/781.rrd:APC_SensorPod1_Temp:APC_SensorPod1_Temp
instead for the moment... this is fixed in 0.97. I don't know exactly when it became broken.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Post by robogoat »

Thanks Howie for such a quick response. That worked. Now i just need to fix my scale for icon color and I'll be set.

I looked all over the forums and the manuals first and tried to heed your RTFM request.

Thanks Again, Jim
Attachments
Screen shot 2009-10-27 at 11.13.59 AM.png
Screen shot 2009-10-27 at 11.13.59 AM.png (4.39 KiB) Viewed 2399 times
Last edited by robogoat on Mon Nov 02, 2009 5:20 pm, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

robogoat wrote:Thanks Howie for such a quick response. That worked. Now i just need to fix my scale for icon color and I'll be set.

I looked all over the forums and the manuals first and tried to head your RTFM request.

Thanks Again, Jim
You were doing the right thing in this case - it's the code that's broken. Sorry about that.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Post by robogoat »

No need to apologize. You have created a great product. I am almost done with a 200+ node map and hope to make a post in the "show off your map thread" soon.

Thanks again, Jim
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests