Ad Widget

Collapse

Problem with actions and conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antani
    Member
    • Apr 2008
    • 50

    #1

    Problem with actions and conditions

    Hello. I wish to create four conditions in order to create an action:
    a) Trigger description is like "Eventlog Application Error"
    b) Trigger description is like "Eventlog System Error"
    c) Trigger description is not like "BE"
    d) Trigger severity >= "High"

    If i add conditions in this order i get
    (a or b or d) and (c)

    But the correct logic should be
    (a or b) and (c) and (d)

    How can i do that?
    Last edited by antani; 05-11-2008, 15:50.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    looking at the condition builder, i'm puzzled how complex expression building is supposed to work.
    item grouping seems to be quite random (from user perspective ), boolean expressions can be either all OR, or all AND, but AND/OR also looks quite random.
    it looks like some sort of expression editor is missing, which could be graphical, but for the first incarnation it could also be simple textfield, where expression would be written manually, for example :
    (A and B and D) or (C and E)
    Zabbix 3.0 Network Monitoring book

    Comment

    • antani
      Member
      • Apr 2008
      • 50

      #3
      You can add a checkbox for "(", one for ")" and a list for "AND | OR" in creating a condition.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        Originally posted by antani
        You can add a checkbox for "(", one for ")" and a list for "AND | OR" in creating a condition.
        hmm. i don't see any checkboxes for parenthesis, and calculation type dropdown affects the existing expression.

        also, that wouldn't help any with editing an existing expression, right ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • antani
          Member
          • Apr 2008
          • 50

          #5
          Originally posted by richlv
          hmm. i don't see any checkboxes for parenthesis...
          With you I meant "zabbix developer"

          Comment

          • xs-
            Senior Member
            Zabbix Certified Specialist
            • Dec 2007
            • 393

            #6
            Agreed, the condition building is dodgy at best using AND/OR setting.
            It would be nice to have this logic redesigned a bit to allow more specific relations between conditions.

            Comment

            • bashman
              Senior Member
              • Dec 2009
              • 432

              #7
              Originally posted by antani
              a) Trigger description is like "Eventlog Application Error"
              b) Trigger description is like "Eventlog System Error"
              c) Trigger description is not like "BE"
              It seems that Trigger description refers to trigger comments field, not to trigger name field.

              978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

              Comment

              • richlv
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2005
                • 3112

                #8
                Originally posted by bashman
                It seems that Trigger description refers to trigger comments field, not to trigger name field.

                http://www.zabbix.com/forum/showpost...68&postcount=5
                that seemed to work fine for 'description like' conditions - but if you can reliably reproduce the problem, please report it on the forum
                Zabbix 3.0 Network Monitoring book

                Comment

                • bashman
                  Senior Member
                  • Dec 2009
                  • 432

                  #9
                  Yeah, I can reproduce it.

                  These are my conditions to alert tomcat admins:

                  Code:
                  Trigger value = "PROBLEM"
                  Trigger severity >= "High"
                  Trigger description not like "Inactive Zabbix Agent"
                  Host group = "Tomcat-Servers"
                  This is my trigger:

                  Code:
                  Name = "Inactive Zabbix Agent"
                  Expression = "{Tomcat-Servers:agent.ping.nodata(600)}=1"
                  Severity = "High"
                  Comments = ""
                  I don't want to alert tomcat admins about zabbix agent problems, only to zabbix admins, so there is another action for zabbix admins.

                  The problem was that both got the alerts about the zabbix agents, but introducing this comment to my trigger the problem was solved. Only the zabbix admins got the alerts.

                  Code:
                  Comments = "Inactive Zabbix Agent"
                  Can you reproduce the problem?
                  978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                  Comment

                  • richlv
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2005
                    • 3112

                    #10
                    hmm, not really. adding such a condition prevents messages from being sent for me. there must be something else going on
                    Zabbix 3.0 Network Monitoring book

                    Comment

                    Working...