Ad Widget

Collapse

Triggers on SNMPTraps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaven
    Junior Member
    • Oct 2014
    • 3

    #1

    Triggers on SNMPTraps

    Hi,

    I installed Zabbix server v2.4.0 (revision 48953) on Centos 6.5. I configured it to receive traps. Then I tried to configure a trigger on a host and it worked properly. The problem is when I tried to use logical & (and) in trigger condition it do not allow to update it and showed the following error:

    Incorrect trigger expression. Check expression part starting from " & {IS:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.1.0 type=4 value=STRING: "sgcFirewallAlarm")}=1".

    The condition which caused the error is the following.

    {IS:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 3)}=1 & {IS:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.1.0 type=4 value=STRING: "sgcFirewallAlarm")}=1

    The first and second parts of condition separately worked properly, but I cannot combine them using & operator. Can you please suggest how to correctly use logical operators?

    And the second question.

    Does anybody know if it is possible to maintain states of the host with traps?
    As I understand every time Zabbix receive a trap it change host's status cyclically (from OK to PROBLEM then when receive subsequent trap, from PROBLEM to OK). I need Zabbix to change host status when it receive trap that meet predefined condition. And recover only when it receive another trap that meet some other condition. The other traps coming from the device should be stored in history but not lead to status change.
    The above mentioned trigger conditions is an example of status change to PROBLEM.
    Is it possible to implement such logic in Zabbix?

    Best Regards,
    Zaven.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Syntax for trigger expressions has changed in Zabbix 2.4.
    See: ZBXNEXT-1782 or What's new in Zabbix 2.4.0

    As for your second question, see trigger hysteresis.

    Comment

    • zaven
      Junior Member
      • Oct 2014
      • 3

      #3
      Thank you very much, the problems solved.

      Zaven.

      Comment

      Working...