Format for Alcatel Lucen 77xx - SAP statistic

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dttung
Posts: 9
Joined: Mon Jun 25, 2012 1:24 am

Format for Alcatel Lucen 77xx - SAP statistic

Post by dttung »

Hi all,
I dont have template for SAP monitoring in Router Alcatel Lucent 7750 . But I have the format for it .
I hope , one day . There is a person write the template to get SAP traffic for this router .
Below is the format .

Every service has a Standard: 1.3.6.1.4.1.6527.3.1.2.4.3.6.1.
For example , we have a Service id = 32015541
Vlan id = 4041
IFindex = 170033152

=============================================================================

Ingress: (in profile OID ) 1.3.6.1.4.1.6527.3.1.2.4.3.6.1. 12 .32015541. 170033152. 4041
(out profile OID ) 14

==> Traffic input = traffic Ingress (in profile) + traffic Ingress (out profile)

Egress: (in profile OID ) 1.3.6.1.4.1.6527.3.1.2.4.3.6.1. 20
(out profile OID ) 22

==> Traffic output = traffic Egress (in profile) + traffic egress (out profile )
----------------------------------------------------------------------------------------------
Vlan Id: x + y*65.536
Svlan: x
Cvlan: y

Example : SAP:3/1/2.200.100
=> svlan =200
=> cvlan = 100
=> vlan id = 200 + 100*65536 =

P/s : I'm not good on developing . I hope one day , there is a template for SAP monitoring based cacti for Alcatel lucent
stefanbrudny
Cacti User
Posts: 130
Joined: Thu Jan 19, 2012 11:52 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by stefanbrudny »

Hello! I also love Alcatel support :-/

This is not very same as it is for QoS monitoring. But it works very well so feel free to ask questions:

http://forums.cacti.net/viewtopic.php?f ... it=alcatel

There is still some information within this post missing, but I have document in Polish describing the whole as I wanted this document to backup the installation.

Regards.
Jiby
Posts: 6
Joined: Fri Aug 17, 2012 7:56 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by Jiby »

Hi,
I have the same desire to graph SAP statistics, and have to say your "format" helped a lot to understand the whole thing !

Now, I got to create a SNMP Data Query in XML, it is parsed OK, finds all my SAPs, then little ways down the road when I try to graph any one of these datas, the RRD file doesn't get created at all, graph debug mode says it, ls in the rep confirms.
I've been around every debug Doc, and most of the data queries walkthrough, tried half a dozen times, and still ...

What I know :
  • The device IS on, is graphing correctly tons of other correct stuff
    This is script related, as any other data query works and graphs fine.
    I ran the poller for a whole cycle in debug log, didn't mention anything interesting at all
    The OIDs works
I had trouble finding a correct index, and i'm still not sure this one is right (tried a dozen times though) , I have "sapBaseInfoTable"

I'm quite a newbie in cacti and it's a little sad to see how fast this data query can drive crazy.
To anyone interested by this , contact me, i'd like to complete it or just understand what's wrong !

EDIT : It was "indeed" because of downed host detection, which was on "SNMP", now on "SNMP or Ping" it fails pinging but gets the rrd to update -_-'

Now I get full Nan in graphs ... Damn, so close
Attachments
test_OID.xml
XML SNMP query for ALU 7750
Doesn't work as such : query finds SAPs but problem with creating RRD file
(2.67 KiB) Downloaded 686 times
dttung
Posts: 9
Joined: Mon Jun 25, 2012 1:24 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by dttung »

Hi Jibi ;

Could you share cacti template with me to monitor bandwidth on SAP .
Contact me via mail : tungtel@gmail.com
stefanbrudny
Cacti User
Posts: 130
Joined: Thu Jan 19, 2012 11:52 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by stefanbrudny »

Hello!

basing on information above I've created working SAP monitoring infrastructure.

Here it is working XML:

Code: Select all

<interface>
        <name>Alcatel 7750SR SAP Statistics</name>
        <description>Queries a host for a list of monitorable SAP interfaces</description>
        <oid_index>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.1</oid_index>
        <oid_num_indexes>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.1</oid_num_indexes>
        <oid_index_parse>OID/REGEXP:^.{33}(.*)</oid_index_parse>
        <index_order>AlcatelIndex</index_order>
        <index_order_type>numeric</index_order_type>
        <index_title_format>|chosen_order_field|</index_title_format>
        <fields>
                <AlcatelIndex>
                        <name>SAP Interface Index</name>
                        <source>index</source>
                        <direction>input</direction>
                </AlcatelIndex>
                <sapPortId>
                        <name>Port ID</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.1</oid>
                </sapPortId>
                <sapType>
                        <name>SAP Type:
                        undefined (0),
                        null-star (1),
                        dot1q (2),
                        dot1q-preserve (3),
                        any (4)
                        </name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.4</oid>
                </sapType>
                <sapEncapValue>
                        <name>Encap value</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.2</oid>
                </sapEncapValue>
               <sapOperStatus>
                        <name>Status: up (1),
                        down (2),
                        ingressQosMismatch(3),
                        egressQosMismatch(4),
                        portMtuTooSmall(5),
                        svcAdminDown (6),
                        iesIfAdminDown (7)</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.7</oid>
                </sapOperStatus>
                <sapDescription>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.5</oid>
                </sapDescription>
