Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[XML] Cisco IP SLA templates (AKA RTR & SAA)
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Tue Feb 06, 2007 3:47 pm    Post subject: [XML] Cisco IP SLA templates (AKA RTR & SAA) Reply with quote

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

This is for graphing Cisco IP SLA Probes. For those of you who is not familiar with Cisco IP SLA, it is a probe s/w loaded on Cisco IOS based equipments that you can use to measure round trip times of various protocols/applications on the network. If you have 12.x your router/switch probably have IP SLA capability already present on the equipment, and you just need to create a probe entry. Cisco IP SLA has grown since its introduction in 11.x code (Yup, there are some 11.x code which can do IP SLA, back then called RTR), now it has about 15 or so probe types. Included is HTTP, DNS, ICMP, UDP, Jitter, FTP, DHCP, to name the few. Some you can run with single equipment, some you have to run with two equipments in a client server mode to get more accurate reading on the network health. Check out Emmanuel Tychon's page on more information on Cisco IP SLA:

http://www.etychon.com


I have created a new thread as I do not have access to user ID of original thread. But you can refer to the old thread for historical information on the template:

http://forums.cacti.net/about4136.html

I've added probe specific graph templates since the last time I've updated the templates. Here is the list of graph templates:

Basic - Use this for anything that does not fit in to specific templates (dhcp, tcp connect, etc.)
DNS - shows target DNS query
FTP - shows file size and URL
HTTP - break down of DNS resolve, TCP hand shake, and HTTP, and also shows page size, URL, and HTTP status code
Jitter - Shows source <-> destination positive/negative jitter
Jitter/Error - Shows RTT average value with max min grey band
VoIP Scoring - Shows MOS scoring and VoIP codec

Aside from jitter and http template, the main difference among other templates are the tag lines, which you can take advantage of by importing IP SLA mibs. I will post instructions shortly on how to import the mibs.


5/4/2007
Thanks to Steve W. we have additional jitter template that utilizes standard deviation (SD) instead of simple min/ave/max value. The benefit of graph based on the SD is that outlying data will not pull the average and maximum value out as on the min/ave/max based graph, thus normalizing the graph.

Quote:
Whilst max jitter is useful to show a worse case, it can be misleading if the SAA sample is based on 1000 packets which is standard for simulating voice i.e. a graph shows a 50ms jitter whereas 999 packets had a jitter of 3ms.

Cisco provide enough data in the MIB to calculate average jitter and standard deviation jitter, so I've created a new graph (in the same style) to do this.

The template package includes quite a few additions (altered data template, altered data query, new graph template, new CDEFs).



saa_jitter_dispersion.png
 Description:
Jitter with standard deviation
 Filesize:  77.69 KB
 Viewed:  48921 Time(s)

saa_jitter_dispersion.png



saa_jitter.png
 Description:
Basic Jitter
 Filesize:  58.26 KB
 Viewed:  48921 Time(s)

saa_jitter.png



cacti_data_query_cisco_ip_sla_statistics.xml
 Description:
Import using cacti import/export template interface

Download
 Filename:  cacti_data_query_cisco_ip_sla_statistics.xml
 Filesize:  191.98 KB
 Downloaded:  5994 Time(s)


cisco_saa.xml
 Description:
Copy to {cacti_root}/resource/snmp_queries/

Download
 Filename:  cisco_saa.xml
 Filesize:  22.47 KB
 Downloaded:  4398 Time(s)



Last edited by hwon on Fri May 04, 2007 4:08 pm; edited 3 times in total
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Tue Feb 06, 2007 3:55 pm    Post subject: Importing mibs Reply with quote

To get most out of the updated graph templates, I suggest importing the mibs for IP SLA. Attached is two mibs that needs to be copied to /mibs directory (On my Ubuntu linux, the location was /usr/share/snmp/mibs/). Once copied, add following lines in snmp.conf (might need to create the file if it does not exist, my snmp.conf resides in /usr/share/snmp/):

mibs +CISCO-SMI
mibs +CISCO-RTTMON-MIB

Once mibs and xml files are imported/copied go to 'New Graphs', Select your IP SLA configured router, Edit this host, Add Data Query, select 'Cisco - IP SLA Statistics', click on add. Now you can click on 'Create Graphs for this Host', and you should see a screen like below with informative description of the probe instead of just numbers. Also, the description will be carried on the actual graph tag entries.



withmibs.PNG
 Description:
With mibs
 Filesize:  11.02 KB
 Viewed:  52164 Time(s)

withmibs.PNG



without.PNG
 Description:
Without mibs
 Filesize:  8.48 KB
 Viewed:  52164 Time(s)

without.PNG



mibs.zip
 Description:
Extract to your mibs directory

Download
 Filename:  mibs.zip
 Filesize:  53.75 KB
 Downloaded:  2775 Time(s)

Back to top
Frizz
Cacti User


