Ad Widget

Collapse

How to check for fileshare availability?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dtoepoel
    Junior Member
    • Jan 2010
    • 8

    #1

    How to check for fileshare availability?

    Hey folks,

    another question.

    How do I let Zabbix check whether a certain (known) fileshare is accessible still?

    And how do I monitor that a certain subfolder on such a windows share (still) exists?

    Thanks for any help in advance already.

    Greets, Dennis
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Are you talking about a mapped drive? Does it always map as the same drive letter? You could create an item with the key for that server such as: (Using drive e: as an example)

    vfs.fs.size[e:\folder1\folder2\folder3,free]

    And that would give you a metric you could graph out.

    if you wanted to get an alert in case the share was not available, you could create a trigger for that server using the above created item along with the nodata parameter. You can search the forums for "nodata".

    Comment

    • dtoepoel
      Junior Member
      • Jan 2010
      • 8

      #3
      Hey and thanks for the reply.

      Nope, not talking about a mapped drive, just an UNC path check

      How can I check that "\\server1\sharename" is up and functional with zabbix?

      In windows server you can right click on my computer --> Manage and then from System Tools --> Shared Folders --> Shares you can check which shares are available on your server system. Is there some sort of Performance Counter you can use to verify that?

      Thanks for the input. Any help is greatly appreciated.

      Greets, Dennis

      Comment

      • tassbur
        Junior Member
        • Mar 2010
        • 1

        #4
        I've just use an external script from the Zabbix Server. I use check_smb_shares script from nagios.

        Comment

        • pmsousa
          Junior Member
          • Jan 2012
          • 23

          #5
          Originally posted by tassbur
          I've just use an external script from the Zabbix Server. I use check_smb_shares script from nagios.
          I've tried your solution but keep getting the error message:

          item [server:windows.inetdocs[]] became not supported: ZBX_NOTSUPPORTED

          windows.inetdocs is zabbix_agentd.conf like this:

          UserParameter=windows.inetdocs[],perl /etc/zabbix/externalscripts/check_smb_shares.pl -S FILECOUNT -H <SERVER> -A <SHARE_FOLDER> -U zabbix -P <somepassword>

          Any thought?!??!

          The script output, when run on shell, is:

          69 Items (24 Directorys, 45 Files, 0 Links, 3800974 ) in smb://SERVER/SHARE_FOLDER | 'FILECOUNT'=69;1;2
          Last edited by pmsousa; 07-02-2012, 18:32. Reason: Added output from script.

          Comment

          Working...