<!--            <sapCustId>
                        <name>The Customer ID of the associated service</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.20</oid>
                </sapCustId>
                <sapEgressAggRateLimit>
                        <name>Maximum total rate of all egress queues for this SAP</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.35</oid>
                </sapEgressAggRateLimit>
-->
                <sapBaseStatsIngressQchipForwardedInProfOctets>
                        <name>Bytes In below CIR</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.6.1.12</oid>
                </sapBaseStatsIngressQchipForwardedInProfOctets>
                <sapBaseStatsIngressQchipForwardedOutProfOctets>
                        <name>Bytes In above CIR</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.6.1.14</oid>
                </sapBaseStatsIngressQchipForwardedOutProfOctets>
                <sapBaseStatsEgressQchipForwardedInProfOctets>
                        <name>Bytes Out below CIR</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.6.1.20</oid>
                </sapBaseStatsEgressQchipForwardedInProfOctets>
                <sapBaseStatsEgressQchipForwardedOutProfOctets>
                        <name>Bytes Out above CIR</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.6.1.22</oid>
                </sapBaseStatsEgressQchipForwardedOutProfOctets>
                <sapBaseStatsIngressPchipDroppedPackets>
                        <name>Packet Loss</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.6527.3.1.2.4.3.6.1.1</oid>
                </sapBaseStatsIngressPchipDroppedPackets>
        </fields>
</interface>
As you can see it has a commented section for SapCustId and sapEgressAggRateLimit. It is because the parsing rule is not perfect:

Code: Select all

<oid_index_parse>OID/REGEXP:^.{33}(.*)</oid_index_parse>
It simply cuts the first 33 chars and leaves the rest as an index. As OIDs for SapCustId and sapEgressAggRateLimit are shorter, their index is not in line with the rest, thus Cacti cannot match values to the rest. I would like to see better cut here by someone.

I won't share templates because they include many custom names and renaming it could break a thing, unfortunately (I have already dozens of custom templates used by ~20 people).

To create graphs you have to:
* add data query - data input method should be "get snmp data (indexed)"
* add data template - I use for its name:

Code: Select all

|host_description| - PortID: |query_sapPortId|; SAP Type: |query_sapType|; Encap Value: |query_sapEncapValue|; Description: |query_sapDescription|
* create graph template using newly acquired data sources - I use the same name as above
* associate graph template to the data query.

HINT: monitoring SAP is heavy for Cacti - we do have thousands of SAPs and would like to monitor some of them. I use autom8 to select which SAPs to draw - it is easy to use sapPortID or any other argument for it.

Good luck.
Attachments
Example of autom8 rule for creating graphs only on some interfaces.
Example of autom8 rule for creating graphs only on some interfaces.
cacti.png (29.14 KiB) Viewed 9554 times
Graph name is derived from the query. Description is missing simply because it is not set on interface.
Graph name is derived from the query. Description is missing simply because it is not set on interface.
cacti2.png (103.52 KiB) Viewed 9554 times
MinaLolo
Posts: 2
Joined: Wed May 20, 2020 4:57 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by MinaLolo »

Hello,

Can anyone share SAP monitoring Template for Alcatel SROS
it is very urgent!!

thanks a lot
stefanbrudny
Cacti User
Posts: 130
Joined: Thu Jan 19, 2012 11:52 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by stefanbrudny »

Please use what is provided above.

If it doesn't render successful result, make sure the individual oids produce expected results.

Sorry to inform, but templates are likely needed for each version of the Alcatel and depend heavily even on system configuration.

And I do not work with Alcatels 7750 or 7210 anymore :-(

Good luck.
MinaLolo
Posts: 2
Joined: Wed May 20, 2020 4:57 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by MinaLolo »

I used the XML file to create Data source and it is OK.
I also created Data template.
I only need the graph template to be associated to that as the indexes are Counter64 and i noticed real values are not maching the values on the graph i created.

If you have the graph template you used in your screenshot, that will be helpful for me.

thank you.
stefanbrudny
Cacti User
Posts: 130
Joined: Thu Jan 19, 2012 11:52 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by stefanbrudny »

Sorry, I don't have it. Anyhow, this is rather simple task: take any standard graph template, attach the data sources to graph fields and adjust the presentation, if needed. Take in out bits 64 counters as a good start.
Good luck.
shinvector
Posts: 3
Joined: Sat Jul 04, 2020 11:37 am

Re: Format for Alcatel Lucen 77xx - SAP statistic

Post by shinvector »

I put a post for those people who just need to poll an interface in a VPRN.
No special template is required.
[SOLVED] NOKIA 7750-SR VPRN Interfaces SNMP Polling
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests