Skip to content

snmpindex improvment #enhancement #1163

@wanedoo

Description

@wanedoo

Hi!

We are ingesting several objects from MIBs that uses an snmpindex.
Today we are only successfully of differentiate the data by enabling the " metricsIndexingEnabled: true" command, witch gives us the mibIndex = (value in octal format ) field.

So its a bit challenging to translate this to "human readable" values for our end-users, as the real "snmpindex" value format can be in different formats.

examples.

https://github.com/cisco/cisco-mibs/blob/main/v2/AIRESPACE-WIRELESS-MIB.my

We poll this specific object in above MIB, bsnAPIfSNRLevel and the results returns as OID... = SignalToNoice Value

where snmpindex, slotvalue och coverageindex is in octal format. The translated octal values exsist in other objects to be polled, showned in the INDEX description bellow. In Splunk I can easy translate the octal to HEX mac-address, etc. But the challange is when to know if it is HEX, octal, decimal etc.

bsnAPIfStationSNRCoverageInfoEntry OBJECT-TYPE
SYNTAX BsnAPIfStationSNRCoverageInfoEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry (conceptual row) in the Table.
Entries in this MIB are indexed by bsnAPDot3MacAddress,
bsnAPIfSlotId"
INDEX {
bsnAPDot3MacAddress,
bsnAPIfSlotId,
bsnAPIfStationSNRCoverageIndex
}
::= { bsnAPIfStationSNRCoverageInfoTable 1 }

BsnAPIfStationSNRCoverageInfoEntry ::= SEQUENCE {
bsnAPIfStationSNRCoverageIndex Integer32,
bsnAPIfSNRLevel Integer32,
bsnAPIfStationCountOnSNR Integer32
}

bsnAPIfStationSNRCoverageIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"SNR Coverage Index on AP"
::= { bsnAPIfStationSNRCoverageInfoEntry 1 }

bsnAPIfSNRLevel OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"SNR Level"
::= { bsnAPIfStationSNRCoverageInfoEntry 2 }

So my enhancment request would be to get the ability to translate this within sc4snmp,
So we can enrich the data in splunk with the actuall snmpindex value instead of mibIndex field with octal value.

Zabbix have this feature, but not sure how they do it. Here is an zabbix template example.

item_prototypes:
- uuid: 419f589f041243d9ac2212cea89b9b4f
name: 'ChannelUtilization {#APNAME} 5GHz'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.14179.2.2.13.1.3.{#SNMPINDEX}.1'
key: 'bsnAPIfLoadChannelUtilization-5ghz-[{#APNAME}]'
delay: 15m
units: '%'
description: 'AIRESPACE-WIRELESS-MIB::bsnAPIfLoadChannelUtilization for 5GHz'
tags:
- tag: component
value: 'access point'

best regards,
alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions