Table of Contents

Monitoring

@since 11.1.0

Monitoring agenda is available under ``System`` - ``Monitoring`` main menu.

Agenda shows monitoring results and configured monitoring evaluators. Configured evaluators creates monitoring results about CzechIdM application state (e.g. synchronization is running, contains errors). Each evaluator provides one monitoring result. Last monitoring results (by monitoring evaluator) with warning and error level are shown in top navigation:

Monitoring evaluator can be provided from custom module.

Common monitoring evaluator configuration properties:

Custom module can define additional configuration properties, which are required by evaluator implementation.

Product provided monitoring evaluators

Product provided monitoring evaluators are initialized automatically, after application starts. If you don't want to use this monitoring evaluators, then disable them. If they are deleted, then will be created again, after application is restarted (the same behavior as for other product init data)

H2DatabaseMonitoringEvaluator

Warning about H2 database usage ⇒ H2 database is not supposed to be used for production environment.

DemoAdminMonitoringEvaluator

Warning about demo admin credentials are used.

DatabaseTableMonitoringEvaluator

Warning about too many records in database table.

Parameters

SynchronizationMonitoringEvaluator

Check synchronization execution.

Parameters

Synchronization monitoring auto configuration

Synchronization monitoring evaluator is created / deleted automatically after synchronization configuration is created or deleted.

Auto configuration can be disabled by configuration property:
# disable / enable processor
idm.sec.acc.processor.acc-sync-config-monitoring-auto-configuration-processor.enabled=false

ProvisioningOperationMonitoringEvaluator

@since 11.2.0

Warning about errors in provisioning queue.

Parameters

Failed provisioning operation can be ignored (hidden) from monitoring warning - bulk action is available in provisioning operation table (update monitoring result authority is required).

EntityEventMonitoringEvaluator

@since 11.2.0

Warning about errors in event queue.

Parameters

Failed entity event can be ignored (hidden) from monitoring warning - bulk action is available in entity event table (update monitoring result authority is required).

EntityEventLockQueueMonitoringEvaluator

@since 12.1.0

Check, that not too many threads are waiting for entity event lock. CzechIdM only allows a single thread at a time to access the entity event queue. Having too many threads waiting for this lock may indicate some problems with the environment.

Parameters

LongRunningTaskMonitoringEvaluator

@since 11.2.0

Warning about errors in long running task queue.

Parameters

Failed long running task can be ignored (hidden) from monitoring warning - bulk action is available in long running task table (update monitoring result authority is required).

LongRunningTaskResultMonitoringEvaluator

@since 12.1.0

Warning about errors in processed items in long-running tasks. This monitoring fails for tasks, that contain failed items among their processed items no matter the result of the task itself.

Parameters

Failed long-running task can be ignored (hidden) from monitoring warning - bulk action is available in long-running task table (update monitoring result authority is required). If you mark long-running task as ignored, all of its failed processed items will be ignored.

LoggingEventMonitoringEvaluator

@since 11.2.0

Warning about errors in logging events.

Parameters

Example security setting

Person - monitoring configurer

Person can configure monitoring evaluators, read and update monitoring results.

Set the role authorization policies as follows:

Update monitoring result authority is required for ignore records (~ results) from monitoring warnings. Bulk action for ignore records in monitoring were added for long running tasks, entity events and provisioning operations in version 11.2.0.

Person - monitoring result reader

Person can read monitoring results (~ read application state).

Set the role authorization policies as follows:

Rest usage

Examples of execute and get monitoring results. You can use swagger for run examples bellow or to find atry all available endpoints for monitoring.

Monitoring code can be configured for user frienlty rest url. Uuid monitoring identifier is required otherwise.

Examples bellow uses demo admin/admin credetials and IdM runs on localhost.

Execute monitoring

curl -X PUT "http://localhost:8080/idm-backend/api/v1/monitorings/provisioning-queue-monitoring/execute" -H  "accept: */*" -H  "authorization: Basic YWRtaW46YWRtaW4="

Execute monitoring synchronously and get the current result as IdmMonitoringResultDto in json.

Get last monitoring result

curl -X GET "http://localhost:8080/idm-backend/api/v1/monitorings/provisioning-queue-monitoring/last-result" -H  "accept: */*" -H  "authorization: Basic YWRtaW46YWRtaW4="

Get the last result as IdmMonitoringResultDto in json.

Get all last monitoring results

curl -X GET "http://localhost:8080/idm-backend/api/v1/monitoring-results?lastResult=true&size=500" -H  "accept: */*" -H  "authorization: Basic YWRtaW46YWRtaW4="

Future development