Analyzing Disk Space problems.
search cancel

Analyzing Disk Space problems.


Article ID: 36528


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE



  In production environments, applications can become unavailable due to failures to correct mount disk volumes or through disk capacity being completely used (leading to out of space errors).

  A perl script (DiskSpace.txt - attached below) was created to help detect significant changes in capacity on servers where critical components for the web infrastructure execute.

  This enables operations to quickly identify disk resource shortages that could lead to failures unless they are quickly addressed.

  This example shows all the mounts and the percentage of capacity.




Collected Metrics

The script returns the name of the mount and the capacity used as a percentage.


The fully qualified metric name is SuperDomain|hostname|EPAgentProcess|EPAgent|Diskspace:Capacity/mountname

One entry will be returned for each disk that is mounted on the server.






     The name of the mount point and the percentage of capacity used.


EPA Definition

The script is delivered as a perl script, which requires no arguments.


The following is an example of the stateless EPA definition for the provided script.




  introscope.epagent.stateless.DISKSTATS.command=perl ./config/linux /



Design Assumptions

The perl script uses strings to match the standard output to known strings in the output of server-status and strings to locate the substring position of data used in the Introscope metric.


This means if the output of the changes due to configuration differences that perl should tolerate these environmental differences.


If the perl script requires alteration, then a number of variables are available to provide the matching criteria. These are:





   Matching string that must be found in the output


   The metric type which will be returned from the EPAgent


   This defines the name hierarchy  of the metric


This script requires the following items to be available within the environment.


  1.  - Perl
  2.  - Wily Introscope EPAgent
  3.  - Ability to issue the system command df -k.


Additional Information:  

  •    After downloading the script from this article, please modify the script name from DiskSpace.txt to as this is a Perl script.
  •    This document was created to help you with your customization.  Any further help related to this Knowledge Document must be addressed by CA Professional Services.


Component: APMAGT

Attachments get_app