Ad Widget

Collapse

How to monitor NFS Shares (or Mapped Network Drivers) on a Host (Windows)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wpagane
    Member
    • Apr 2021
    • 31

    #1

    How to monitor NFS Shares (or Mapped Network Drivers) on a Host (Windows)?

    Hello all,

    I hope some Expert can help me, please.

    For 3 days I'm looking for a solution and I found that this is not a native item in Zabbix.


    DESCRIPTION
    I really know that is possible to create an Item and discovery FileSystem Drivers, such as C:, D:, E: etc... I'm already doing that. These are Local Drivers and I do monitor them very well.

    PROBLEM
    I'd like also to monitor some NFS Shares Drivers (i.e.: Y:, Z:, T --> These are Mapped Network Drivers and I realized this is not so easy 'cause Zabbix doesn't have this function (item).

    I've read already in so many forums people suggesting to use "vfs.file.exists[file]" or vfs.fs.size[fs,<mode>], but this is not what I'm looking for. I need to know if the NFS Share is connected or disconneted in a WINDOWS SERVER 2016 (in case disconneted, dispatch a Trigger). That's simple, but not so simple to make happen.

    I know that maybe the only way to do that is using UserParameters. I did do a few experiences with no sucessful.

    Did anyone have already faced this trouble and could please share the steps you followed to achieve the goal?


    I really appreciate your help!
    Last edited by wpagane; 01-05-2021, 22:08.
  • sancho
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2015
    • 295

    #2
    Hi wpagane

    The user with whom you access the mapped network drive, give administrator permissions on the machine and start the agent service with that user.

    I hope it works for you

    Comment

    • coffee
      Junior Member
      • Oct 2021
      • 15

      #3
      We use the bat script to monitor whether the TCP connection status is established, but we encounter an unknown problem. The TCP connection will be disconnected automatically. When you log in to windows or remote desktop, it will be connected automatically. I am very confused

      bat
      \@echo off
      netstat -ano |findstr %1 |findstr ESTABLISHED |find /c /v "::"

      config
      UserParameter=client_established_status[*],"C:\Program Files\zabbix_agent\client_established_status.bat" $1

      Comment

      Working...