Ad Widget

Collapse

Monitoring UNC network shares

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wamsterdam
    Member
    • Apr 2013
    • 34

    #1

    Monitoring UNC network shares

    Hi all,

    I'm having difficulties understanding my Zabbix 2.2.0 server at the point of monitoring UNC paths (for Windows - obviously). We have several customers with an onsite Synology NAS device, for which I like to monitor free disc space. Within the customer's network, a Windows zabbix agent is active. From my central Zabbix server it seems I can monitor a few of these NAS devices, but not every single one of them. While trying to troubleshoot why, I came across this issue.

    My items:


    Latest data for these items:


    But when trying to retrieve the values with zabbix_get, I recieve this:
    Code:
    zabbix_get -s 217.xx.xx.xx -k vfs.fs.size[\\nas2\netbackup,free]
    ZBX_NOTSUPPORTED
    So somehow the zabbix agent can retrieve the correct values, but querying the values directly via zabbix_get does not work?

    TIA,
    Wouter
    Last edited by wamsterdam; 23-11-2013, 23:55.
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Probably the host where you're running zabbix_get is not allowed to query the box. Try "zabbix_agentd.exe -c zabbix_agentd.conf" running on the box which does the actual data collecting.

    Comment

    • Udo
      Junior Member
      • Jul 2012
      • 6

      #3
      Originally posted by wamsterdam
      Code:
      zabbix_get -s 217.xx.xx.xx -k vfs.fs.size[\\nas2\netbackup,free]
      ZBX_NOTSUPPORTED
      A Backslash "\" has a special meaning on the shell, it "escapes" the next character to get interpreted by the shell itself.

      Please try (untested):

      a) escaping that special character :-)
      Code:
       [\\\\nas2\\netbackup,free]
      b) or encapsulate it using "
      Code:
       ["\\nas2\netbackup",free]
      Best regards

      Comment

      • wamsterdam
        Member
        • Apr 2013
        • 34

        #4
        Udo,

        Thanks your pointing that out. Solution a) worked perfectly:

        Code:
        zabbix_get -s 217.xx.xx.xx -k vfs.fs.size[\\\\nas2\\netbackup,free]
        617722032128
        Nice to have a confirmation that monitoring UNC paths from the agent does indeed work!

        Wouter

        Comment

        • sticks221
          Junior Member
          • Mar 2016
          • 9

          #5
          Hi, apologies for reviving an old thread my question is a continuation... I have a need to do the same and have followed the advice above only to get the following error;

          ZBX_NOTSUPPORTED: Cannot obtain filesystem information: [2] No such file or directory

          I am struggling to find any help or support at all on the subject so would greatly appreciate any offers of support.

          We are running Zabbix 3.0.5 with one master server and two proxies.

          Thanks in advance.

          Comment

          • wamsterdam
            Member
            • Apr 2013
            • 34

            #6
            Sticks,

            Can you post your zabbix_get command or your item properties? Are you sure the share you are trying to connect to exists? Does the Zabbix Service have access rights (NTFS and share rights) to the share? Do you query a local server or via a proxy?

            Wouter

            Comment

            • sticks221
              Junior Member
              • Mar 2016
              • 9

              #7
              Originally posted by wamsterdam
              Sticks,

              Can you post your zabbix_get command or your item properties? Are you sure the share you are trying to connect to exists? Does the Zabbix Service have access rights (NTFS and share rights) to the share? Do you query a local server or via a proxy?

              Wouter
              Thanks for the prompt response. The command I am attempting is;
              zabbix_get -s zabbixsvr -k vfs.fs.size[\\\\nasvfs\\users\\,free]

              I have to confess that I dont know how to specify the user account zabbix uses but the share is available to "Domain Users" and the server is in the domain by way of PowerBroker.

              I have tried the command on the proxy that communicates via the agent installed on the server but I get the error "zabbix_get [16540]: Check access restrictions in Zabbix agent configuration", trying on the server returns the error above.

              I do wonder if I am mis-understanding the methods above so to clarify my requirement...

              I have a two node Windows 2012 R2 cluster (NAS01 & NAS02), these run a file server resource called "NASVFS". I monitor both NAS nodes using a ZABBIX agent and in general, that works well however we can't monitor the disks as they move between the cluster hosts and therefore would always alert on the passive node. In addition, we are experiencing issues with the file server but by the time ZABBIX alerts that the server is misbehaving, its too late. What I would like to do is monitor the share on the virtual resource so that I can alert when it starts misbehaving. Obviousley, the virtual resource isn't known to ZABBIX as a host becuase it sees the nodes directly (via the agent).

              Hope that makes sence?

              Comment

              • Rudlafik
                Senior Member
                • Nov 2018
                • 144

                #8
                Hi, I have same problem.

                Zabbix agent on Win2016 v3.4 Host has 2 net interface x.110.x.16 is connect to Zabbix server appliance 3.4 x.160.x.x and other win servers in subnet x.110.x.0. Second interface of client is x.118.x.16 is connect to net share \\x.118.x.10\dbbackup. This share is in cloud storage (win AD accounts and groups, Win server/client make backup to this share without problems).
                Zabbix server dont see subnet x.118.x.0 . zab srv see only x.110.x.0 and his x.160.x.0 (there is only routing rule 110 <>160)
                Zabbix Agent services on Windows Host (x.110.x.16) run as same AD user acccount has full rights on test share (1.share) and cloud share (2.share)
                --------------
                When I test net share Win2016 to win2016 in subnet 110 from ZabSrv:

                1. share zabbix_get -s x.110.x.16 -k vfs.fs.size[\\\\x.110.x.40\\TestShare,pfree]
                - 59.6548%

                When I test net share Win2016 to cloud datastore in subnet 118 from ZabSrv:

                2.share zabbix_get -s x.110.x.16 -I x.118.x.16 -k vfs.fs.size[\\\\x.118.x.10\\dbbackup,pfree]
                -zabbix_get [30075]: Get value error: bind() failed: [99] Cannot assign requested address
                -----------------
                OK (maybe error because zabb srv dont see 118 interface/subnet on zab client ) I try directly from windows 2016 host x.110.x.16:

                1. share zabbix_agentd -c zabbix_agentd.win.conf -t vfs.fs.size[\\x.110.x.40\TestShare,pfree]
                -vfs.fs.size[\\x.110.x.40\TestShare,pfree] [m|ZBX_NOTSUPPORTED] [Cannot obtain filesystem information.]

                2.share zabbix_agentd -c zabbix_agentd.win.conf -t vfs.fs.size[\\10.218.0.10\dbbackup,pfree]
                -vfs.fs.size[\\10.218.0.10\dbbackup,pfree] [d|15.764582]

                There is mirror situation.

                Question is:

                What I can do for function/work Item in Configuration>Host(x.110.x.16)>Items when vfs.fs.size[\\x.118.x.10\dbbackup,pfree] and version [\\\\x.118.x.10\\dbbackup,pfree],["\\x.118.x.10\dbbackup",pfree] is generate ERROR [i]
                Cannot obtain filesystem information.


                Thanks for help Ruda


                Comment

                Working...