Ad Widget

Collapse

Run Action After additional Time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markrijnders
    Junior Member
    • Jun 2010
    • 6

    #1

    Run Action After additional Time

    Hello,

    I have a question...

    Is there a way to let Zabbix for example send a mail after a trigger is enable (true) for longer then 2 minutes? So if the trigger is enable(true) and is going false right away there is no mail going to be send..

    Sometimes a port goes down en goes up again. Within 60 secons. So there is no need to send a mail.

    I hope it's a clear story. :-))

    Hope to hear from u soon.

    Cheerz
    Mark
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Sure it's possible!

    Here are some real life examples of delayed alerting:

    {My_Server:icmpping.max(300)}=0
    Means that if the maximum value for 300 seconds (5 minutes) is Zero, then fire.

    {My_Server:system.cpu.load[,avg1].min(600)}>6
    Means that if the cpu load is above 6 for ten minutes, then fire.

    {My_Device:ifInOctets.10101.nodata(300)}=1
    Means that if there is no incoming traffic on Port 10101 for five minutes, shoot!

    For more trigger functions see: http://www.zabbix.com/documentation/1.8/manual/config/triggers

    HTH
    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • Markrijnders
      Junior Member
      • Jun 2010
      • 6

      #3
      Thnx

      Thank you very much.

      This is great!!

      Comment

      • nima0102
        Senior Member
        • May 2010
        • 106

        #4
        Originally posted by MrKen
        Sure it's possible!

        Here are some real life examples of delayed alerting:

        {My_Server:icmpping.max(300)}=0
        Means that if the maximum value for 300 seconds (5 minutes) is Zero, then fire.

        {My_Server:system.cpu.load[,avg1].min(600)}>6
        Means that if the cpu load is above 6 for ten minutes, then fire.

        {My_Device:ifInOctets.10101.nodata(300)}=1
        Means that if there is no incoming traffic on Port 10101 for five minutes, shoot!

        For more trigger functions see: http://www.zabbix.com/documentation/1.8/manual/config/triggers

        HTH
        MrKen
        Thanks for good reply.
        Currently trigger for Cpu Usage is "My_server:cpu-usage4.last(0)}>80", But I want to change this trigger so that if cpu-usage4 in 5 minutes is bigger than 80 then trigger be fired.Unfortunately I could not do it.

        About "nodata" trigger, is there any option that I create one trigger for all items in host or host group, if any fetching item is failed trigger be fired?

        Thanks in advance

        Comment

        • MrKen
          Senior Member
          • Oct 2008
          • 652

          #5
          Originally posted by nima0102
          Currently trigger for Cpu Usage is "My_server:cpu-usage4.last(0)}>80", But I want to change this trigger so that if cpu-usage4 in 5 minutes is bigger than 80 then trigger be fired.Unfortunately I could not do it.
          You should be able to do this: {My_server:cpu-usage4.min(300)}>80

          Originally posted by nima0102
          About "nodata" trigger, is there any option that I create one trigger for all items in host or host group, if any fetching item is failed trigger be fired?
          As others have mentioned in other threads, if an item becomes Unsupported or Unreachable for any reason, then the trigger also becomes unsupported and therefore will not fire, even with a 'nodata' expression.

          However, what you could do is create Zabbix Internal checks for 'zabbix[items_unsupported]' and a trigger if this value goes above X. Also an Internal check for 'zabbix[log]' which will monitor warning and error messages from the zabbix_server.log, and create a trigger for various strings from the log. Set up the 'zabbix[log]' item and then watch Latest Data to help you decide what strings to set triggers for.

          http://www.zabbix.com/documentation/1.8/manual/config/items#internal_checks

          HTH
          MrKen
          Last edited by MrKen; 20-07-2010, 05:04. Reason: Add link
          Disclaimer: All of the above is pure speculation.

          Comment

          • Astral
            Junior Member
            • Jan 2024
            • 7

            #6
            Originally posted by MrKen
            Sure it's possible!

            Here are some real life examples of delayed alerting:

            {My_Server:icmpping.max(300)}=0
            Means that if the maximum value for 300 seconds (5 minutes) is Zero, then fire.

            {My_Server:system.cpu.load[,avg1].min(600)}>6
            Means that if the cpu load is above 6 for ten minutes, then fire.

            {My_Device:ifInOctets.10101.nodata(300)}=1
            Means that if there is no incoming traffic on Port 10101 for five minutes, shoot!

            For more trigger functions see: http://www.zabbix.com/documentation/1.8/manual/config/triggers

            HTH
            MrKen
            Can you help me write a expression for Windows by SNMP template for High Storage email alert to be sent after 10mins instead of immediate.
            I am not very good with codes.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4806

              #7
              Originally posted by Astral

              Can you help me write a expression for Windows by SNMP template for High Storage email alert to be sent after 10mins instead of immediate.
              I am not very good with codes.
              You are answering to a post that is 13.5 years old.. to a person who was last active 14-03-2016, 09:51

              Comment

              Working...