[XML] Cisco IP SLA templates (AKA RTR & SAA)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
bleearg
Cacti User
Posts: 55
Joined: Wed Apr 27, 2005 9:37 am

Post by bleearg »

I am getting the following error on the SAA Jitter Dispersion graph:

ERROR: invalid rpn expression 'a,c,/,b,c,/,b,c,/,*,-,SQRT'

I've checked the CDEFs and I do see this defined. Unfortunately, even after reading several posts on the forums about this type of error, I am at a loss as to what to do next. Can anyone point me in the right direction? Using Cacti 0.8.7b. Here is the full graph output:

Code: Select all

/usr/bin/rrdtool graph - \
-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000 --title="Switch1 - SAA Jitter Dispersion (switch1)" \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Switch1 - SAA Jitter Dispersion (switch1)" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="ms" \
DEF:a="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sum2psd:LAST \
DEF:b="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sumpsd:LAST \
DEF:c="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":numpsd:LAST \
DEF:d="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sum2nsd:LAST \
DEF:e="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sumnsd:LAST \
DEF:f="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":numnsd:LAST \
DEF:g="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sum2pds:LAST \
DEF:h="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sumpds:LAST \
DEF:i="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":numpds:LAST \
DEF:j="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sum2nds:LAST \
DEF:ba="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":sumnds:LAST \
DEF:bb="/opt/web/virtual/cacti/rra/switch1_sumpsd_3632.rrd":numnds:LAST \
CDEF:cdefb=b,c,/ \
CDEF:cdefc=a,c,/,b,c,/,b,c,/,*,-,SQRT \
CDEF:cdefg=e,f,/,-1,* \
CDEF:cdefh=d,f,/,e,f,/,e,f,/,*,-,SQRT,-1,* \
CDEF:cdefbb=h,i,/ \
CDEF:cdefbc=g,i,/,h,i,/,h,i,/,*,-,SQRT \
CDEF:cdefbg=ba,bb,/,-1,* \
CDEF:cdefbh=j,bb,/,ba,bb,/,ba,bb,/,*,-,SQRT,-1,* \
HRULE:0#000000:""  \
AREA:cdefb#FF0000:"Mean +SD"  \
STACK:cdefc#FFAB00:"Stddev +SD\n"  \
GPRINT:a:LAST:"Last Sum2 +SD\:%8.2lf%s"  \
GPRINT:b:LAST:"Sum +SD\:%8.2lf%s"  \
GPRINT:c:LAST:"Num +SD\:%8.2lf%s\n"  \
AREA:cdefg#FF0000:"Mean -SD"  \
STACK:cdefh#FFAB00:"Stddev -SD\n"  \
GPRINT:d:LAST:"Last Sum2 -SD\:%8.2lf%s"  \
GPRINT:e:LAST:"Sum -SD\:%8.2lf%s"  \
GPRINT:f:LAST:"Num -SD\:%8.2lf%s\n"  \
LINE1:cdefbb#0000FF:"Mean +DS"  \
STACK:cdefbc#4668E4:"Stddev +DS\n"  \
GPRINT:g:LAST:"Last Sum2 +DS\:%8.2lf%s"  \
GPRINT:h:LAST:"Sum +DS\:%8.2lf%s"  \
GPRINT:i:LAST:"Num +DS\:%8.2lf%s\n"  \
LINE1:cdefbg#0000FF:"Mean -DS"  \
STACK:cdefbh#4668E4:"Stddev -DS\n"  \
GPRINT:j:LAST:"Last Sum2 -DS\:%8.2lf%s"  \
GPRINT:ba:LAST:"Sum -DS\:%8.2lf%s"  \
GPRINT:bb:LAST:"Num -DS\:%8.2lf%s\n" 

RRDTool Says:

ERROR: invalid rpn expression 'a,c,/,b,c,/,b,c,/,*,-,SQRT'
m1z4rk
Posts: 13
Joined: Mon Aug 29, 2005 7:09 pm
Location: Cayman Islands

