[XML] Cisco IP SLA templates (AKA RTR & SAA)
Moderators: Developers, Moderators
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
Hello, yes, I made it work !
First thing to do is to edit the "ctrlAdminTag" and finish the OID by 3 instead of 2, like I said in my previous post.
Save this restart Apache, and this should work. If not, tell me what error you get, I might be able to help.
First thing to do is to edit the "ctrlAdminTag" and finish the OID by 3 instead of 2, like I said in my previous post.
Save this restart Apache, and this should work. If not, tell me what error you get, I might be able to help.
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
That got me further along.
My <rttMonCtrlAdminTag> already matched the oid you suggested to use.3, I did change the <oid_index> which ended in a .5 to a .3 which allowed me to get some output (that's what you screenshot referenced as the oid-index). I can see graphs looking at jitter stats, but I can not see graph of basic rtt. Did you have any trouble seeing this info.
Debug for IPLSA data query
Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/cisco_saa.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.3' Index Count: 1
+ Index found at OID: 'iso.3.6.1.4.1.9.9.42.1.2.1.1.3.10' value: 'BB01PLAL-BB01DNV'
+ index_parse at OID: 'iso.3.6.1.4.1.9.9.42.1.2.1.1.3.10' results: '10'
+ Inserting index data for field 'rttIndex' [value='10']
+ Located input field 'rttMonCtrlAdminTag' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.3'
+ Found item [rttMonCtrlAdminTag='BB01PLAL-BB01DNV'] index: 10 [from value]
+ Located input field 'rttMonCtrlAdminRttType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.4'
+ Found item [rttMonCtrlAdminRttType='9'] index: 10 [from regexp value parse]
+ Located input field 'rttMonCtrlAdminThreshold' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.5'
+ Located input field 'rttMonCtrlAdminStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.9'
+ Found item [rttMonCtrlAdminStatus='1'] index: 10 [from regexp value parse]
+ Located input field 'rttMonLatestRttOperSense' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.10.1.2'
+ Found item [rttMonLatestRttOperSense='1'] index: 10 [from regexp value parse]
+ Located input field 'rttMonLatestJitterOperNumOfRTT' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.2.1.1'
+ Found item [rttMonLatestJitterOperNumOfRTT='20'] index: 10 [from value]
+ Located input field 'rttMonEchoAdminTargetPort' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.5'
+ Found item [rttMonEchoAdminTargetPort='16834'] index: 10 [from value]
+ Located input field 'rttMonEchoAdminPktDataRequestSize' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.3'
+ Found item [rttMonEchoAdminPktDataRequestSize='32'] index: 10 [from regexp value parse]
+ Located input field 'rttMonEchoAdminTargetAddressString' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.11'
+ Located input field 'rttMonEchoAdminURL' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.15'
+ Located input field 'rttMonLatestHTTPOperMessageBodyOctets' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.1.1.5'
+ Located input field 'rttMonLatestHTTPErrorSenseDescription' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.1.1.7'
+ Located input field 'rttMonEchoAdminCodecType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.27'
+ Located input field 'rttMonEchoAdminPrecision' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.37'
+ Located input field 'rttMonLatestJitterOperNTPState' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.2.1.51'
Graph debug of SAA Basic
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='BB01-PLALCASC - SAA Basic (BB01PLAL-BB01DNV)' \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='ms' \
--slope-mode \
--font TITLE:10:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:7:'LucidaSans oblique' \
DEF:a='/var/lib/cacti/rra/bb01-plalcasc_sumpsd_407.rrd':'rtt':AVERAGE \
LINE1:a#FF0000FF:'RTT Ave' \
GPRINTLAST:'Last\:%8.2lf%s' \
GPRINTMIN:'Min\:%8.2lf%s' \
GPRINTAVERAGE:'Ave\:%8.2lf%s' \
GPRINTMAX:'Max\:%8.2lf%s\n' \
COMMENT:'Type\: 9, Status\: 1, Count\: 20, Size\: 32B, Port\: 16834' \
HRULE:|query_rttMonCtrlAdminThreshold|#0000FFFF:'Threshold\: |query_rttMonCtrlAdminThreshold|.00'
RRDTool Says:
Thanks,
My <rttMonCtrlAdminTag> already matched the oid you suggested to use.3, I did change the <oid_index> which ended in a .5 to a .3 which allowed me to get some output (that's what you screenshot referenced as the oid-index). I can see graphs looking at jitter stats, but I can not see graph of basic rtt. Did you have any trouble seeing this info.
Debug for IPLSA data query
Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/cisco_saa.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.3' Index Count: 1
+ Index found at OID: 'iso.3.6.1.4.1.9.9.42.1.2.1.1.3.10' value: 'BB01PLAL-BB01DNV'
+ index_parse at OID: 'iso.3.6.1.4.1.9.9.42.1.2.1.1.3.10' results: '10'
+ Inserting index data for field 'rttIndex' [value='10']
+ Located input field 'rttMonCtrlAdminTag' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.3'
+ Found item [rttMonCtrlAdminTag='BB01PLAL-BB01DNV'] index: 10 [from value]
+ Located input field 'rttMonCtrlAdminRttType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.4'
+ Found item [rttMonCtrlAdminRttType='9'] index: 10 [from regexp value parse]
+ Located input field 'rttMonCtrlAdminThreshold' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.5'
+ Located input field 'rttMonCtrlAdminStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.1.1.9'
+ Found item [rttMonCtrlAdminStatus='1'] index: 10 [from regexp value parse]
+ Located input field 'rttMonLatestRttOperSense' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.10.1.2'
+ Found item [rttMonLatestRttOperSense='1'] index: 10 [from regexp value parse]
+ Located input field 'rttMonLatestJitterOperNumOfRTT' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.2.1.1'
+ Found item [rttMonLatestJitterOperNumOfRTT='20'] index: 10 [from value]
+ Located input field 'rttMonEchoAdminTargetPort' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.5'
+ Found item [rttMonEchoAdminTargetPort='16834'] index: 10 [from value]
+ Located input field 'rttMonEchoAdminPktDataRequestSize' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.3'
+ Found item [rttMonEchoAdminPktDataRequestSize='32'] index: 10 [from regexp value parse]
+ Located input field 'rttMonEchoAdminTargetAddressString' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.11'
+ Located input field 'rttMonEchoAdminURL' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.15'
+ Located input field 'rttMonLatestHTTPOperMessageBodyOctets' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.1.1.5'
+ Located input field 'rttMonLatestHTTPErrorSenseDescription' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.1.1.7'
+ Located input field 'rttMonEchoAdminCodecType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.27'
+ Located input field 'rttMonEchoAdminPrecision' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.2.2.1.37'
+ Located input field 'rttMonLatestJitterOperNTPState' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.42.1.5.2.1.51'
Graph debug of SAA Basic
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='BB01-PLALCASC - SAA Basic (BB01PLAL-BB01DNV)' \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='ms' \
--slope-mode \
--font TITLE:10:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:7:'LucidaSans oblique' \
DEF:a='/var/lib/cacti/rra/bb01-plalcasc_sumpsd_407.rrd':'rtt':AVERAGE \
LINE1:a#FF0000FF:'RTT Ave' \
GPRINTLAST:'Last\:%8.2lf%s' \
GPRINTMIN:'Min\:%8.2lf%s' \
GPRINTAVERAGE:'Ave\:%8.2lf%s' \
GPRINTMAX:'Max\:%8.2lf%s\n' \
COMMENT:'Type\: 9, Status\: 1, Count\: 20, Size\: 32B, Port\: 16834' \
HRULE:|query_rttMonCtrlAdminThreshold|#0000FFFF:'Threshold\: |query_rttMonCtrlAdminThreshold|.00'
RRDTool Says:
Thanks,
-
- Posts: 1
- Joined: Mon Jan 12, 2015 2:55 pm
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
I every one,
Thanks for the great information given here. I havent been succesfully yet.
I have imported the data querry and the graph templates but when I add it to a Host with SLA correctly configured I cant see any information:
I would appreciate your help to much
Thanks for the great information given here. I havent been succesfully yet.
I have imported the data querry and the graph templates but when I add it to a Host with SLA correctly configured I cant see any information:
I would appreciate your help to much
- Attachments
-
- empty graph
- IPSLAProblem.png (18.05 KiB) Viewed 6021 times
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
I have the same problem. Please help! (Cacti 0.8.8b)
Workaround:
From file cisco_saa.xml I delete:
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,16})$</oid_index_parse>
<index_order>rttIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<rttIndex>
<name>Index</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
</rttIndex>
and now everything works ok.
Workaround:
From file cisco_saa.xml I delete:
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,16})$</oid_index_parse>
<index_order>rttIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<rttIndex>
<name>Index</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
</rttIndex>
and now everything works ok.
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
Hello,
I know the last entry is a bit old, but i just found out these templates and i'm having issues with Basic SAA Graph for icmp echo in IOS-XR (ASR9006 and GSR 12406). I've followed all recommendations posted here but i'm still not getting graphs to show.
Any thoughts on this? Thanks!
I know the last entry is a bit old, but i just found out these templates and i'm having issues with Basic SAA Graph for icmp echo in IOS-XR (ASR9006 and GSR 12406). I've followed all recommendations posted here but i'm still not getting graphs to show.
Any thoughts on this? Thanks!
- Attachments
-
- empty graph and debug
- Capture.PNG (47.6 KiB) Viewed 4796 times
-
- Posts: 1
- Joined: Fri Jul 08, 2016 11:10 am
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
Hi,
here are an extension to have One-Way delay on UDP Jitter :
[img] [/img]
I do not have defined equivalent one using micro precision.
regards,
--
Fred
here are an extension to have One-Way delay on UDP Jitter :
[img] [/img]
I do not have defined equivalent one using micro precision.
regards,
--
Fred
- Attachments
-
- cisco_saa.xml
- (23.26 KiB) Downloaded 558 times
-
- cacti_data_query_cisco_ip_sla_statistics.xml
- (225.15 KiB) Downloaded 588 times
-
- Posts: 1
- Joined: Tue Nov 07, 2017 2:30 pm
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
Thank you for those templates!
Small nit to pick -- Fred's cisco_saa.xml file includes two XML stanzas defining rttMonLatestJitterOperNumOfRTT. The first defines that field with direction input, and the second for direction output. When I imported it into my shiny new Cacti installation on CentOS 7, the second definition overrode the first one. As an output field rather than an input field, it didn't get added to the host_snmp_query table. So when I created a graph from the "Cisco - SAA VoIP Score" template, the comment line didn't substitute in the value properly.
To work around the problem I renamed the second definition of rttMonLatestJitterOperNumOfRTT to rttMonLatestJitterOperNumOfRTTOut in cisco_saa.xml. I also changed rttMonLatestJitterOperNumOfRTT on line 648 of cacti_data_query_cisco_ip_sla_statistics.xml to rttMonLatestJitterOperNumOfRTTOut.
This bug probably slipped through because the second definition (as an output) was added to support the "SAA Jitter One-Way Delay Statistics" graph template, but only after the record was already added to the host_snmp_query table. So it didn't break anything for an existing Cacti instance. Only standing up a new instance exposes the bug.
Small nit to pick -- Fred's cisco_saa.xml file includes two XML stanzas defining rttMonLatestJitterOperNumOfRTT. The first defines that field with direction input, and the second for direction output. When I imported it into my shiny new Cacti installation on CentOS 7, the second definition overrode the first one. As an output field rather than an input field, it didn't get added to the host_snmp_query table. So when I created a graph from the "Cisco - SAA VoIP Score" template, the comment line didn't substitute in the value properly.
To work around the problem I renamed the second definition of rttMonLatestJitterOperNumOfRTT to rttMonLatestJitterOperNumOfRTTOut in cisco_saa.xml. I also changed rttMonLatestJitterOperNumOfRTT on line 648 of cacti_data_query_cisco_ip_sla_statistics.xml to rttMonLatestJitterOperNumOfRTTOut.
This bug probably slipped through because the second definition (as an output) was added to support the "SAA Jitter One-Way Delay Statistics" graph template, but only after the record was already added to the host_snmp_query table. So it didn't break anything for an existing Cacti instance. Only standing up a new instance exposes the bug.
Re: [XML] Cisco IP SLA templates (AKA RTR & SAA)
Hi All,
I have managed to isolate the issue was affecting the correct graph polling for IOS-XR devices. It was the rttMonCtrlAdminThreshold object which has different OID for previews cisco versions.
According the documentation: This object defines an administrative threshold limit. If the RTT operation time exceeds this limit and if the conditions specified in rttMonReactAdminThresholdType or rttMonHistoryAdminFilter are satisfied, a threshold is generated.
Below are attached my templates.
I have managed to isolate the issue was affecting the correct graph polling for IOS-XR devices. It was the rttMonCtrlAdminThreshold object which has different OID for previews cisco versions.
According the documentation: This object defines an administrative threshold limit. If the RTT operation time exceeds this limit and if the conditions specified in rttMonReactAdminThresholdType or rttMonHistoryAdminFilter are satisfied, a threshold is generated.
Below are attached my templates.
- Attachments
-
- cisco_saa_iosxr.xml
- (23.26 KiB) Downloaded 95 times
-
- cacti_data_query_cisco_ip_sla_statistics_iosxr.xml
- (225.25 KiB) Downloaded 91 times
Who is online
Users browsing this forum: No registered users and 1 guest