Ad Widget

Collapse

How to set Trigger to send alert after 15 mins?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NewUser1
    Member
    • Oct 2022
    • 36

    #1

    How to set Trigger to send alert after 15 mins?

    Hello,

    I have two triggers set for when the cpu reaches 80% and 90% they work fine but I want to make it that they send an alert after the cpu has remained above 80% or 90% for 15 minutes.

    Here is the expression I got for 80%

    Code:
    min(/Windows by Zabbix agent/system.cpu.util[all,system,avg5],15m)>80
    Click image for larger version

Name:	alert.jpg
Views:	1312
Size:	92.1 KB
ID:	455951

    Here it is for 90%

    Code:
    min(/Windows by Zabbix agent/system.cpu.util,15m)>90
    Click image for larger version

Name:	Alert2.jpg
Views:	1354
Size:	97.3 KB
ID:	455950


    Where am I making a mistake with my expressions?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4836

    #2
    Mistakes?

    2 different items? "system.cpu.util[all,system,avg5]" and "system.cpu.util" ?

    Other thing is .. that first trigger should consider values between 80 and 90 and other one values over 90... so your first one should be "min(item,15m)>80 and max(item,15m)<90" and the other one just "min(item,15m)>90"

    Comment

    • NewUser1
      Member
      • Oct 2022
      • 36

      #3
      Originally posted by cyber
      Mistakes?

      2 different items? "system.cpu.util[all,system,avg5]" and "system.cpu.util" ?

      Other thing is .. that first trigger should consider values between 80 and 90 and other one values over 90... so your first one should be "min(item,15m)>80 and max(item,15m)<90" and the other one just "min(item,15m)>90"

      What I meant is that one of my triggers is for when the cpu hits 80% and my second trigger is for when the cpu hits 90%. What I want is for both triggers to trigger only after they have remained at their respective percentages after 15minutes or longer.

      So I assume that the expression for 80% should look like this "min(/Windows by Zabbix agent/system.cpu.util[all,system,avg5],15m)>80"

      and for 90% should look like this "min(/Windows by Zabbix agent/system.cpu.util,15m)>90"

      if you are wondering why I didn't use "system.cpu.util" for the 80% expression it was because it was being used for the 90% expression that was prebuilt already. I had to make this expression for the 80% "system.cpu.util[all,system,avg5],15m)>80"

      Comment

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

        #4
        Looks fine to me.."min (/host/key,(sec|#num)<:time shift>)​"
        Do you have any suspicions, that it does not work?

        You can use same item in multiple triggers...

        Comment

        Working...