Jitter Dispersion: err-or

Post by m1z4rk »

Hi All -

Great graphs! I'm having the same problem as bleearg with Jitter Dispersion though. Any ideas on this one? I'm also on 0.8.7b..

Anyone running 0.8.7b have this graph working?

RRDTool Says:
ERROR: invalid rpn expression 'a,c,/,b,c,/,b,c,/,*,-,SQRT'

thanks!
mark
***
Please note: your dreams may vary from those of the Globex corporation, its subsidiaries and stockholders
***
bookweb
Posts: 8
Joined: Mon Apr 14, 2008 5:12 am

Post by bookweb »

Hi,

i used the script with 0.8.7a a few month ago, but now i had to setup cacti on a new server and so i´m using 0.8.7b now.

My problem is an empty data query for my sla-file.

Code: Select all


+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/opt/ipsla/local/cacti/resource/snmp_queries/cisco_sla.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Found data query XML file at '/opt/ipsla/local/cacti/resource/snmp_queries/cisco_sla.xml'
+ Found data query XML file at '/opt/ipsla/local/cacti/resource/snmp_queries/cisco_sla.xml'
+ Found data query XML file at '/opt/ipsla/local/cacti/resource/snmp_queries/cisco_sla.xml'
 
So the status is:
1) Cisco SLA (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

Has anyone an idea to solve this?
Thanks
Christian
bookweb
Posts: 8
Joined: Mon Apr 14, 2008 5:12 am

Post by bookweb »

ok, i solved this on my own:

i had to change "data query" > "data input method" to "Get SNMP Data".
bookweb
Posts: 8
Joined: Mon Apr 14, 2008 5:12 am

Post by bookweb »

Hi,

i´m using cacti for visualising cisco ip sla.
For udp jitter it is fine, but for icmp jitter the jitter-template shows 0 instead of the real data.

Have I to change some parameters?

Thanks for your help!
Christian
User avatar
bleearg
Cacti User
Posts: 55
Joined: Wed Apr 27, 2005 9:37 am

Re: Jitter Dispersion: err-or

Post by bleearg »

m1z4rk wrote:Hi All -

Great graphs! I'm having the same problem as bleearg with Jitter Dispersion though. Any ideas on this one? I'm also on 0.8.7b..

Anyone running 0.8.7b have this graph working?

RRDTool Says:
ERROR: invalid rpn expression 'a,c,/,b,c,/,b,c,/,*,-,SQRT'

thanks!
mark
I believe I found the problem, m1z4rk. Which version of rrdtool are you running? I am on an old RHEL3 server that has rrdtool-1.0.5 installed on it and it does not appear to support the "SQRT" function.
frdrk
Cacti User
Posts: 55
Joined: Fri Jul 06, 2007 2:27 pm

Post by frdrk »

Hi

Really neat plugin! I've gotten parts of it to work, but not all. Basic, Jitter dispersion and VoIP-test works, but not Jitter or Jitter/Error. Any ideas? If i manually snmpwalk the oids used in the templete they all give me the right output and values.

I'm running cacti 0.8.6j. Here is the graph debug, if you need any more info just ask;

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="on-skovde-01 - SAA Jitter/Error (VoIP test till on-tule-01)" \
--base=1000 \
--height=180 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ms" \
--slope-mode \
DEF:a="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":rttmax:AVERAGE \
DEF:b="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":rttmin:AVERAGE \
DEF:c="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":rtt:AVERAGE \
DEF:d="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":lossSD:AVERAGE \
DEF:e="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":lossDS:AVERAGE \
DEF:f="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":Late:AVERAGE \
DEF:g="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":MIA:AVERAGE \
DEF:h="/var/www/cacti/rra/onskovde01_sum2nds_47176.rrd":OOS:AVERAGE \
CDEF:cdefbc=d,-1,* \
CDEF:cdefbg=e,-1,* \
CDEF:cdefca=f,-1,* \
CDEF:cdefce=g,-1,* \
CDEF:cdefci=h,-1,* \
AREA:a#C0C0C0:"RTT Max"  \
GPRINT:a:LAST:"      Current\:%8.2lf%s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:b#FFFFFF:"RTT Min"  \
GPRINT:b:LAST:"      Current\:%8.2lf%s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:b:MIN:"Minimum\:%8.2lf%s\n"  \
LINE1:c#FF0000:"RTT Ave"  \
GPRINT:c:LAST:"      Current\:%8.2lf%s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefbc#0000FF:"Loss (S -> D)"  \
GPRINT:d:LAST:"Current\:%8.2lf%s"  \
GPRINT:d:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefbg#FF0000:"Loss (D -> S)"  \
GPRINT:e:LAST:"Current\:%8.2lf%s"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:e:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefca#862F2F:"Packet Late"  \
GPRINT:f:LAST:"  Current\:%8.2lf%s"  \
GPRINT:f:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:f:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefce#0000FF:"Packet MIA"  \
GPRINT:g:LAST:"   Current\:%8.2lf%s"  \
GPRINT:g:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:g:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefci#35962B:"Packet OOS"  \
GPRINT:h:LAST:"   Current\:%8.2lf%s"  \
GPRINT:h:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:h:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"Type\: jitter, Status\: ok, Count\: 1000, Size\: 172B, Port\: 16384"  \
HRULE:5000#0000FF:"Threshold\: 5000.00"  \
HRULE:0#000000:"" 

RRDTool Says:
Attachments
cacti1.jpg
cacti1.jpg (161.44 KiB) Viewed 13345 times
jpierre70
Posts: 2
Joined: Mon Jun 16, 2008 12:02 pm

SLA index problema?!

Post by jpierre70 »

Hi!
I'm testing this plugins on my CactiEZ trying to monitor two Cisco IOS routers. It seems that it only works with the first SLA index.

Monitoring HTTP requests
!
ip sla monitor 1
type http operation get url http://www.google.com source-ipaddr x.x.x.x name-server y.y.y.y
frequency 120
ip sla monitor schedule 1 life forever start-time now
!
Monitoring jitter/VoIP performance
!
ip sla monitor 2
type jitter dest-ipaddr x.x.x.x dest-port 16384 codec g711ulaw
tos 160
verify-data
frequency 30
hours-of-statistics-kept 4
enhanced-history interval 900 buckets 100
ip sla monitor schedule 2 life forever start-time now
!

I get the http values but not the jitter ones. If i change the index value between them, i get the jitter values but not the http values?!

Thanks,
JP
Fred
Cacti User
Posts: 81
Joined: Fri Jan 03, 2003 11:43 am

Re: Tips using IP SLA with Cacti

Post by Fred »

This probably belongs on a cisco forum, but I thought I'd try here.
hwon wrote:- If QoS is enabled for VoIP traffic on the network, setup the VoIP probe to take advantage of the QoS
Can you tell me how this is done?

Since most everything on my router is tagged before it enters, I'm thinking I can make a simple policy-map on the loopback interface to mark UDP/10000 (as EF), and then use:

type jitter dest-ipaddr <voipgw> dest-port 10000 codec g711 source-ipaddr <loopbackip>

Will this get tagged by a service-policy outbound on the loopback? Or is there a way I can tag this as EF right from the SLA?
Frizz
Cacti User
Posts: 80
Joined: Sat Mar 05, 2005 5:07 pm
Location: Herne Germany

Re: SLA index problema?!

Post by Frizz »

jpierre70 wrote:Hi!
ip sla monitor 1
type http operation get url http://www.google.com source-ipaddr x.x.x.x name-server y.y.y.y
frequency 120
ip sla monitor schedule 1 life forever start-time now
JP
Hi Jpierre70,
I think your problem is the missing rtr tag statement to identify each measurement as the tag Id is only used for indexing.
Try : conf t
rtr 123
rtr tag name_of_123
...
rtr345
rtr tag name_of_123
....
Rediscover your IPM device and try again.
Frizz
Cacti 0.8.6j | Cactid 0.8.6j | RRDtool 1.2.23 |
SuSe 9.x | PHP 4.4.4 | MySQL 5.0.27 | IHS 2.0.42.1
Come and join the 3.CCC.eu
http://forums.cacti.net/viewtopic.php?t=27908
jpierre70
Posts: 2
Joined: Mon Jun 16, 2008 12:02 pm

Re: SLA index problema?!

Post by jpierre70 »

Frizz wrote:
jpierre70 wrote:Hi!
ip sla monitor 1
type http operation get url http://www.google.com source-ipaddr x.x.x.x name-server y.y.y.y
frequency 120
ip sla monitor schedule 1 life forever start-time now
JP
Hi Jpierre70,
I think your problem is the missing rtr tag statement to identify each measurement as the tag Id is only used for indexing.
Try : conf t
rtr 123
rtr tag name_of_123
...
rtr345
rtr tag name_of_123
....
Rediscover your IPM device and try again.
Frizz
Hi!
Where do i configure that same tag on Cacti? What is IPM?

Thanks,
JP
Frizz
Cacti User
Posts: 80
Joined: Sat Mar 05, 2005 5:07 pm
Location: Herne Germany

Re: SLA index problema?!

Post by Frizz »

....
Rediscover your IPM device and try again.
Frizz

Hi!
Where do i configure that same tag on Cacti? What is IPM?

Thanks,
JP
Hi JPierre70,
Sorry for my short response,

The tag must be configured on the routers command line.

ip sla monitor 1
type http operation get url http://www.google.com source-ipaddr x.x.x.x name-server y.y.y.y
frequency 120
ip sla monitor schedule 1 life forever start-time now
tag name_monitor_1

The tag will be shown in the Cacti graph selection page.

"rtr" is the old CLI command version
IPM is the name of Cisco's Internet Performance Monitor we're using to configure our Cisco devices (our IPM device)

regards

Frizz
Cacti 0.8.6j | Cactid 0.8.6j | RRDtool 1.2.23 |
SuSe 9.x | PHP 4.4.4 | MySQL 5.0.27 | IHS 2.0.42.1
Come and join the 3.CCC.eu
http://forums.cacti.net/viewtopic.php?t=27908
cactiipsla
Posts: 4
Joined: Fri Jun 20, 2008 11:13 pm

making SAA default for data query

Post by cactiipsla »

I am using your xml files for SAA exclusively. I don't need any other data queries (netware, interface, kbridge etc) so I have deleted all of those data queries. When I add a device, I want it to automatically use the Cisco SAA template as the data source but it does not select anything under associated data query and I have to manually click on Add to add the IP SLA statistics.

Even when I have only one data query left (deleted all the rest), it says "no associated data queries". Is there any way to make the IP SLA tempate the default selection for data query when a device is added ? I am adding device with add_device with the tempate id for IP SLA template (5 in my case).

thank you
Attachments
&amp;quot;no associated data queries&amp;quot; under Associated Data Queries
&quot;no associated data queries&quot; under Associated Data Queries
cacti.JPG (159.78 KiB) Viewed 12700 times
hwon
Posts: 34
Joined: Thu Mar 02, 2006 4:11 pm
Location: TX

Post by hwon »

Seems like you are using Cisco Router template. You can modify the Cisco Router Template under host template to include IP SLA for data queries.
cactiipsla
Posts: 4
Joined: Fri Jun 20, 2008 11:13 pm

Post by cactiipsla »

Hwon,

this is exactly what I was trying to do. Now my devices are automatically associated with my data query.

Is there any way to do this from the CLI ? I am trying to use do all of the admin work from CLI.

thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests