Ad Widget

Collapse

Zabbix prototype discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skipzoid
    Junior Member
    • Jul 2019
    • 20

    #1

    Zabbix prototype discovery

    Hello, Sorry if this is the wrong area;

    I have a mains distrobution unit that exposes its status via SNMP, so its possible to get values such as which outputs are on, fuse status, power load etc.

    It also has physical GPI's and GPO's which can be set from a status change of via SNMP , they too can be polled to see if they are active etc.

    I have setup an item prototype to discover the number of outputs , 1.3.6.1.4.1.6853.2.2.1.4.{#SNMPINDEX}

    this gives me 1.3.6.1.4.1.6853.2.2.1.4.1 through to 12 and is working as expected.

    in the setup page for the device each of these outputs can be named.

    so I have another prototype to gather the names, 1.3.6.1.4.1.6853.2.2.1.4.{#SNMPINDEX}

    and that gives me 1.3.6.1.4.1.6853.2.2.1.4.1 through 24, which is fine as the GPO's are named GPO1 through 12

    The bit I'm having problem with is that the index value of the phisical output 1 is 1 but the index of its name is 13 because the GPO's come before the names of the actual outputs.

    So I need to offset the index by 12 to gather the right name with the right physical output, I've tried things like 1.3.6.1.4.1.6853.2.2.1.4.{#SNMPINDEX+12} but this didnt work.

    I'm sure theres a way to do this, could someone please suggest a way to go about this please.

    thanks.





Working...