(SOLVED!) Cisco SAA IPSLA can't get VALUE for Node

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Nunnsby
Posts: 16
Joined: Fri Dec 10, 2010 10:12 am

(SOLVED!) Cisco SAA IPSLA can't get VALUE for Node

Post by Nunnsby »

Hi There

I am struggling to setup a weathermap indicating High-Latency on routers running IPSLA. I have the graphs working fine, but cannot get a VALUE for bandwidth_in on the NODE.

Here is the config on the router (I am using tcp-connect for Application Connections):

Code: Select all

ip sla 12
 tcp-connect 10.1.15.250 3204 source-ip 10.200.170.254 source-port 34022
 threshold 500
 frequency 300
ip sla schedule 12 life forever start-time now
Here is the graph for the Router:
R01-SAA.JPG
R01-SAA.JPG (15.22 KiB) Viewed 3226 times
Here is the config of the NODE itself:

Code: Select all

NODE R01
	LABEL Latency {node:this:bandwidth_in:%d} ms
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=501
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=501
	TARGET gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d
	POSITION 360 240
I am seeing the Label show up as Grey, and a value of 0 appear there. The Grey is representative of 0%, but it never changes. If I remove the :%d from the :bandwidth_in: statement, I get an [UNKNOWN] error.

If I change the value to anything else, :rtt:%d for example, I get an [UNKNOWN] error, which is represetative of the Graph Debug below:

Data Source Debug

Code: Select all

/usr/bin/rrdtool create \
/var/lib/cacti/rra/228/512.rrd \
--step 300  \
DS:sumpsd:GAUGE:600:0:U \
DS:sumpds:GAUGE:600:0:U \
DS:voipMOS:GAUGE:600:0:U \
DS:UnSyncRTs:GAUGE:600:0:U \
DS:voipICPIF:GAUGE:600:0:U \
DS:maxpsd:GAUGE:600:0:U \
DS:rttmax:GAUGE:600:0:U \
DS:maxnds:GAUGE:600:0:U \
DS:maxnsd:GAUGE:600:0:U \
DS:rtt:GAUGE:600:0:U \
DS:maxpds:GAUGE:600:0:U \
DS:lossSD:GAUGE:600:0:U \
DS:lossDS:GAUGE:600:0:U \
DS:OOS:GAUGE:600:0:U \
DS:Late:GAUGE:600:0:U \
DS:MIA:GAUGE:600:0:U \
DS:http_rtt:GAUGE:600:0:U \
DS:http_dns_rtt:GAUGE:600:0:U \
DS:http_tcp_rtt:GAUGE:600:0:U \
DS:http_trans_rtt:GAUGE:600:0:U \
DS:rttmin:GAUGE:600:0:U \
DS:sumnsd:GAUGE:600:0:U \
DS:numpsd:GAUGE:600:0:U \
DS:sumnds:GAUGE:600:0:U \
DS:numnsd:GAUGE:600:0:U \
DS:sum2nsd:GAUGE:600:0:U \
DS:sum2psd:GAUGE:600:0:U \
DS:numpds:GAUGE:600:0:U \
DS:numnds:GAUGE:600:0:U \
DS:sum2pds:GAUGE:600:0:U \
DS:sum2nds:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
The interesting thing is ... where IS the VALUE coming from as as you see, NO DS's are actually storing values, but the graph is working!

Any help?
Last edited by Nunnsby on Fri Oct 21, 2011 3:49 am, 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:

Re: Cisco SAA IPSLA can't get VALUE for Node

Post by Howie »

So no doubt you looked in cacti.log, where you would see something about unknown DS names, and a list of valid DS names ;-)

TARGET gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d
should be
TARGET gauge:/var/lib/cacti/rra/228/512.rrd:rttmax:sumpds
(or any other TWO ds names on the end - and it must be TWO names)
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!)
Nunnsby
Posts: 16
Joined: Fri Dec 10, 2010 10:12 am

Re: Cisco SAA IPSLA can't get VALUE for Node

Post by Nunnsby »

Howie, very good!

So, now, using :rtt:sumpds I am getting the colour! ;-)

But, I am still NOT getting a VALUE in the output on the Label on the NODE itself. Well, I am, just that it is still 0, yet Cacti is reporting a value, in this case 44.

Node Config on Weather Map:

Code: Select all

NODE ENG-ZIM-HO-R01
	LABEL Latency {node:this:rtt:%d} avg
	TARGET gauge:/var/lib/cacti/rra/228/512.rrd:rtt:sumpds
	POSITION 360 240
Output from Debug:

Code: Select all

