Ad Widget

Collapse

Closing a problem raised through LLD created item/trigger automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abockhold
    Junior Member
    • Apr 2024
    • 14

    #1

    Closing a problem raised through LLD created item/trigger automatically

    Hello,

    I created a LLD rule which finds all logs for a backup process in a specific directory. These logs and the corresponding backups are deleted automatically after some time. The LLD rule creates an item for each backup and saves the state (succesful/unsuccesful). A trigger fires if unsuccesful and raises an incident.

    As said the backups and log files get deleted after some time. How can I automatically close an incident if the underlying log file got deleted?

    The item prototype:
    Click image for larger version

Name:	grafik.png
Views:	159
Size:	37.8 KB
ID:	493818

    The trigger prototype:
    Click image for larger version

Name:	grafik.png
Views:	115
Size:	38.0 KB
ID:	493819

    Thanks!
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    In discovery set "Keep lost resources" to 0. This way when discovery will no longer detect previously discovered log file the item and trigger for said file will be delete - also deleting all alerts caused by it.

    But, if you have any notification integrations, I believe it will not send recovery notification. As problem would not actually be resolved, it would be just deleted.

    Comment

    • abockhold
      Junior Member
      • Apr 2024
      • 14

      #3
      Thank you very much!

      Comment

      Working...