Ad Widget

Collapse

Combining 2 SNMP oid for a single value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leon.kofman@gmail.com
    Junior Member
    • Sep 2008
    • 10

    #1

    Combining 2 SNMP oid for a single value

    Does anyone know how to concatenate 2 SNMP odi values into a single string?

    For Example:

    OID1 returns value 1234
    OID2 returns value 5678

    Is there a way to have an item in Zabix to query both at the same time and return "12345678"?

    The reason I am asking, is because when monitoring NetApp for disk/network throughput, those values are broken in 2 32bit number, Most significant 32 bits, and lease significant 32 bits, so to get the full number, I have to concatenate the 2 into a single number.

    I am on zabbix 1.6, running on Ubuntu with net-snmp

    Thanks for your Help!
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    You'll need to implement an external script to do this and there will be a lag issue. I don't have the forum link off hand, but there has been other discussion of this, usually along the lines of aggregation.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    Working...