07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] SNMP Result: Host responded to SNMP
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] NOTE: There are '6' Polling Items for this Host
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[427] SNMP: v2: 10.200.170.254, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: 0
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[428] SNMP: v2: 10.200.170.254, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 27238559
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[428] SNMP: v2: 10.200.170.254, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 8464340
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[429] SNMP: v2: 10.200.170.254, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 10081064
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[429] SNMP: v2: 10.200.170.254, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 30520485
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[512] SNMP: v2: 10.200.170.254, dsname: rtt, oid: .1.3.6.1.4.1.9.9.42.1.2.10.1.1.12, value: 44
The VALUE 44 at the end is right as that matches my graph.

Any ideas? Is %d right to display the value, or what about %m?

Weathermap output is:

First block below shows errors before I corrected it as above.

Code: Select all

07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.html & /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: ProcessTargets: LINK ENG-ZIM-HO-R01-node02534, target: gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d on config line 72 of /usr/share/cacti/site/plugins/weathermap/configs/simple.conf was not recognised as a valid TARGET [WMWARN08]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: ProcessTargets: NODE ENG-ZIM-HO-R01, target: gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d on config line 62 of /usr/share/cacti/site/plugins/weathermap/configs/simple.conf was not recognised as a valid TARGET [WMWARN08]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Wrote map to /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png and /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.thumb.png
This second block show NO errors after I corrected it, so meaning that it "likes" the readings it gets, but just it is NOT inserting the 44!:

Code: Select all

07/20/2011 11:16:16 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97a run complete - Wed, 20 Jul 11 23:16:16 +0200: 3 maps were run in 4 seconds with 147 warnings.
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.html & /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Wrote map to /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png and /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.thumb.png
0
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Cisco SAA IPSLA can't get VALUE for Node

Post by Howie »

the label was correct before:

LABEL Latency {node:this:bandwidth_in:%d} ms
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!)
Nunnsby
Posts: 16
Joined: Fri Dec 10, 2010 10:12 am

Re: Cisco SAA IPSLA can't get VALUE for Node [SOLVED]

Post by Nunnsby »

Thanks Howie, you were right, all good and working now!

:D
Nunnsby
Posts: 16
Joined: Fri Dec 10, 2010 10:12 am

Re: Cisco SAA IPSLA can't get VALUE for Node

Post by Nunnsby »

Hi, I still CAN NOT get the colour to change based on the IP SLA value returned.

I am getting the correct latency values, but I would like the node colour to change based on various latency measurements.

0 = Grey
1 - 400 = Green
401 - 600 = Orange
600 - 10000 = Red (Yes, I actually see over 8000ms sometimes! :( )

The node always stays GREEN!!! Regardless of the latency. 414, or 600+, it is always GREEN!

Here is a copy of the code. If someone can advise, that would be great!

Code: Select all

# Automatically generated by php-weathermap v0.97a

FONTDEFINE 100 docs/example/Vera.ttf 10

WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib
KEYFONT 100
TITLE SAP RESPONSE
TIMEPOS 746 17 Created: %b %d %Y %H:%M:%S

KEYPOS CUSTOM 62 87 Response Times
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0

SCALE CUSTOM 0    0    192 192 192
SCALE CUSTOM 1    400    0 240   0
SCALE CUSTOM 401  600  255 192   0
SCALE CUSTOM 601 10000 255 0 0

SET nowarn_clipping 1

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
        USESCALE CUSTOM


# regular NODEs:
NODE HO-R01
        LABEL Latency {node:this:bandwidth_in:%d} ms
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=783
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=783
        TARGET gauge:/var/lib/cacti/rra/228/796.rrd:rtt:sumpds
        POSITION 360 240
        USESCALE CUSTOM in

NODE HO-R01_Label
        LABEL HO
        LABELOFFSET N
        POSITION 360 219


# regular LINKs:


# That's All Folks!
Nunnsby
Posts: 16
Joined: Fri Dec 10, 2010 10:12 am

Re: (SOLVED!) Cisco SAA IPSLA can't get VALUE for Node

Post by Nunnsby »

YAY, It's solved!! :D

I added the absolute value and it worked for me.

you can add this under either the individual nodes:

# regular NODEs:
NODE HO-R01
USESCALE CUSTOM in absolute
LABEL Latency {node:this:bandwidth_in:%d} ms

or under the NODE DEFAULT setting:

# default NODE settings:
NODE DEFAULT
USESCALE CUSTOM in absolute

Code: Select all

SCALE CUSTOM 0    0    192 192 192
SCALE CUSTOM 1    400    0 240   0
SCALE CUSTOM 401  600  255 192   0
SCALE CUSTOM 601 10000 255 0 0

SET nowarn_clipping 1

NODE DEFAULT
        %%HERE%%

# regular NODEs:
NODE HO-R01
        %%OR HERE%%
        LABEL Latency {node:this:bandwidth_in:%d} ms
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=783
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=783
        TARGET gauge:/var/lib/cacti/rra/228/796.rrd:rtt:sumpds
        POSITION 360 240
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests