Ad Widget

Collapse

Trigger alert

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • studero
    Member
    • Aug 2023
    • 84

    #1

    Trigger alert

    Hi all,

    I have create a new item to check if the file existe as follow :
    Code:
    vfs.file.exists["/app/tomcat/logs/heapdump.hprof",file]
    Click image for larger version

Name:	image.png
Views:	129
Size:	35.6 KB
ID:	492458
    Then I have create a trigger to alert me when the file was created as follow with success:
    Code:
    last(/svx-jsp-121t.unifr.ch/vfs.file.exists["/app/tomcat/logs/heapdump.hprof",file])>=1
    Click image for larger version

Name:	image.png
Views:	94
Size:	31.5 KB
ID:	492459
    Now I want to create a new trigger on this same item to alert me that the file was create more than 3 days with High severity. And close the first trigger alert. How can do that ?

    Thanks for you help
  • Answer selected by studero at 09-10-2024, 16:36.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807


    min(/svx-jsp-121t.unifr.ch/vfs.file.exists["/app/tomcat/logs/heapdump.hprof",file],3d)>0 (lowest value during last 3d is above 0, meaning effectively, that it has been there for 3 days, all checks during that period have returned 1 (file is present)... )

    Closing the other one is tricky as its condition is still true, you can probably add some dependency there (https://www.zabbix.com/documentation...s/dependencies), so it might dissapear, but it will not make trigger to become false...

    Comment


    • studero
      studero commented
      Editing a comment
      Many thanks Cyber for this solution
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    min(/svx-jsp-121t.unifr.ch/vfs.file.exists["/app/tomcat/logs/heapdump.hprof",file],3d)>0 (lowest value during last 3d is above 0, meaning effectively, that it has been there for 3 days, all checks during that period have returned 1 (file is present)... )

    Closing the other one is tricky as its condition is still true, you can probably add some dependency there (https://www.zabbix.com/documentation...s/dependencies), so it might dissapear, but it will not make trigger to become false...

    Comment


    • studero
      studero commented
      Editing a comment
      Many thanks Cyber for this solution
Working...