Ad Widget

Collapse

Cannot monitor mounted network drive (windows)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chazz
    Junior Member
    • Jun 2014
    • 10

    #1

    Cannot monitor mounted network drive (windows)

    I am using Zabbix server v2.2.3 on Ubuntu 14.04 and Zabbix agent v2.2.1 on Windows 7.

    I have made the item vfs.fs.size[b:,pused] which has status "Not supported by Zabbix Agent" on Zabbix server.

    If I try to check it on the agent machine, it works:
    Code:
    C:\>zabbix_agentd -t vfs.fs.size[b:,pused]
    vfs.fs.size[b:,pused]                                     [d|42.394187]
    It works both on the normal and elevated (run as administrator) cmd.

    B: disk ir a mounted network drive (it's network storage). "Out of box" it couldn't be seen by the elevated user and test returned ZBX_NOTSUPPORTED. I did the registry changes described here and it works fine now, but the Zabbix server still gets ZBX_NOTSUPPORTED.

    Normal drives (vfs.fs.size[c:,pused]) work fine. If I try working on active mode, agent writes
    Code:
      5856:20140616:090606.013 active check "vfs.fs.size[b:,pused]" is not supported
    on his log.

    I could find nothing useful on server log other than key becoming supported and unsupported if I try changing "b:" to "c:" and vice versa.

    I suppose it might be some permission problem, but have no idea how to solve this on windows.

    ================================================== =

    Maybe there are better solutions to monitor WD My Book Live Duo network storage?
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    I had the same question: How I can monitor network mapped drive?
    But so far I have no answer.
    I tried to use some additional scripts/plugins - no luck.

    I don't think that Zabbix Agent can collect information about mapped drives and deliver it to Zabbix Server.

    Sorry
    Sincerely yours,
    Aleksey

    Comment

    • Chazz
      Junior Member
      • Jun 2014
      • 10

      #3
      Well, he is surely able to collect the information therefore I hope he should be able to deliver it aswell.

      I believe I have to mount the drive (or change some options) in a way that the mounted drive becomes visible to the service...

      Comment

      • c.mammoli
        Member
        Zabbix Certified Specialist
        • Feb 2012
        • 48

        #4
        Originally posted by aib
        I had the same question: How I can monitor network mapped drive?
        But so far I have no answer.
        I tried to use some additional scripts/plugins - no luck.

        I don't think that Zabbix Agent can collect information about mapped drives and deliver it to Zabbix Server.

        Sorry
        In short: you can't. Mapped network drivers are relative to user sessions, not system-wide. Zabbix agent run as the system account and has no clue about your network drive.

        If you need to monitor a network drive do it on the host that exports it.

        Comment

        • Chazz
          Junior Member
          • Jun 2014
          • 10

          #5
          I seem to have solved it. You have to map it as system user and here is how you do it:

          Create a scheduled task that runs at system startup. And it must run as the user NT AUTHORITY\SYSTEM. Task must run this one-line batch script:
          Code:
          net use b: \\192.168.xxx.xxx\The_Folder /persistent:yes /user:MyUser MyPassword
          In case you don't have to log on that, just skip everything after "yes".

          Comment

          • skywing88
            Junior Member
            • Jul 2022
            • 1

            #6
            hi, Chazz.
            I have to face the same problems as that of yours. I am now using Zabbix server v5.0.2 on Centos 8.2 and run Zabbix agent 5.0.2 on windows server 2008R2 on which a network driver(net app storage) is mounted. That server also has another normal local hardisk driver(C.
            The issue is just as u have mentioned before. The network driver could not be seen on Zabbix server based on the out of box template,but normal local disk(C works fine.

            I also have already tried your solution, whichi is creating a scheduled task , However, it seemed not to work.

            so , any master here can give some help! Thanks greatly!!!

            Comment

            Working...