Ad Widget

Collapse

Verify age of a file at a specific time only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rei
    Junior Member
    • Dec 2019
    • 1

    #1

    Verify age of a file at a specific time only

    Hello,

    New to the Zabbix world !

    I'm trying to monitor if a file was created successfully at a specific time.

    The file is generated each day at 5h30AM.

    To do this I would like each day at 6h30AM to check if current time - file time < 1 hour.

    How could I modify the following trigger :
    {HOSTNAME:vfs.file.time[D:\path\to\file\myfile.csv].now(0)} - {HOSTNAME:vfs.file.time[D:\path\to\file\myfile.csv].last(0)} > 600

    So that instead of "now" it would be a specific time?

    Thanks in advance
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    Do you want to compare the time of the file with the current time?
    If yes, maybe you could use system.localtime of fuzzytime

    Comment

    Working...