Ah Windows, my old friend. Most likely this is because the way you specify the path doesn't exactly match the way Cacti stores it, so Weathermap can't figure out which DS is related to that rrd file, and so can't use poller_output.
Check in the debug log again, and there's a line from WEATHERMAP that says something like "Your rra_path is ..." make sure your path is specified *exactly* like that.
[SOLVED] Use a specific snmp value in a node label
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
Howie wrote:Ah Windows, my old friend. Most likely this is because the way you specify the path doesn't exactly match the way Cacti stores it, so Weathermap can't figure out which DS is related to that rrd file, and so can't use poller_output.
Check in the debug log again, and there's a line from WEATHERMAP that says something like "Your rra_path is ..." make sure your path is specified *exactly* like that.
I don't have any entries for rra_path in the log. Here is some stuff I do see from .95b:
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:173] [Map 2] 2.txt: RRD ReadData: traditional style
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_rrd.php:360] [Map 2] 2.txt: RRD ReadData: Target DS names are - and traffic_in
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:143] [Map 2] 2.txt: RRD ReadData: poller_output - ended
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:142] [Map 2] 2.txt: RRD ReadData: poller_output - result is ,
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] [Map 2] 2.txt: RRD ReadData: poller_output: traffic_in is not a valid RRD filename within this Cacti install.
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:85] [Map 2] 2.txt: RRD ReadData: poller_output - Adding new weathermap_data row for C:\cacti\rra\dell_powerconnect_6248_traffic_in_139.rrd:traffic_in
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:76] [Map 2] 2.txt: RRD ReadData: poller_output - DS name is traffic_in
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:73] [Map 2] 2.txt: RRD ReadData: poller_output - looking for 1 value
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:128] [Map 2] 2.txt: RRD ReadData: poller_output - DS name is '-'
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:73] [Map 2] 2.txt: RRD ReadData: poller_output - looking for 0 value
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:70] [Map 2] 2.txt: ******************************************************************
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:64] [Map 2] 2.txt: RRD ReadData: poller_output style
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_rrd.php:332] [Map 2] 2.txt: SCALING result by 1
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_rrd.php:312] [Map 2] 2.txt: Special DS names seen (- and traffic_in).
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:637] [Map 2] 2.txt: ReadData: Matched for WeatherMapDataSource_rrd. Calling WeatherMapDataSource_rrd->ReadData()
07/21/2010 11:46:03 AM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:606] [Map 2] 2.txt: ReadData: New Target: gauge:C:/cacti/rra/dell_powerconnect_6248_traffic_in_139.rrd:-:traffic_in
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
0.95b? One of the changelog entries for 0.96 was:
"FIXED - Cacti poller_output support works more reliably/at all on Windows"
so I'd suggest upgrading. I knew I went through this whole poller_output debugging thing with one user a while ago...
you get 2 years worth of bug fixes and improvements for free, too
"FIXED - Cacti poller_output support works more reliably/at all on Windows"
so I'd suggest upgrading. I knew I went through this whole poller_output debugging thing with one user a while ago...
you get 2 years worth of bug fixes and improvements for free, too
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Looking further, 0.96 changelog also has the following new features:
"RRD datasource can take SET rrd_default_path to make configs a little easier to read.
RRD datasource can take SET rrd_default_in_ds and rrd_default_out_ds for non-Cacti users.
RRD datasource can get Cacti query information (in poller_output mode ONLY) - like ifAlias, ifSpeed etc
RRD datasource can take the ifSpeed/ifHighSpeed from the above, and use it in the map.
RRD datasource fills in Cacti cacti_path_rra and cacti_url with Cacti base path and URL
RRD datasource can take global SET rrd_options to add extra options to rrdtool command lines"
which would explain why it's not working for you.
"RRD datasource can take SET rrd_default_path to make configs a little easier to read.
RRD datasource can take SET rrd_default_in_ds and rrd_default_out_ds for non-Cacti users.
RRD datasource can get Cacti query information (in poller_output mode ONLY) - like ifAlias, ifSpeed etc
RRD datasource can take the ifSpeed/ifHighSpeed from the above, and use it in the map.
RRD datasource fills in Cacti cacti_path_rra and cacti_url with Cacti base path and URL
RRD datasource can take global SET rrd_options to add extra options to rrdtool command lines"
which would explain why it's not working for you.
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!)
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!)
WOW! What a difference a few years makes. I like the changes you've made. It's going to take some getting used to all the enhancements.
I am still seeing "UNKNOWN" I even waited for more than 3 polling cycles just to very. Here's the pertinent information in the logs:
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] WARNING: [Map 2] 2.txt: ProcessString: {link:this:cacti_ifSpeed} refers to unknown item (context is node:PowerConnect6248.19_1/g1-Status) [WMWARN05]
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:534] [Map 2] 2.txt: ProcessString: working on {link:this:cacti_ifSpeed}
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:638] [Map 2] 2.txt: ProcessString: replacing {link:this:cacti_ifAlias} with [UNKNOWN]
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] WARNING: [Map 2] 2.txt: ProcessString: {link:this:cacti_ifAlias} refers to unknown item (context is node:PowerConnect6248.19_1/g1-Status) [WMWARN05]
07/22/2010 02:41:21 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:106] [Map 2] 2.txt: Adding note cacti_ifAlias='' to PowerConnect6248.19_1/g1-Status
07/22/2010 02:41:21 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:106] [Map 2] 2.txt: Adding note cacti_ifSpeed='100000000' to PowerConnect6248.19_1/g1-Status
07/22/2010 02:26:03 PM - WEATHERMAP: Poller[0] DEBUG: [add_hint@Weathermap.class.php:126] [Map 2] 2.txt: Adding hint cacti_path_rra='C:/cacti/rra' to MAP
**** CONFIG FILE ****
NODE PowerConnect6248.19_1/g1-Status
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=8
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=8
ICON {node:this:inscaletag}
TARGET gauge:C:/cacti/rra/dell_powerconnect_6248_traffic_in_139.rrd:-:traffic_in
USESCALE ifOperStatusFlipped in
POSITION 100 375
LABEL {link:this:cacti_ifAlias} {link:this:cacti_ifSpeed}
**** END CONFIG FILE ****
I see all the items I think I should be seeing except the fact that I get the "Unknown" in the map Am I missing something?
I am still seeing "UNKNOWN" I even waited for more than 3 polling cycles just to very. Here's the pertinent information in the logs:
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] WARNING: [Map 2] 2.txt: ProcessString: {link:this:cacti_ifSpeed} refers to unknown item (context is node:PowerConnect6248.19_1/g1-Status) [WMWARN05]
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:534] [Map 2] 2.txt: ProcessString: working on {link:this:cacti_ifSpeed}
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:638] [Map 2] 2.txt: ProcessString: replacing {link:this:cacti_ifAlias} with [UNKNOWN]
07/22/2010 02:36:20 PM - WEATHERMAP: Poller[0] WARNING: [Map 2] 2.txt: ProcessString: {link:this:cacti_ifAlias} refers to unknown item (context is node:PowerConnect6248.19_1/g1-Status) [WMWARN05]
07/22/2010 02:41:21 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:106] [Map 2] 2.txt: Adding note cacti_ifAlias='' to PowerConnect6248.19_1/g1-Status
07/22/2010 02:41:21 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:106] [Map 2] 2.txt: Adding note cacti_ifSpeed='100000000' to PowerConnect6248.19_1/g1-Status
07/22/2010 02:26:03 PM - WEATHERMAP: Poller[0] DEBUG: [add_hint@Weathermap.class.php:126] [Map 2] 2.txt: Adding hint cacti_path_rra='C:/cacti/rra' to MAP
**** CONFIG FILE ****
NODE PowerConnect6248.19_1/g1-Status
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=8
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=8
ICON {node:this:inscaletag}
TARGET gauge:C:/cacti/rra/dell_powerconnect_6248_traffic_in_139.rrd:-:traffic_in
USESCALE ifOperStatusFlipped in
POSITION 100 375
LABEL {link:this:cacti_ifAlias} {link:this:cacti_ifSpeed}
**** END CONFIG FILE ****
I see all the items I think I should be seeing except the fact that I get the "Unknown" in the map Am I missing something?
Who is online
Users browsing this forum: No registered users and 7 guests