Ad Widget

Collapse

{SNMPINDEX} VALUE manipulation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • szenrobi
    Junior Member
    • Jan 2011
    • 13

    #1

    {SNMPINDEX} VALUE manipulation

    Hi there.

    I have an equipment with 19 slot. The first 4 is power and control card.
    The rest is called IO ports.

    The low level discovery start to number from 1 to 19.

    I can use {#SNMPVALUE} and {#SNMPINDEX} macros in Item prototype.

    In the ITEM name i would like to change the name, like this for example:
    {#SNMPINDEX}=4

    Nameescription IO{#SNMPINDEX}+4 , but the +4 is simply displaying as IO4+4.

    How can I solve it to see the result IO8?

    Thanks.
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    Unfortunately, you can't do what you're attempting to do. The only way to do it would be if you wrote a custom script that did the discovery itself and then injected a new LLD macro that had the values you wanted. Then you could use them like you want.

    Comment

    Working...