Ad Widget

Collapse

JSON from SNMP in Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tiguy
    Junior Member
    • Oct 2019
    • 1

    #1

    JSON from SNMP in Discovery

    Hi there

    Im trying to figure a way to create either Host or Item prototype from a JSON received from an SNMP discovery. The company doesnt provide a mib file so we receive the value in HEX format but then pass it in a javascript pre processing to looks like that.

    Code:
    {"Rooms": [
    {"RoomName": "Room 1", "IP": "x.x.x.x"},
    {"RoomName": "Room 2", "IP": "x.x.x.x"},
    {"RoomName": "Room 3", "IP": "x.x.x.x"}
    ]
    }
    So whats would the best way to use the json retreived from the discovery rule to create either items or host? We did similar with HTTP Discovery and passing info to create items but with SNMP it doesnt seems possible cause we always get "Invalid SNMP OID: pairs of macro and OID are expected."

    Any help would be more than welcome
    Last edited by Tiguy; 25-10-2019, 21:50.
Working...