Ad Widget

Collapse

Fake alerts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TShepitko
    Junior Member
    • Feb 2017
    • 8

    #1

    Fake alerts

    Hi,

    I am receiving fake alerts from Zabbix that there is a problem, but actually trigger in OK state. What can cause this issue?
  • Mechanix
    Member
    • Jan 2017
    • 92

    #2
    Please post your trigger configuration.

    Comment

    • TShepitko
      Junior Member
      • Feb 2017
      • 8

      #3
      Code:
      {host:proc.num[voipmonitor].min(#3)}<1

      Comment

      • Mechanix
        Member
        • Jan 2017
        • 92

        #4
        Originally posted by TShepitko
        Code:
        {host:proc.num[voipmonitor].min(#3)}<1
        OK, so the triggers fires if the value of voipmonitor is <1 after 3 cycles. What is the normal state/value of the item?

        You should consider "trigger hysterisis" to avoid false/flapping triggers

        Zabbix trigger expressions provide an incredibly flexible way of defining problem conditions. If you can express your problem using plain English or any other human language, there is a great chance it could be represented using triggers. I’ve noticed that even experienced Zabbix users are not always aware of the true power of triggers. The […]

        Comment

        • TShepitko
          Junior Member
          • Feb 2017
          • 8

          #5
          You didn't understand me. My trigger is not flapping from PROBLEM to OK state back and forth. Trigger is in OK state without flapping for the last 24 hours, but I am still receiving notifications every one hour.
          Attached Files

          Comment

          • Mechanix
            Member
            • Jan 2017
            • 92

            #6
            What value do you see for that item in "Monitoring -> Latest Data"?

            Comment

            • TShepitko
              Junior Member
              • Feb 2017
              • 8

              #7
              The value is one (number of running voipmonitor processes). I suspect that I am receiving notifications every one hour because zabbix-server think that trigger in PROBLEM state (it is how escalation works in Zabbix), but actually at the server and at web panel I see trigger in OK state. So I do not understand where is the problem
              Attached Files

              Comment

              • allexpetrov
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • May 2017
                • 361

                #8
                Could you show the Action of that trigger, please ?

                Comment

                • TShepitko
                  Junior Member
                  • Feb 2017
                  • 8

                  #9
                  zabbix=> select actionid from actions where name='Linux admins other hosts';
                  actionid
                  ----------
                  64
                  (1 строка)

                  zabbix=> select eventsource from actions where name='Linux admins other hosts';
                  eventsource
                  -------------
                  0
                  (1 строка)

                  zabbix=> select evaltype from actions where name='Linux admins other hosts';
                  evaltype
                  ----------
                  3
                  (1 строка)

                  zabbix=> select status from actions where name='Linux admins other hosts';
                  status
                  --------
                  0
                  (1 строка)

                  zabbix=> select esc_period from actions where name='Linux admins other hosts';
                  esc_period
                  ------------
                  3600
                  (1 строка)

                  zabbix=> select def_shortdata from actions where name='Linux admins other hosts';
                  def_shortdata
                  ----------------------------------
                  {TRIGGER.STATUS}: {TRIGGER.NAME}
                  (1 строка)

                  zabbix=> select def_longdata from actions where name='Linux admins other hosts';
                  def_longdata
                  --------------------------------------------------------
                  Trigger: {TRIGGER.NAME}\r +
                  Trigger status: {TRIGGER.STATUS}\r +
                  Trigger severity: {TRIGGER.SEVERITY}\r +
                  Trigger URL: {TRIGGER.URL}\r +
                  Action name: Linux admins other hosts\r +
                  \r +
                  {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
                  (1 строка)

                  zabbix=> select recovery_msg from actions where name='Linux admins other hosts';
                  recovery_msg
                  --------------
                  1
                  (1 строка)

                  zabbix=> select r_shortdata from actions where name='Linux admins other hosts';
                  r_shortdata
                  ----------------------------------
                  {TRIGGER.STATUS}: {TRIGGER.NAME}
                  (1 строка)

                  zabbix=> select r_longdata from actions where name='Linux admins other hosts';
                  r_longdata
                  --------------------------------------------------------
                  Trigger: {TRIGGER.NAME}\r +
                  Trigger status: {TRIGGER.STATUS}\r +
                  Trigger severity: {TRIGGER.SEVERITY}\r +
                  Trigger URL: {TRIGGER.URL}\r +
                  Action name: Linux admins other hosts\r +
                  \r +
                  {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
                  (1 строка)

                  zabbix=> select formula from actions where name='Linux admins other hosts';
                  formula
                  -------------------------------------------------------------------------------------------------------------------------------------------------
                  {492} and {493} and {494} and {495} and {496} and {523} and {528} and {606} and {607} and {613} and ({620} or {621} or {636} or {665} or {702})
                  (1 строка)
                  Last edited by TShepitko; 17-08-2017, 12:39.

                  Comment

                  • Mechanix
                    Member
                    • Jan 2017
                    • 92

                    #10
                    Try this one:

                    Code:
                    ({TRIGGER.VALUE}=0 and {host:proc.num[voipmonitor].last(#3)}=1) or ({TRIGGER.VALUE}=1 and {host:proc.num[voipmonitor].last(#3)}<1)

                    Comment

                    Working...