Joined: 05 Mar 2005
Posts: 80
Location: Herne Germany

PostPosted: Tue Feb 06, 2007 4:31 pm    Post subject: Re: [XML] Cisco IP SLA templates (AKA RTR & SAA) Reply with quote

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



Hi HWON,
just a good point in time for this update, as I want to bring out our latency and jitter measurements from development to productive boxes.
I will give you an update to this later.
BTW, do you have think about the MOS (Mean Opinion Score), that is also measurable with IOS router?
Best regards
Frizz
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Tue Feb 06, 2007 5:46 pm    Post subject: Re: [XML] Cisco IP SLA templates (AKA RTR & SAA) Reply with quote

Frizz wrote:
BTW, do you have think about the MOS (Mean Opinion Score), that is also measurable with IOS router?


Howdy Frizz,

I know for sure MOS and ICPIF VoIP scoring is supported on 12.4 and some 12.3. But not sure of other 12.x versions.
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Wed Feb 07, 2007 11:25 am    Post subject: Sample Basic & DNS statistics Reply with quote

Sample Basic & DNS statistics

Basic statistics
Use this template/probe to get response time for DHCP, PING (ICMP), TCP Connect and any other probes without matching graph template

DNS statistics
Use it to get response time for DNS probe. Sample config to resolve www.yahoo.com using 208.67.222.222 DNS server every 5 minutes with 100ms threshold:

ip sla monitor 232
type dns target-addr www.yahoo.com name-server 208.67.222.222
frequency 300
threshold 100
ip sla monitor schedule 232 life forever start-time now



tcpconnect.png
 Description:
TCP Connect statistics
 Filesize:  34.28 KB
 Viewed:  52104 Time(s)

tcpconnect.png



dhcp.png
 Description:
DHCP statistics
 Filesize:  23.63 KB
 Viewed:  52104 Time(s)

dhcp.png



dns.png
 Description:
DNS statistics
 Filesize:  28.73 KB
 Viewed:  52104 Time(s)

dns.png




Last edited by hwon on Wed Feb 07, 2007 11:32 am; edited 1 time in total
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Wed Feb 07, 2007 11:29 am    Post subject: Sample HTTP statistics Reply with quote

Sample HTTP statistics

Use this template/probe to get response time breakdown of DNS lookup, TCP handshake, and HTTP get. Sample config to get home page of www.cisco.com without caching, resolve using 208.67.222.222 DNS server every 5 minutes with 500ms threshold:

ip sla monitor 456
type http operation get url http://www.cisco.com name-server 208.67.222.222 cache disable
threshold 500
frequency 300
ip sla monitor schedule 456 life forever start-time now



http.png
 Description:
HTTP statistics
 Filesize:  45.6 KB
 Viewed:  52103 Time(s)

http.png


Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Wed Feb 07, 2007 11:44 am    Post subject: Sample Jitter & Jitter/Error statistics Reply with quote

Sample Jitter & Jitter/Error statistics

Use this template/probe to get detailed response time and jitter statistics on the network. To make this work, you need to have other router running 'ip sla responder'. Best probe to measure overall network health and especially useful if you want to measure the network health for multimedia application, VoIP, and Video. Also, If you run this probe on WAN edge routers, you can compare SLA you get from the Cacti to the ones service provider presents. On the Jitter template the green line is statically setup at 30ms and -30ms as that seems to be the maximum recommended jitter value for VoIP application. Obviously my sample network isn't qualified for VoIP transmission based on the charts.

Sample config to get UDP Jitter statistics between local router and 10.0.0.2 (remote router running 'ip sla responder') every 5 minutes on port 10000.

ip sla monitor 1
type jitter dest-ipaddr 10.0.0.2 dest-port 10000
frequency 300
ip sla monitor schedule 1 life forever start-time now



jitter-error.png
 Description:
Jitter/Error statistics
 Filesize:  57.55 KB
 Viewed:  51628 Time(s)

jitter-error.png



jitter.png
 Description:
Jitter statistics
 Filesize:  40.52 KB
 Viewed:  51628 Time(s)

jitter.png




Last edited by hwon on Mon Feb 19, 2007 5:01 pm; edited 1 time in total
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Wed Feb 07, 2007 11:51 am    Post subject: Sample VoIP Scoring Reply with quote

Sample VoIP Scoring

This is really a subset of Jitter & Jitter/Error template/probe. You need to be running jitter probe with codec option. As a result you get MOS and ICPIF scoring with descriptions. Sample config to get VoIP scoring and UDP Jitter statistics between local router and 10.0.0.2 (remote router running 'ip sla responder') every 5 minutes on port 10004 using g729a codec with 160ms threshold:

ip sla monitor 3452
type jitter dest-ipaddr 10.0.0.2 dest-port 10004 codec g729a
threshold 160
frequency 300
ip sla monitor schedule 3452 life forever start-time now



