Ad Widget

Collapse

Filesystem info Windows 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VanguardCloud
    Junior Member
    • Jul 2020
    • 5

    #1

    Filesystem info Windows 10

    Hello folks,

    This is my first post here so please forgive me if I forgot any important info for ask support.
    I'm trying to get FILESYSTEM info from a Windows 10 OS on the same way I can get from Windows Server 2019. I'm applying exactly same template (Template OS Windows by Zabbix agent) however only Windows Server machines are able to show Disk space usage info/graphic.

    I'm running ZABBIX server 5.0 (current) with Zabbix Agent 5.0.2.2400. Below is the Agent config (nothing really special...).

    Thank you!


    Code:
    # This is a configuration file for Zabbix agent service (Windows)
    # To get more information about Zabbix, visit http://www.zabbix.com
    # LAST MODIFIED 2020-28-07-0902
    
    ### Option: LogFile
    # Log file name for LogType 'file' parameter.
    #
    # Mandatory: no
    # Default:
    # LogFile=
    
    LogFile=C:\APPS\ZABBIX\zabbix_agentd.log
    
    ### Option: Server
    # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
    # Incoming connections will be accepted only from the hosts listed here.
    # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.
    # '0.0.0.0/0' can be used to allow any IPv4 address.
    # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
    #
    # Mandatory: yes, if StartAgents is not explicitly set to 0
    # Default:
    # Server=
    
    Server=192.168.101.199
    
    ### Option: ServerActive
    # List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
    # If port is not specified, default port is used.
    # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
    # If port is not specified, square brackets for IPv6 addresses are optional.
    # If this parameter is not specified, active checks are disabled.
    # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    #
    # Mandatory: no
    # Default:
    # ServerActive=
    
    ServerActive=192.168.101.199
    
    ### Option: HostnameItem
    # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
    # Does not support UserParameters or aliases.
    #
    # Mandatory: no
    # Default:
    HostnameItem=system.hostname
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    The ”host” receives information about file systems for this host during the LLD process. See if the corresponding detections are active and try performing them manually. Check whether any errors are displayed in the web interface.
    https://www.zabbix.com/documentation...ed_filesystems

    Comment

    • VanguardCloud
      Junior Member
      • Jul 2020
      • 5

      #3
      Hi Hamardaban thank you for the answer and the points. From what I can see everything is right and no error messages.

      Interesting pointing here is that file system information and discovery process is working just fine for Windows Server 2019, only for Windows 10 it is not working.

      Any difference about one and other system that I should change at Zabbix server or agent setting?

      Comment


      • provels
        provels commented
        Editing a comment
        Perhaps you can try the 4.4.6 client. I'm using that (but with a 4.4.6 appliance) and it reports disk usage.
        My ServerActive IP is also 127.0.0.1
        Last edited by provels; 30-07-2020, 11:53.
    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #4
      Run on the server: "zabbix_get -s ip_of_zabbix_agent -k "vfs.fs.discovery"
      Getting a json response with a list of disks?

      Comment

      • VanguardCloud
        Junior Member
        • Jul 2020
        • 5

        #5
        provels thank you for the suggestion. I tried with Zabbix agent 4.x and still not working. If i really can't get this working maybe downgrade Zabbix Server can be an alternative...

        Comment

        • VanguardCloud
          Junior Member
          • Jul 2020
          • 5

          #6
          Originally posted by Hamardaban
          Run on the server: "zabbix_get -s ip_of_zabbix_agent -k "vfs.fs.discovery"
          Getting a json response with a list of disks?
          Interesting Hamardaban is that I haven't the zabbix_get command in my Zabbix Server !? all that I have is zabbix_agentd and zabbix_server. I found another post saying to get it using
          Code:
          sudo apt-cache search zabbix-get
          and after that I got installed using
          Code:
          sudo apt install zabbix-get
          Now I have the output below using your command:
          Code:
          [{"{#FSNAME}":"C:","{#FSTYPE}":"NTFS","{#FSDRIVETYPE}":"fixed"},{"{#FSNAME}":"D:","{#FSTYPE}":"UNKNOWN","{#FSDRIVETYPE}":"cdrom"}]
          Is this the result I need to see?

          Thank you!

          Comment

          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #7
            This is a normal and correct server response containing an enumeration of file systems. Based on this response (after applying filters), the server creates an items for monitoring.

            Comment

            • VanguardCloud
              Junior Member
              • Jul 2020
              • 5

              #8
              Hamardaban after I installed the zabbix-get package now I can actually see the file system information from Windows 10 VM!!!

              Looks like the missing package is responsible for the operation for Windows 10, however for some reason Zabbix can get it from Windows Server without issues.


              Thank you!

              Comment


              • Hamardaban
                Hamardaban commented
                Editing a comment
                After-does not mean in consequence! :- ) Maybe just time passed and the entire LLD sequence worked normally.
                In any case well that works!
            Working...