Ad Widget

Collapse

Action + SNMPVALUE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ceinmart
    Junior Member
    • Nov 2012
    • 28

    #1

    Action + SNMPVALUE

    Hi,

    Zabbix 2.0.9.

    I have an Informix database template where work with SNMP and use the discovery to found all instance at the server.

    Now I'm configuring some action and my problem is how get the {#SNMPVALUE} used by the discovery, where means the INFORMIX SERVER NAME . (SNMPVALUE = APPLICATION_MIB__applName)

    I need this information at the subject of a message sent by the action.
    Since I can have more than one instance by server, I need to be specific at the alert message.

    They don't recognize the {#SNMPVALUE} macro... how workaround?

    And I will need this information to execute a remote command too!!!
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    What about creating a UserParameter (eventually on your zabbix server) which just returns the param it gets passed as a result value?

    Comment

    • ceinmart
      Junior Member
      • Nov 2012
      • 28

      #3
      Originally posted by steveboyson
      What about creating a UserParameter (eventually on your zabbix server) which just returns the param it gets passed as a result value?
      Hi Steve,

      I can't, actually I use this SNMPVALUE as parameter into a UserParameter command... so...

      I can have 2 or 3 database instances at the same server, this is detected with the discovery of the template... I need put the database information into the action over this same scope.... what database was alarmed.

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4
        UserParameter=echo[*],/bin/echo $1

        item in zabbix:
        echo[{$SNMPVALUE}]

        Comment

        • ceinmart
          Junior Member
          • Nov 2012
          • 28

          #5
          Hi Steve,

          Thanks! I will try this solution.

          Comment

          Working...