ifSpeed and ifHighSpeed

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
sh0x
Posts: 32
Joined: Thu Aug 30, 2007 6:12 pm
Location: California

ifSpeed and ifHighSpeed

Post by sh0x »

Hi Howie, I'm using boost w/poller_output support and would like to convert my links to use ifHighSpeed in place of setting BANDWIDTH statements. It was mentioned in the weathermap doc that ifHighSpeed will be used automatically for links over 4G, but I can't figure out how to get this to work.

From the doc:
As a final feature, if you add 'SET cacti_use_ifspeed 1' to either the link or node, or any item it inherits settings from (e.g. DEFAULT) then Weathermap will take the value of ifSpeed (or ifHighSpeed for 4G+ links) and use it in place of the value defined in the map config file - this allows you to do some basic dynamic configuration of Weathermap based on Cacti, which in turn should pick up changes from the network device.
I added to interfaces.xml ifHighSpeed and refreshed the SNMP cache for some interfaces so ifHighSpeed is populated, but link usage doesn't calculate correctly.

interfaces.xml
<ifHighSpeed>
<name>HCSpeed</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.15</oid>
</ifHighSpeed>

In my map I've enabled poller_output support and use_ifspeed.
SET rrd_use_poller_output 1
SET cacti_use_ifspeed 1

In weathermap I can print ifHighSpeed with {link:this:cacti_ifHighSpeed} but I'm not sure if weathermap uses this when setting cacti_use_ifspeed 1.

Thanks again for the awesome plugin.

sh0x
sh0x
Posts: 32
Joined: Thu Aug 30, 2007 6:12 pm
Location: California

Re: weathermap poller_output data incorrect?

Post by sh0x »

It seems like the weathermap results are incorrect when using poller_output and my data query which collects ifHCInOctets, ifHCOutOctets, and ifHighSpeed. The graphs and data on the graphs are ok. When using with weathermap and poller_output enabled, weathermap retrieves incorrect results from poller_output. But when I disable poller_output the results are ok (but then I can't use hint variables). Below are two debugs for two maps using the same rrd target, but the returned data is different.

This is with poller_output on. The data returned is wrong, resulting in links over 100% utilization on the map when they're only .01% utilized.

Code: Select all

DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:88] [Map 27] Test2: RRD ReadData: poller_output - DS name is traffic_in 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:131] [Map 27] Test2: RRD ReadData: poller_output - found weathermap_data row 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:137] [Map 27] Test2: RRD ReadData: poller_output - data looks valid 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:85] [Map 27] Test2: RRD ReadData: poller_output - looking for 1 value 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:88] [Map 27] Test2: RRD ReadData: poller_output - DS name is traffic_out 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:131] [Map 27] Test2: RRD ReadData: poller_output - found weathermap_data row 
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:137] [Map 27] Test2: RRD ReadData: poller_output - data looks valid
DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:178] [Map 27] Test2: RRD ReadData: poller_output - result is 161395825,33731176663
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:616] [Map 27] Test2: RRD ReadData: Returning (1291166600,269849413304,1290018841)
This is with poller_output disabled. The same data source query at the same time, but this data is right and Weathermap calculates the correct % utilization.

Code: Select all

DEBUG: [ReadData@WeatherMapDataSource_rrd.php:574] [Map 28] Test2a: RRD ReadData: Target DS names are traffic_in and traffic_out 
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:322] [Map 28] Test2a: RRD ReadData: traditional style 
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:391] [Map 28] Test2a: RRD ReadData: Headings are: traffic_out traffic_in speed 
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:455] [Map 28] Test2a: RRD ReadDataFromRealRRD: Returning (3.3122222222e+02,1.1172816056e+05,1290018300) 
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:616] [Map 28] Test2a: RRD ReadData: Returning (2649.77777776,893825.28448,1290018300)
Any ideas why this data query generates incorrect results within weathermap when using poller_output?

sh0x
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests