Ad Widget

Collapse

Monitoring of windows network share

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #1

    Monitoring of windows network share

    Hi guys , anybody know are is monitoring network share on windows system ? It seems as Zabbix agent is running as local system/admin persmission and Windows mounts the shares within user context Zabbix agent cant see those shares. So basically 'net use' command or 'powershell get-smbmapping' works nicely for the user it doesnt for admin or zabbix agent

    Ouput example of net use

    HTML Code:
    Status Local Remote Network
    -------------------------------------------------------------------------------
    OK Z: \\server\sharedfolder Microsoft Windows Network
    OK Y: \\office\documents Microsoft Windows Network
    Disconnected X: \\backup\storage Microsoft Windows Network
    The command completed successfully.
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #2
    Just bumping - anybody faced it ?

    Comment

    • MRedbourne
      Senior Member
      • Feb 2023
      • 103

      #3
      How are you doing this, a custom user parameter object in the agent configuration? What version of Zabbix?

      If you have a user parameter, try: C:\path\to\zabbix_agent2.exe -t YourParameter

      What does this output?

      Comment

      • gofree
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2017
        • 400

        #4
        When run as userparam there is empty response, because shares under Windows are mounted in user context. Zabbix agent user context ( local with admin rights) doesn't see them. It's one of the things in Windows world.

        Comment

        • MRedbourne
          Senior Member
          • Feb 2023
          • 103

          #5
          What's wrong with this? (I don't monitor Windows Servers or Endpoints at all...)

          zabbix_agent2 -t vfs.fs.get[\\\\SERVER\\MOUNT]

          Pass this to LLD and create prototype items based on the returned JSON object. If you don't get any results, then create an trigger and note it offline. UNC monitoring worked in ZBX 2.X > Monitoring UNC network shares - ZABBIX Forums

          Comment

          Working...