Ad Widget

Collapse

Trigger for File older than 7 days

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lovezabbixaj
    Junior Member
    • Jan 2016
    • 9

    #1

    Trigger for File older than 7 days

    Hello,

    I want to implement a trigger , if a file on my system is older than 7 days. I have been investigating on key vfs.file.time[file,<mode>]. But the modes available here are modify,access and change. How can create a trigger which is based on file creation timestamp? Please provide pointers.

    Thanks.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    normally in Linux it dont exist a "create" field for files, so can can query that..
    Debian-User

    Sorry for my bad english

    Comment

    • lovezabbixaj
      Junior Member
      • Jan 2016
      • 9

      #3
      Looking for windows help

      Thanks for your reply.

      I am implementing this for windows where we do have creation date

      If anyone has any idea how to implement this plz help.

      Thanks

      Comment

      • lovezabbixaj
        Junior Member
        • Jan 2016
        • 9

        #4
        Difference between modify and change mode?

        What is the difference between modify and change mode in key vfs.file.time[file,<mode>] ?

        Comment

        • lovezabbixaj
          Junior Member
          • Jan 2016
          • 9

          #5
          How to Windows?

          OK I got answer for my previosu question.

          There is access time - the time that someone (reads) look in document.
          There is modify time - the time that file is modified, appended, writed or rewrited
          There is change time - the last time meta data of the file was changed (e.g. permissions)


          So now only question left unanswered is can we check file creation timestamp for a file on windows?

          Comment

          Working...