Ad Widget

Collapse

Help with Trigger for SNMP item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d0v1k
    Junior Member
    • Nov 2019
    • 2

    #1

    Help with Trigger for SNMP item

    I have an SNMP item like below, i want to create a trigger for it. The output STRING is "Connected" or "Not Connected"

    How can i create a trigger to send notification when its Not Connected and recovery notification when connected?

    Name: Service Provider SMPP
    Type: SNMPv2 agent
    SNMP OID: 1.3.6.1.4.1.33355.1.1.3.6.3
    SNMP community: {$SNMP_COMMUNITY}
  • IPTC
    Junior Member
    • Aug 2019
    • 9

    #2
    Hi d0v1k,

    you can create a trigger for that, as for the send notification you'll need to work with "actions"

    For the trigger you can have an expression similar to this:

    Problem expression: {Service Provider SMPP: "key".last()}=Not Connected

    Recovery expression: {Service Provider SMPP: "key".last()}=Connected


    Now for the notification part, it can depend, do you want to recieve an email or a text message? If you do you need to work with actions.

    In actions you choose the trigger, then you switch to Operations submenu, there you add a "New" Operation, in that menu you choose the users to recieve the notification or in case you want an email/text message you go to the "Send only to" option and choose between the options.

    For email, text message and Jabber you need to define those in Administration->Media Types


    Hope that helps you out.

    Comment


    • d0v1k
      d0v1k commented
      Editing a comment
      Sorry for the late reply.

      This is the error i get when i add the trigger:

      Incorrect trigger expression. Check expression part starting from "{Ozeki: ozeki.SMPPUser.last()}=Not Connected".
Working...