Re: doubt file xml for monitoring gepon with OID weird
spiderslack <[email protected]> Fri, 13 Dec 2013 16:56:35 -0300
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, and thanks for response
I create the index multi-dimensional as bellow
<oid_index>.1.3.6.1.4.1.10428.8.1.1.102.1.1.3</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,9}\.[0-9]{1,9}\.[0-9]{1,9}\.[0-9]{1,9}\.[0-9]{1,9}\.[0-9]{1,9}\.[0-9]{1,9})$</oid_index_parse>
works.
however I am having trouble collecting the transmitted octects. The
Index OID is
root@apolo:/usr/share/cacti/resource/snmp_queries# snmpwalk -c public -v
2c 172.16.30.11 *.1.3.6.1.4.1.10428.8.1.1.102.1.1.3*
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.1.184.38.212.2.8.96 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.1.184.38.212.2.25.32 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.1.184.38.212.2.25.88 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.1.184.38.212.2.25.120 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.1.184.38.212.2.26.56 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.2.184.38.212.2.25.48 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.2.184.38.212.2.25.232 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.8.24 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.8.32 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.25.112 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.25.128 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.25.224 = STRING:
"FK-ONU-20L"
*iso.3.6.1.4.1.10428.8.1.1.102.1.1.3*.3.184.38.212.2.26.24 = STRING:
"FK-ONU-20L"
root@apolo:/usr/share/cacti/resource/snmp_queries#
However the snmp table of statistics is
*.1.3.6.1.4.1.10428.8.1.1.101.1.1.4*, and first OID index is
*1.184.38.212.2.8.96*, however the OID index is 1.184.38.212.2.8.96.1, I
have one more part which identical values of upstream, downstream etc.
OID Index table OnuInformation: 1.184.38.212.2.8.96
OID Index table OnuStatistics: 1.184.38.212.2.8.96.1
1.184.38.212.2.8.96.2
1.184.38.212.2.8.96.3
1.184.38.212.2.8.96.4
1.184.38.212.2.8.96.5
1.184.38.212.2.8.96.6
root@apolo:/usr/share/cacti/resource/snmp_queries# snmpwalk -c public -v
2c 172.16.30.11 .1.3.6.1.4.1.10428.8.1.1.101.1.1.4
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.8.96.1 = Counter64:
22148296
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.8.96.2 = Counter64:
42364552
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.8.96.3 = Counter64:
46186050
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.*1.184.38.212.2.8.96.4 = Counter64:
3306
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.8.96.5 = Counter64: 0
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.8.96.6 = Counter64: 0
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.25.32.1 =
Counter64: 470011622
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.25.32.2 =
Counter64: 5131388740
*iso.3.6.1.4.1.10428.8.1.1.101.1.1.4*.1.184.38.212.2.25.32.3 =
Counter64: 415345492
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.32.4 = Counter64:
5120211639
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.32.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.32.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.1 = Counter64:
1036338842
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.2 = Counter64:
6071751532
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.3 = Counter64:
732420954
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.4 = Counter64:
1702863131
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.88.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.1 = Counter64:
117010880
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.2 = Counter64:
4337733237
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.3 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.4 = Counter64:
12021885
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.25.120.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.1 = Counter64: 320
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.2 = Counter64:
4295011363
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.3 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.4 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.1.184.38.212.2.26.56.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.1 = Counter64:
293803994
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.2 = Counter64:
1230599274
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.3 = Counter64:
231993242
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.4 = Counter64:
1219452280
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.48.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.1 = Counter64:
7680628052
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.2 = Counter64:
6376711788
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.3 = Counter64:
24365900327
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.4 = Counter64:
21394855370
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.2.184.38.212.2.25.232.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.1 = Counter64:
1277248292
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.2 = Counter64:
247147264
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.3 = Counter64:
1215879172
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.4 = Counter64:
238537534
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.24.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.1 = Counter64:
44410309
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.2 = Counter64:
4303302796
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.3 = Counter64:
10415272
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.4 = Counter64:
3604397
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.8.32.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.1 = Counter64: 256
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.2 = Counter64:
38671207
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.3 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.4 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.112.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.1 = Counter64:
1980565779
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.2 = Counter64:
826059473
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.3 = Counter64:
4814344083
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.4 = Counter64:
758602628
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.128.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.1 = Counter64:
6675289319
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.2 = Counter64:
7382646985
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.3 = Counter64:
16408273470
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.4 = Counter64:
18895803758
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.25.224.6 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.1 = Counter64:
22593288201
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.2 = Counter64:
6313022641
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.3 = Counter64:
22202489327
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.4 = Counter64:
1962849731
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.5 = Counter64: 0
iso.3.6.1.4.1.10428.8.1.1.101.1.1.4.3.184.38.212.2.26.24.6 = Counter64: 0
root@apolo:/usr/share/cacti/resource/snmp_queries#
You can create a variable containing the index value in the xml file?
for example would create a variable called $OID that would contain the
index and then only add value 1-6. Is this possible?
<fkc16OnuPortStatisticsOctetTransfer>
<name>Bytes transferidos</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.10428.8.1.1.101.1.1.4.*$OID*.1</oid>
</fkc16OnuPortStatisticsOctetTransfer>
Thanks
Regards.
On 12/06/2013 04:44 PM, Gandalf wrote:
> 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
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk