Ad Widget

Collapse

vfs.dir.count - Invalid parameter

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • grefabu
    Member
    • Jul 2019
    • 33

    #1

    vfs.dir.count - Invalid parameter

    Hi,

    I've a syntax problem when I define a new item. I try vfs.dir.count, I think I use it like the help:

    vfs.dir.count[/dev] #monitors the number of devices in /dev (Linux)
    vfs.dir.count["C:\Users\ADMINI~1\AppData\Local\Temp"] #monitors the number of files in a temporary directory
    Here my example:
    vfs.dir.count["C:\inetpub\logs\LogFiles"]
    But I get:

    Click image for larger version

Name:	grafik.png
Views:	70
Size:	18.9 KB
ID:	504763

    When I use single quotation marks I could save the item: vfs.dir.count['C:\inetpub\logs\LogFiles\']
    But I always get zero as value.

    I could use a userparamter in the Zabbix conf to make it with an powershell script, but I hope it is possible to use the buildin function?

    Bye

    Gregor
  • Answer selected by Markku at 03-07-2025, 15:21.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    Remove the trailing backslash from the path.

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      Remove the trailing backslash from the path.

      Markku

      Comment

      • grefabu
        Member
        • Jul 2019
        • 33

        #3
        Originally posted by Markku
        Remove the trailing backslash from the path.
        Life could be so easy ;-)

        Comment

        Working...