Missing snmp values through TARGET option - weathermap 0.97a

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
bartc
Posts: 17
Joined: Wed Aug 20, 2014 11:06 am

Missing snmp values through TARGET option - weathermap 0.97a

Post by bartc »

Dear cacti/weathermap users,

I would really appreciate some help in this matter.

I am having following problem. It looks like it impacts only particular values, in this case Traffic Manager Microkernel (TMM) utilization on my F5 load balancers map. Other values such as memory , temperature , connections are being fetched and shown (see attachment)

As result I am not seeing values that are fetched through snmp for TMM0 and TMM1 at all, weathermap always reports 0% although graphs are being populated with correct values using the same data sources.

Please help me understand debug from that particular node below.

SNMP query :

Code: Select all

snmpget -v 3 -u cacti -x AES -X test -a SHA -A test -l authPriv localhost .1.3.6.1.4.1.3375.2.1.8.2.3.1.38.3.48.46.48 -On
.1.3.6.1.4.1.3375.2.1.8.2.3.1.38.3.48.46.48 = Counter64: 1
snmpget -v 3 -u cacti -x AES -X test -a SHA -A test -l authPriv localhost .1.3.6.1.4.1.3375.2.1.8.2.3.1.38.3.48.46.48
F5-BIGIP-SYSTEM-MIB::sysTmmStatTmUsageRatio1m."0.0" = Counter64: 1
My config for TMM0 looks as follows (TMM1, MEM, Temperature and sessions are exactly the same with different rrd files and ds names of course):

Code: Select all

NODE LB01-TMM0
        LABEL TMM0: {node:this:inscaletag}
        LABELOUTLINECOLOR none
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1475
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1475
        TARGET gauge:/var/www/cacti/rra/lb01-0_tmm_00_1m_1736.rrd:tmm_00_1m:-
        USESCALE CPU in
        POSITION 265 720
Running command from CLI with Debug:

Code: Select all

./weathermap  --config configs/CLOUD --output output/947e8c8dc5ac0eb0075c.png --htmloutput output/947e8c8dc5ac0eb0075c.html --debug

DEBUG: [ReadData@Weathermap.class.php:892] configs/CLOUD: ReadData for NODE LB01-TMM0:
DEBUG: [ReadData@Weathermap.class.php:901] configs/CLOUD: ReadData: New Target: gauge:/var/www/cacti/rra/lb01-0_tmm_00_1m_1736.rrd:tmm_00_1m:-
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:496] configs/CLOUD: Special DS names seen (tmm_00_1m and -).
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:516] configs/CLOUD: SCALING result by 1
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:574] configs/CLOUD: RRD ReadData: Target DS names are tmm_00_1m and -
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:322] configs/CLOUD: RRD ReadData: traditional style
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:362] configs/CLOUD: RRD ReadData: Running: /usr/bin/rrdtool fetch /var/www/cacti/rra/lb01-0_tmm_00_1m_1736.rrd AVERAGE --start now-800 --end now
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382] configs/CLOUD: > 1435350000: 1.0000000000e+00
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382] configs/CLOUD: > 1435350300: 1.0000000000e+00
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382] configs/CLOUD: > 1435350600: -nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382] configs/CLOUD: > DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:390] configs/CLOUD: RRD ReadData: Read 4 lines from rrdtool
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:391] configs/CLOUD: RRD ReadData: Headings are:                       tmm_00_1m

DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400] configs/CLOUD: --
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400] configs/CLOUD: --1435350600: -nan

DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400] configs/CLOUD: --1435350300: 1.0000000000e+00
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:421] configs/CLOUD: 1.0000000000e+00 is OK value for tmm_00_1m
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:455] configs/CLOUD: RRD ReadDataFromRealRRD: Returning (1.0000000000e+00,0,1435350300)
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:616] configs/CLOUD: RRD ReadData: Returning (1,0,1435350300)
DEBUG: [ReadData@Weathermap.class.php:950] configs/CLOUD: Aggregate so far: 1 0
DEBUG: [ReadData@Weathermap.class.php:957] configs/CLOUD: DataTime MINMAX: 1435350300 -> 1435350300
DEBUG: [ReadData@Weathermap.class.php:964] configs/CLOUD: ReadData complete for NODE LB-TMM0: 1 0
DEBUG: [NewColourFromPercent@Weathermap.class.php:1256] configs/CLOUD: NCFPC LB01-TMM0 CPU 1 '0%' 0_1 184 245 0
DEBUG: [NewColourFromPercent@Weathermap.class.php:1256] configs/CLOUD: NCFPC LB01-TMM0 CPU 0 '0%' 0_1 184 245 0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note inscalekey='0_1' to LB01-TMM0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note outscalekey='0_1' to LB01-TMM0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note inscaletag='0%' to LB01-TMM0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note outscaletag='0%' to LB01-TMM0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note inscalecolor='#b8f500' to LB01-TMM0
DEBUG: [add_note@Weathermap.class.php:106] configs/CLOUD: Adding note outscalecolor='#b8f500' to LB01-TMM0
DEBUG: [ReadData@Weathermap.class.php:1031] configs/CLOUD: ReadData: Setting 1,0
Header of the rrd file info below:

Code: Select all

rrdtool info lb01-0_tmm_00_1m_1736.rrd

filename = "lb01-0_tmm_00_1m_1736.rrd"
rrd_version = "0003"
step = 300
last_update = 1435352402
ds[tmm_00_1m].type = "GAUGE"
ds[tmm_00_1m].minimal_heartbeat = 600
ds[tmm_00_1m].min = 0.0000000000e+00
ds[tmm_00_1m].max = 1.0000000000e+02
ds[tmm_00_1m].last_ds = "1"
ds[tmm_00_1m].value = 2.0000000000e+00
ds[tmm_00_1m].unknown_sec = 0
rra[0].cf = "AVERAGE"
Attachments
LB01-0 - TMM 2CPUs 1m Util.png
LB01-0 - TMM 2CPUs 1m Util.png (15.45 KiB) Viewed 1545 times
LB01 weathermap values.
LB01 weathermap values.
2015-06-26 16_45_05-CACTI - Weathermap.png (1.57 KiB) Viewed 1546 times
bartc
Posts: 17
Joined: Wed Aug 20, 2014 11:06 am

Re: Missing snmp values through TARGET option - weathermap 0

Post by bartc »

Turns to be a PEBKAC this time :)

I had a SCALE which was defined like this :

Code: Select all

SCALE CPU 0    1    184 245   0  0%
SCALE CPU 1    2    184 245   0  1%
SCALE CPU 2    3    184 245   0  2%
SCALE CPU 3    4    184 245   0  3%
SCALE CPU 4    5    184 245   0  4%
SCALE CPU 5    6    184 245   0  5%
SCALE CPU 6    7    184 245   0  6%
SCALE CPU 7    8    184 245   0  7%
SCALE CPU 8    9    184 245   0  8%
SCALE CPU 9    10   184 245   0  9%
SCALE CPU 10   11   184 245   0  10%
Redifining this to the scale below resolves the problem with TMM value (I guess I need some sleep ;)) :

Code: Select all

SCALE CPU 0    0.5    184 245   0  0%
SCALE CPU 0.5  1.5    184 245   0  1%
SCALE CPU 1.5  2.5    184 245   0  2%
SCALE CPU 2.5  3.5    184 245   0  3%
SCALE CPU 3.5  4.5    184 245   0  4%
SCALE CPU 4.5  5.5    184 245   0  5%
SCALE CPU 5.5  6.5    184 245   0  6%
SCALE CPU 6.5  7.5    184 245   0  7%
SCALE CPU 7.5  8.5    184 245   0  8%
SCALE CPU 8.5  9.5    184 245   0  9%
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Missing snmp values through TARGET option - weathermap 0

Post by Howie »

Or, simply:

SCALE 0 11 184 245 0

and

NODE blah
LABEL TMM0: {node:this:bandwidth_in:%d}%

:-)
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest