(DI-2311) Example: Number of Inactive Objects on the System
This example shows how you can create your KPI to collect information about the number of inactive objects on the monitored system.
Define a custom KPI for SQL Collector
- Go to Settings > Collector settings (or transaction /DVD/MON_COL).
- Select the collector /DVD/MON_CL_COL_SQL.
- Double-click KPI.
- Click New Entries (F5).
- Fill in all required fields for custom KPI as display in the figure. All field descriptions can be found in the chapter Define a Custom KPI.
- Save your KPI (CTRL + S).
Choose how data is collected into the custom KPI through a SQL SELECT statement
- Double-click Inputs & rules.
- Select Edit next to the Input table /DVD/MON_KPISQL1.
- Click Edit (Ctrl + F1) and then Create new records (F6).
In the next dialog enter the KPI name 'ZCUSTOM_INACTIVE_OBJECT' and fill in the SQL statement.
The SQL Statement for inactive objects is SELECT count(*) FROM DWINACTIV WHERE delete_flag <> 'X'.- Save the changes (CTRL + S).
Create a Monitoring profile for the custom KPI
Before you start to collect the custom KPI, you must assign it to a Monitoring profile. To create a custom Monitoring profile and assign it to this custom KPI, follow these steps:
- Go to the Settings > Monitoring settings (or transaction /DVD/MON_CUST).
- Double-click Profile definition.
- Click New Entries (F5).
- Fill in the profile name ZCUSTOM.
- Double-click Assigned KPIs.
- Click New Entries (F5).
- Fill in the custom KPI name ZCUSTOM_INACTIVE_OBJECT.
- Save (CTRL+S).
Schedule the monitoring of a custom KPI
Custom KPI "ZCUSTOM_INACTIVE_OBJECT" is now assigned to a valid Monitoring profile "ZCUSTOM". The last step is to execute the monitoring of KPIs for a specific system with the created Monitoring profile:
- On 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 in the Monitoring profile with the 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 the chapter Schedule the Monitoring of KPIs.
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.