(DI-2002) Example: Number of Active Users on the System
This example shows how you can create your own KPI from an existing KPI to monitor all active users on a system. The existing KPI 'USER_CNT_SER' collects information about the number of active users per each server. You can use the calculation function to calculate the sum of all servers of the source KPIs.
Create a custom KPI
- Go to the Settings > Monitoring settings (or transaction /DVD/MON_CUST).
- Click New entries (F5).
- Fill in all required fields for the custom KPI as displayed in the figure
- KPI name: "ZCUSTOM_USR_CNT_SYS".
- KPI collector: "/DVD/MON_CL_COLLECTOR" (standard collector which is used for creating a KPI from an existing KPI).
- Set Collected on to "Central system". The calculation functions may be performed only on the central system, as on the central system are available all the collected values for other KPIs.
- Use the calculation function "Sum from all servers".
- Fill in Calculate value from 1st KPI: "USER_CNT_SER".
- The other mandatory fields were filled as on the figure. For a complete description see (DI-2002) How to Create a KPI from an Existing KPI.
Save the created KPI (CTRL + S).
Create a Monitoring profile for the custom KPI
- Go to the Settings > Monitoring settings (or transaction /DVD/MON_CUST).
- Double-click Profile definition.
- Click New Entries (F5).
- Fill the profile name ZCUSTOM.
- Double-click Assigned KPIs.
- Click New Entries (F5).
- Fill in the custom KPI name ZCUSTOM_USR_CNT_SYS.
- Save (CTRL+S).
The custom KPI "ZCUSTOM_USR_CNT_SYS" is now assigned to a valid Monitoring profile ZCUSTOM.
Schedule the monitoring of a custom KPI
Custom KPI "ZCUSTOM_USR_CNT_SYS" is now assigned to a valid Monitoring profile "ZCUSTOM". The last step is to execute the monitoring of this KPI for a specific system with the created Monitoring profile:
- In the main screen, go the the Collector Jobs tab.
- Select Create collector job.
- Fill in the System ID on which you want to monitor the KPI.
- Fill the Monitoring profile with a value ZCUSTOM.
- Adjust the Period and Retention time according to your requirements.
- Click (Re)Start collector job.
For information on how to schedule and start a Collector job, see (DI-2002) Schedule the Monitoring of KPIs.
When the monitoring was started and finished successfully, you may display the results of your custom KPI in the main screen. For further information on how to display a KPI, see (DI-2002) Display KPIs.