Monitoring Disk Space on UNC Mounted Drives using Monitoring Studio

How to configure the Monitoring Studio KM to monitor the available disk space on network mounted drives.

Related Topics

Description

This article explains how to configure the Monitoring Studio KM to monitor the available disk space on network mounted drives.

Procedure

To monitor the available disk space on network mounted drives, we need to combine an OS Command Analysis and Numeric Value Extraction.

Step 1: Creating an OS Command Analysis

  1. From the PATROL Console, right-click on the main "Monitoring Studio" icon › KM Commands › New › Command Line Analysis...
  2. Click Next
  3. Specify DIR \\server\share as the command to be executed. server and share must respectively be replaced with your server and share names
  4. Click Next
  5. Leave the other fields to their default value and click Next
  6. Provide appropriate display name and ID and click Finish. A new icon is created in the PATROL Console
  7. Double-click the ReturnOutput item to display the command result; which is refreshed every 2 minutes by default.

Step 2: Creating a Numeric Value Extraction

To create a numeric value extraction:

  1. Right-click the OS Command icon › KM Commands › New › Numeric Value Extraction… and click Next
  2. Specify that you want to extract numeric values from the Lines matching the regular expression “bytes free” and click Next.
  3. Specify that the numeric value is located before the string bytes free
  4. In the Expected format pull-down list, select 100,000.00 and click Next
  5. Leave the field unchanged and click Next
  6. Have the value converted from bytes to GB:
    1. In the Rescaling pull-down list, select Divide the value by
    2. Type 1073741824
    3. Click Next

  7. Choose a valid label, specify that you need to set custom thresholds and click Finish. You will then be asked to set thresholds:
  8. Select Value and click Next
  9. Trigger a WARNING if value is lower than 10; 5 times in a row and an alarm if value is lower than 2; 1 time in a row
  10. Click Set thresholds.

A new object is created in the PATROL Console and a Value graph is generated with the freebytes value coming from the output of our DIR command.