Ad Widget

Collapse

need to monitor modified date/time on folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RLobb
    Junior Member
    • Oct 2012
    • 10

    #1

    need to monitor modified date/time on folder

    This is probably something simple. I need to monitor the modified time/date stamp on a folder on a Windows 2008 server. How can I pull this into Zabbix? I see a key for file date/time, but not folder. Any ideas?
  • beli
    Junior Member
    • Mar 2013
    • 12

    #2
    "vfs.file.time" works also on directories.

    Comment

    • RLobb
      Junior Member
      • Oct 2012
      • 10

      #3
      problem with vfs.file.time

      I have created a trigger like this:
      {server:vfs.file.time[path to file, modify].now(0)}-{server:vfs.file.time[path to file, modify].last(0)}>1800
      and the trigger shows an error "Evaluation failed for function {server:vfs.file.time[path to file, modify].last(0)}

      any ideas?

      Comment

      • neogan
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2011
        • 118

        #4
        Maybe would be better try to use diff or change function?
        Similar as in default linux template for a file.

        Comment

        • RLobb
          Junior Member
          • Oct 2012
          • 10

          #5
          Thanks for your reply, I have tried both diff and change and those don't work either.

          I dug a little more this morning and realized the items don't show up in Monitoring | Latest data. I also checked Monitor | Overview and the items show up, but there is no data. The folder I am trying to check the time on is on a Windows 2008R2 server.

          The set up on the items is as follows:

          Type: Zabbix agent
          Key: vfs.file.time[path to folder ,modify]
          Type of information: numeric(unsigned)
          Data Type: Decimal
          units: seconds
          Update interval: 30
          Keep history: 90
          Keep trends: 365
          Status: active
          Store value: as is
          Show value: as is

          The status of the items are active and there are no errors, but I also see no data.

          Any ideas?

          Thanks in advance,

          Rick
          Last edited by RLobb; 14-06-2013, 20:10.

          Comment

          • RLobb
            Junior Member
            • Oct 2012
            • 10

            #6
            I found the problem. I had the item set to use Zabbix Agent(active) instead of passive. When I changed it, data started coming in.

            Comment

            • RLobb
              Junior Member
              • Oct 2012
              • 10

              #7
              New problem. I have the item and trigger working, but the modified time is not updating unless I actually view the folder in Windows explorer. This is true also if I view the folder in the command prompt. The modified date only changes if I view the folder list from Windows Explorer. Any ideas?

              Comment

              • Alex Valuev
                Junior Member
                • Oct 2015
                • 5

                #8
                {vfs.file.time[/PATH_TO_FILE_OR_DIR,modify].fuzzytime(7200)}=0

                trigger checks
                that the timestamp of file/directory is not older than 7200s (2h)

                Comment

                • jdoom
                  Junior Member
                  • Mar 2016
                  • 3

                  #9
                  I have used this expression: {SERVER:vfs.file.time[FOLDER,modify].fuzzytime(7200)}=0

                  I receive the following error:
                  Incorrect item key "vfs.file.time[FOLDER,modify]" provided for trigger expression on "SERVER".

                  Comment

                  • jdoom
                    Junior Member
                    • Mar 2016
                    • 3

                    #10
                    Not working

                    Hello I have tried this but receive the following error:

                    Incorrect item key "vfs.file.time[PATH,modify]" provided for trigger expression on "SERVER".

                    Comment

                    • Alex Valuev
                      Junior Member
                      • Oct 2015
                      • 5

                      #11
                      Working fine for me :

                      Item:
                      ---------
                      DocsWork: /home/docs/work modify timestamp (unix style)

                      vfs.file.time[/home/docs/work,modify]

                      Trigger:
                      ---------
                      Work directory is not recreated during last 48h

                      {hostname:vfs.file.time[/home/docs/work,modify].fuzzytime(172800)}=0

                      Comment

                      • jdoom
                        Junior Member
                        • Mar 2016
                        • 3

                        #12
                        Ok, it works now. The item was not properly added.

                        Comment

                        Working...