voip.png
 Description:
VoIP scoring
 Filesize:  53.24 KB
 Viewed:  52097 Time(s)

voip.png


Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Thu Feb 08, 2007 1:18 pm    Post subject: Tips using IP SLA with Cacti Reply with quote

Lastly, just some tips on setting up Cisco IP SLA with Cacti:

- Setup NTP on the equipments
- Use SNMPv2c instead of SNMPv1 if possible
- Setup threshold that makes sense, the default is 5000ms
- Use tag command to enter descriptive information of the IP SLA entry
- When using HTTP & FTP probe, use common sense on the size of the test files
- If QoS is enabled for VoIP traffic on the network, setup the VoIP probe to take advantage of the QoS
Back to top
arovira



Joined: 08 Feb 2007
Posts: 2

PostPosted: Fri Feb 09, 2007 8:41 am    Post subject: Error importing file for ip sla Reply with quote

Hi, try to import the template an I am getting this error:

Error: XML: Hash version does not exist.


Thanks
This is the version of my cacti:

Cacti Version 0.8.6i
Plugin Architecture 1.0
Poller Type Cactid v0.8.6i
Server Info Linux 2.6.9-42.0.3.ELsmp
Web Server Apache/2.0.52 (CentOS)
PHP Version 4.3.9
PHP Extensions yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL Version 4.1.20
RRDTool Version 1.2.15
SNMP Version 5.1.2
Back to top
hwon



Joined: 02 Mar 2006
Posts: 31
Location: TX

PostPosted: Fri Feb 09, 2007 11:47 am    Post subject: Upgrade to 0.8.6j Reply with quote

The template was exported from 0.8.6j. You will need to upgrade Cacti to 0.8.6j to import it.
Back to top
tl1997



Joined: 03 Feb 2007
Posts: 19
Location: Coral Gables, FL

PostPosted: Thu Mar 29, 2007 1:22 pm    Post subject: Reply with quote

When I try to import cact_data_query_cisco_ip_sla_statistics_176.xml I get:

Fatal error: Maximum execution time of 60 seconds exceeded in /usr/local/share/cacti/lib/import.php on line 889

Originally this error was 30 seconds, but I increased the time in php.ini to 60 seconds. Anyone know why it times out? I tried both uploading the file and pasting it into the box, neither worked.

My config:

Quote:
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - FreeBSD 6.1-RELEASE
Web Server - Apache/2.2.3 (FreeBSD) mod_ssl/2.2.3 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.0 with Suhosin-Patch
PHP - 5.2.0
PHP Extensions - session, SPL, Reflection, date, libxml, apache2handler, mysql, pcre, standard, snmp, xml, sockets, gd, dba, rrdtool
MySQL - 5.0.27
RRDTool - 1.2.15
SNMP - 5.2.3
Plugins
    Thresholds (thold - v0.3.0)
    PHP Network Weathermap (weathermap - v0.82)
    Network Tools (tools - v0.2)
    Device Tracking (mactrack - v0.0.1b)
    Network Discovery (discovery - v0.6)
    Host Info (hostinfo - v0.1)
    Simple Links page (links - v0.3)
    Create Aggregate Graphs (aggregate - v0.3)
    report it! (report it! - v0.3.2)
Back to top
gonz0



Joined: 01 Apr 2007
Posts: 8
Location: Poland - Warsaw

PostPosted: Mon Apr 02, 2007 4:24 am    Post subject: Reply with quote

Have a little problem:

I have added tcpConnect RTR

Quote:

rtr 1
type tcpConnect dest-ipaddr 10.150.71.65 dest-port 443 source-ipaddr 172.130.85.1 control disable
tag SysCentr-tcp
rtr schedule 1 start-time now


ANd on the graph I don;t have all values to be shown:

SAA BASIC shows me:

Count: |query_rttMonLatestJitterOperNumOfRTT| <- what should I do with it ?

edit:

okey I know - there is no value for that snmp query.
Back to top
ElGribbo



Joined: 03 Apr 2007
Posts: 2
Location: Louisville, KY

PostPosted: Tue Apr 03, 2007 9:36 am    Post subject: RTT AVE Reply with quote

Hello,

Awesome templates, this was exactly what I needed for a project this week.

One quick question though. I saw in the older thread, I believe it was Frizz was getting zero values for RTT AVE even though everything else was working fine. I am having the same issue.

Running version 0.8.6j. Everything has values except RTT AVE.

Would you happen to have any thoughts on this?
Back to top
ElGribbo



Joined: 03 Apr 2007
Posts: 2
Location: Louisville, KY

PostPosted: Tue Apr 03, 2007 12:19 pm    Post subject: Reply with quote

Must have been a bug or something. Upgraded to a 12.3 IOS from a 12.2 and I now have RTT AVE values!

Thanks for your work on these!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 1 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group