Ad Widget

Collapse

Monitor no. of files in a windows directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepaks
    Junior Member
    • Nov 2015
    • 12

    #1

    Monitor no. of files in a windows directory

    Hi Friends,

    I want to monitor number of files present in a windows directory. On zabbix I found a option of monitoring filesystem size/memory size, instead I want to monitor number of files present on a specified directory.
    I am using Zabbix 2.4.

    Thanks in advance.
  • wjlee
    Junior Member
    • Apr 2016
    • 1

    #2
    UserParameter=folder.files[*],dir /b /a-d "$1" | find /v /c ""

    Comment

    • deepaks
      Junior Member
      • Nov 2015
      • 12

      #3
      Hi wjlee,

      Is this applicable for Windows, I am looking for windows system. If possible kindly provide a example.

      Comment

      • bbrendon
        Senior Member
        • Sep 2005
        • 870

        #4
        Originally posted by deepaks
        Hi wjlee,

        Is this applicable for Windows, I am looking for windows system. If possible kindly provide a example.
        some kind of oneliner like powershell -e @(<get-....>).count
        Unofficial Zabbix Expert
        Blog, Corporate Site

        Comment

        Working...