Ad Widget

Collapse

How to monitor Mappded drivers in Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashuji
    Member
    • Dec 2008
    • 35

    #1

    How to monitor Mappded drivers in Windows

    HI

    Zabbix_Agent do filesystem monitoring very well. But to my surprise it failed to monitor those filesystem which were mapped/mounted from other server. Viz. I have //fileserver/shared_folder mounted as z:

    Any idea how to monitor such mapped drives.

    Regards

    Ashwani Jain
  • trikke
    Senior Member
    • Aug 2007
    • 140

    #2
    hi,

    just use perfcounters like this:

    Code:
    perf_counter["\LogicalDisk(E:)\% Free Space"]


    Greets
    Patrick

    Comment

    • ashuji
      Member
      • Dec 2008
      • 35

      #3
      Does not work

      It says "not supported by zabbix agent.

      Comment

      • danrog
        Senior Member
        • Sep 2009
        • 164

        #4
        What do you mean exactly?

        Do you mean something that was mapped using "net use Z: \\blah\share" or a File Server share from a NAS device or something? As far as I know, cli based perfmon tools can't get locally mapped drives (just tested to verify). If you are looking to monitor a remote Windows box that does not have the agent installed, you could try something like:

        perf_counter[\\remoteserver\LogicalDisk(C\% Free Space]

        but will have to run the service under a domain account or under the NETWORK_SERVICE account (however, if you have strict permissions, I don't think this would work). I should note, I haven't tested this so don't know if its even supported.

        Comment

        • ashuji
          Member
          • Dec 2008
          • 35

          #5
          NAS share only

          I am trying to monitor NAS share mounted/mapped to F: of my windows server. And on first check item becomes unsupported

          Comment

          • ashuji
            Member
            • Dec 2008
            • 35

            #6
            Tally

            Please tell me from the below key, "LogicalDisk" is mendatory part or it has to change as per label of my driver ?

            perf_counter["\LogicalDisk(E\% Free Space"]

            Comment

            • trikke
              Senior Member
              • Aug 2007
              • 140

              #7
              Hi,

              do a typeperf -qx > typeperf.txt and then open that file, then search for f: ( or Label), then u should see wich perfmon-key u should use!

              Greets
              Patrick

              Comment

              • ashuji
                Member
                • Dec 2008
                • 35

                #8
                typepref does not help

                Hi

                Please refer to screen shot of my computer and result of typeref in the files attached. I have G: & Y: as mapped drive but none of these apper in the result of typepref result.

                Regards

                Ashu
                Attached Files

                Comment

                • trikke
                  Senior Member
                  • Aug 2007
                  • 140

                  #9
                  Hi Ashu,

                  strange!! But maybe perfmon was not set up correctly ( or changed) try this:

                  (from http://www.computerperformance.co.uk...isk_Health.htm )

                  >>>>>
                  Diskperf -y and Performance Monitor

                  Diskperf's overhead is very small and my advice is to leave it turned on. Another hint that this is the correct approach is that Windows 2003 has diskperf on by default. If you have Windows 2000 and you do not set diskperf -y then you are storing up a problem for when you ever do need to measure disk performance. The problem is that setting diskperf needs a reboot and it would be most inconvenient when you are keen to get on with the troubleshooting.
                  Perfmon situation 2000 and 2003

                  DISKPERF [-Y[D|V] | -N[D|V]] [\\computername]

                  -Y Sets the system to start all disk performance counters when the system is restarted.

                  -YD Enables the disk performance counters for physical drives. when the system is restarted.
                  -YV Enables the disk performance counters for logical drives or storage volumes when the system is restarted.
                  -N Sets the system to disable all disk performance counters when the system is restarted.

                  -ND Disables the disk performance counters for physical drives.
                  -NV Disables the disk performance counters for logical drives.
                  \\computername Is the name of the computer you want to see or set disk performance counter use.
                  >>>>>>>

                  So I guess try: Diskperf -y and reboot your system, then look for the Drives in the typepref file!

                  Hope this helps,

                  Greets
                  Patrick


                  P.S.: be aware that u have a Windows Problem here ( not Zabbix!!)

                  Comment

                  • ashuji
                    Member
                    • Dec 2008
                    • 35

                    #10
                    No Luck

                    Hi

                    I did what you suggested. After reboot i agani ran the command and searched into file, there was key available for c: - f: which are logical volumes on the same disk but there was no info for mounted shares G: & Y:


                    \LogicalDisk(C\% Free Space
                    \LogicalDisk(D\% Free Space
                    \LogicalDisk(E\% Free Space
                    \LogicalDisk(F\% Free Space

                    Comment

                    Working...