Ad Widget

Collapse

Trigger alert if the file cksum is different that 1347961993

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cnapan
    Junior Member
    • Jun 2020
    • 12

    #1

    Trigger alert if the file cksum is different that 1347961993

    Hi, I need to create a trigger that would fire if file content checksum is different than a particular value. I know that I can create a fs.file.cksum[/home/user/result.txt].diff()} =1 but the check is running every 1 minute, so the alert will disappear after a 1 minute from dashboard. I want to compare the chsum with provided static value and then the allert will last as long as the file will back to its original state and content. Please help me.
  • cnapan
    Junior Member
    • Jun 2020
    • 12

    #2
    Originally posted by cnapan
    Hi, I need to create a trigger that would fire if file content checksum is different than a particular value. I know that I can create a fs.file.cksum[/home/user/result.txt].diff()} =1 but the check is running every 1 minute, so the alert will disappear after a 1 minute from dashboard. I want to compare the chsum with provided static value and then the allert will last as long as the file will back to its original state and content. Please help me.
    I have figure it out: {Host.name:vfs.file.cksum[/home/user/result.txt].last(0)}<> 1347961993

    Comment

    Working...