Ad Widget

Collapse

Perform Logic on Integer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Evan.Anderson
    Member
    • Jun 2009
    • 42

    #1

    Perform Logic on Integer?

    I'm using Zabbix to monitor my network hardware. I'm using it to get these details off my switches.

    Interface Description
    Interface Speed
    Interface Duplex (logic needed) INTEGER
    (e.g. 1 = "Half", 2 = "Full", 3 = "Disagree", 4 = "Auto")
    Interface Admin Status (logic needed) INTEGER
    Interface Operational Status (logic needed) INTEGER
    Interface Switchport Vlan Access
    Interface Mac of Device (logic needed)
    Interface IP of Device (logic needed)

    What I'd like to be able to do is perform a logical operation on the value returned and store it as the correct string. (e.g. If SNMPv2-SMI::enterprises.9.5.1.4.1.1.10.1.3 = 2 then Item = "Full")
    And then when I view the item in monitoring/overview, I would like to see Full. Is this possible? How do I do it?
    Last edited by Evan.Anderson; 24-07-2009, 19:44. Reason: Question Answered
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    You can use a value map:
    In Administration/General/Value mapping, create a value map
    with:
    1 => Half
    2 => Full
    ...

    And in Item configuration, set that map as "Show value" parameter.

    Your parameter will still be stored as an integer but will be displayed with corresponding string Monitoring pages.

    Hope this helps

    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • Evan.Anderson
      Member
      • Jun 2009
      • 42

      #3
      Question Answered Perfectly

      Originally posted by alixen
      You can use a value map:
      In Administration/General/Value mapping, create a value map
      with:
      1 => Half
      2 => Full
      ...

      And in Item configuration, set that map as "Show value" parameter.

      Your parameter will still be stored as an integer but will be displayed with corresponding string Monitoring pages.

      Hope this helps

      Alixen
      Thanks, I'm still new to Zabbix, and appreciate your help. Only thing is I found it under Configuration/General/Value. In case anyone else needs help on this, don't want them to get mislead.

      Comment

      Working...