(DI-2211) Example: Percentage of free space on the root partition
In this example, you might find brief instructions on how to create a custom KPI that monitors a percentage of the free space on root partition (based on (DI-2211) Collector for Disk/Folder Space Utilization).
For more information on how to create a custom KPI based on this type of collector, see the chapter Create a KPI through the Collectors with a Custom KPI.
Step 1: Define a custom KPI
Go to Settings > Monitoring settings (or transaction /DVD/MON_CUST).
Find and select KPI FS_ROOT_FREE
Copy this KPI into your custom KPI (F6) - for example, ZFS_ROOT_FREE
Check all required fields for your custom KPI as displayed on the figure below (if needed, change the values according to your needs):
KPI name: ZFS_ROOT_FREE
Description: Free space monitoring on root partition
KPI collector: /DVD/MON_CL_COL_SYS_FS
Fill in all remaining fields for a custom KPI as displayed in the figure below. All the field descriptions can be found in the chapter Define a Custom KPI.
Save the KPI definition (CTRL + S).
Step 2: Choose how data is collected into the custom KPI
Select Settings > Collector settings (or the transaction /DVD/MON_COL)
Select the collector /DVD/MON_CL_COL_SYS_FS.
Double-click Inputs & rules.
Select Edit next to the Input table /DVD/MON_SYS_FS1.
Click Switch mode (Edit) (CTRL + F1) and then Create new records (F6).
Define new rule:
Set system ID (optional) - when empty it applies to all systems
Fill in the KPI name with your custom KPI name. In our example: ZFS_ROOT_FREE.
Set Value result. to FREE_PERC.
Fill Disc name to the root partition (or to any other path to be monitored).
7. Save the record (CTRL + S).
Step 3: Assign a Monitoring profile to the custom KPI
Before you start to collect the created KPI, you must assign it to a Monitoring profile. In this example, we don't create a new Monitoring profile but assign the custom KPI to the default Monitoring profile DEF_5MIN.
Go to the Settings > Monitoring settings (or transaction /DVD/MON_CUST).
Double-click Profile definition.
Select and set your own Monitoring profile as described in the chapter Define a Monitoring Profile for a KPI.
Double-click Assigned KPIs.
Click New Entries (F5).
Fill in the KPI name ZFS_ROOT_FREE
Save (CTRL+S).
The custom KPI ZFS_ROOT_FREE is now assigned to your custom Monitoring profile.
Step 4: Schedule the monitoring of a custom KPI
The last step is to start the monitoring of the KPI for a specific system with its assigned custom Monitoring profile.
You may check in the Collector Jobs tab, if you created before a Collector job for the Monitoring profile of your custom KPI and if it is scheduled.
For information on how to schedule and start monitoring KPIs belonging to a Monitoring profile, see the chapter Schedule the Monitoring of KPIs.
If you created before a Collector job for your Monitoring profile of your custom KPI:
Go to the Collector Jobs tab
Find the Monitoring profile and click Stop and Start in the field Coll.job.
In the fields Last status icon and Job last status is displayed when the Collector job run is completed.
If you didn't create a Collector job for the Monitoring profile, please see the example below on how to start the monitoring of the custom KPI.
On the main screen, go to the Collector Jobs tab.
Select Create collector job.
Fill in the System ID on which you want to monitor the KPI.
Fill in your custom Monitoring profile
Adjust the Period and Retention time according to your requirements.
Click (Re)Start collector job.
When the Collector job was executed successfully, you may display the results of your custom KPI on the main screen. For further information on how to display a KPI, see the chapter Display KPIs.