Re: doubt file xml for monitoring gepon with OID weird

Gandalf <[email protected]> Fri, 06 Dec 2013 20:44:05 +0100
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
There's no need for the index being sequential nor one-dimensional. Even strings
as index will work. This way, you can consider the last 2 or three tupels of an
OID as a valid index for a Cacti Data Query as well. There have been examples in
the forum; you may search for "multi-dimensional" and "data query" to find those
R.

On 06.12.2013 20:18, spiderslack wrote:
> Hi all.
> 
> I have the environment with plataform GEPON. I'm monitoring the 
> fck16OltStatisticsOctectTransfer. The MIB presents the follow structure:
> 
> root@apolo:~# snmpwalk -v 2c -c public 172.16.30.11 
> .1.3.6.1.4.1.10428.8.1.1.10.2.1.3
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.1 = Counter64: 284220717437
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.2 = Counter64: 23531792155
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.3 = Counter64: 5517496097
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.4 = Counter64: 24342499077
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.1 = Counter64: 72413643189
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.2 = Counter64: 3325324183
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.3 = Counter64: 3707446312
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.4 = Counter64: 3883776196
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.1 = Counter64: 311420861455
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.2 = Counter64: 5248378849
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.3 = Counter64: 14856244562
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.4 = Counter64: 5522523304
> root@apolo:~#
> 
> OID: .1.3.6.1.4.1.10428.8.1.1.10.2.1.3 = fck16OltStatisticsOctectTransfer
> 
> And exist the OID define the type port how follow values with OID 
> .1.3.6.1.4.1.10428.8.1.1.10.2.1.2
> 
> 1 - Upstream Epon port
> 2 - Downstream Epon Port
> 3 - Upstream CNI port
> 4 - Downstream CNI port
> 
> And like collect the for example OctectTransfer with follow OID
> .1.3.6.1.4.1.10428.8.1.1.10.2.1.3
> 
> root@apolo:~# snmpwalk -v 2c -c public 172.16.30.11 
> .1.3.6.1.4.1.10428.8.1.1.10.2.1.3
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.1 = Counter64: 284653899960
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.2 = Counter64: 23673505337
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.3 = Counter64: 5528603820
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.1.4 = Counter64: 24487026404
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.1 = Counter64: 72558799653
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.2 = Counter64: 3344769982
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.3 = Counter64: 3726903125
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.2.4 = Counter64: 3904327643
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.1 = Counter64: 312012362294
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.2 = Counter64: 5274874408
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.3 = Counter64: 14963528352
> iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.3.4 = Counter64: 5549895773
> root@apolo:~#
> 
> The Index OID is iso.3.6.1.4.1.10428.8.1.1.10.2.1.3.INDEX.[123]
> 
> The Index is present the penultimate character. The Index is present the 
> penultimate character. therefore do not know how to create the file xml 
> with the index. because in other cases, such as "hrStorage", index and 
> always sequential and always at the last position.
> 
> my file xml, i tried to create. The OID utilized is the follow OID fkc16Olt.
> 
> <interface>
>          <name>Get GEPON Interfaces Statistics</name>
>          <description>Queries a statistics for interfaces CNI e PON in 
> plataform GEPON Furukawa FKC16</description>
> <oid_index>.1.3.6.1.4.1.10428.8.1.1.9.1.2.1.1</oid_index>
> <oid_num_indexes>.1.3.6.1.4.1.10428.8.1.1.10.1</oid_num_indexes>
> <index_order>fkc16OltInformationIndex</index_order>
>          <index_order_type>numeric</index_order_type>
> 
>          <fields>
>                  <fkc16OltInformationIndex>
>                          <name>Index</name>
>                          <method>walk</method>
>                          <source>value</source>
>                          <direction>input</direction>
> <oid>.1.3.6.1.4.1.10428.8.1.1.9.1.2.1.1</oid>
>                  </fkc16OltInformationIndex>
>                  <fkc16OltPortStatisticsOctetTransfer>
>                          <name>Bytes transferidos</name>
>                          <method>walk</method>
>                          <source>value</source>
>                          <direction>output</direction>
> <oid>.1.3.6.1.4.1.10428.8.1.1.10.2.1.3</oid>
>                  </fkc16OltPortStatisticsOctetTransfer>
>                  <fkc16OltPortStatisticsTotalFrameTransfer>
>                          <name>Total Frame transferidos</name>
>                          <method>walk</method>
>                          <source>value</source>
>                          <direction>output</direction>
> <oid>.1.3.6.1.4.1.10428.8.1.1.10.2.1.4</oid>
>                  </fkc16OltPortStatisticsTotalFrameTransfer>
> </interface>
> 
> 
> Any idea?
> 
> Att.
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK 
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk