Ad Widget

Collapse

Is there any way to control how many times a trigger can be activated a day?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saibuster
    Member
    • Jul 2018
    • 32

    #1

    Is there any way to control how many times a trigger can be activated a day?

    I will use the following example as a case for this question:

    Click image for larger version

Name:	system.JPG
Views:	93
Size:	101.6 KB
ID:	368399

    This trigger is activated if the Host CPU is averaging 80% for a minute, the trigger is connected to an action that sends an email.
    My problem is that in case the machine will average more than 80% CPU for an hour, I will probably get countless email notifications...
    Which leads to my question, is there any way to control how many time a trigger can get triggered? For example, it got triggered now and will only
    be able to get triggered again after 4 hours.


  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Why you are calculating your own cpu avg1 if agent provides this metric OOTB over system.cpu.load[,avg1] ?
    Really before reinventing the wheel you should at least try to understand what is implemented in templates provided by Zabbix developers.
    https://www.zabbix.com/documentation...s/zabbix_agent
    Did you read https://www.zabbix.com/documentation...ion#hysteresis ?
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • saibuster
      Member
      • Jul 2018
      • 32

      #3
      Thanks for your comment.
      I've already read the Hysteresis documentary but couldn't find a way to create a time-based recovery condition that is depending
      on the problem creation start time. Any idea if it is possible?

      Comment

      Working...