Ad Widget

Collapse

Convert a SNMP OID index into text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • augustogomez
    Junior Member
    • Jun 2020
    • 5

    #1

    Convert a SNMP OID index into text

    I am new to zabbix.

    Building a template to monitor a SGI UV found that some of the SNMP tables use the element name as indexes. LLD discovery works fine, but the problem is that when presenting the retrieved data with an item prototype is not human understandable.

    The SNMP OID in the discovery rule looks like this

    discover[{#POWERSTATE},1.3.6.1.4.1.59.3.800.20.100.1.1,{#PO WERSTATUS},1.3.6.1.4.1.59.3.800.20.100.1.2]

    And the item prototype name is:

    {#SNMPINDEX}: Power State

    Where {#SNMPINDEX} needs to be translated to the actual element name in order to be "human" understandable.

    So the actual retrieve data looks now like this:
    12.85.86.51.45.48.48.48.48.48.50.55.49.10.114.48.4 8.49.105.48.49.98.48.49: Power State

    And actually it need to looks like this:

    UV3-0000270 r001i01b01: Power State

    The elements of the index as I have decipher them are something like [length].[ascii-char].[ascii-char].[ascii-char]... and so on. Is evident then that if the number on the OID index is not ascii printable it represents the length of the following character string.

    Any suggestions on how to accomplish this translation would be very appreciated.

  • aleggo
    Junior Member
    • Nov 2020
    • 4

    #2
    Your issue could be related to a Zabbix bug that was recently reported.

    It is not converting special characters correctly.

    Comment

    Working...