Create a self-health monitor to use custom health monitor script

You can create a self-health monitor to use custom health monitor script to monitor specified Event Management components.

Before you begin

Role required: evt_mgmt_admin

About this task

To augment the self-health monitors that are provided with the base system, you can create a self-health monitor to monitor the components that you specify. The health monitor scripts that are provided with the base system are listed in the following table.
You can create alert management rules to respond to and remediate the issues detected by self-health. Alerts are generated based on the specified severity and threshold. Navigate to Event Management > Administration > Self-Health Monitoring for the monitors that are provided with the base instance to monitor the issues detected by self-health, which are:
Note: To prevent a self-health monitor from detecting the connector status, at any time you can clear the Active check box of the monitor and then click Update.

Procedure

  1. Navigate to Event Management > Administration > Self-Health Monitoring, and click New.
  2. On the form, fill in the fields.
    Table 2. Monitoring Configuration form
    Field Description
    Name Descriptive and meaningful name for the monitor.
    Description Text narrative that describes the monitor.
    Active Check box to enable the monitor.
    Monitoring job frequency [seconds] Frequency that the monitoring job should run. Default: 120 seconds.
    Last Run Last run date and time. These values are automatically updated.
    Script Monitoring script. Click the search icon. The existing scripts are listed in the Health Monitor Scripts screen, or click New to create a custom health monitor script. For more information about creating a custom health monitor script, see step 3.
    Note: Regarding all the following threshold configuration fields: All monitored values are compared against the thresholds. If a monitored value exceeds a threshold, an alert with the appropriate severity is issued.
    Critical Threshold Any point above the value is considered a critical consequence.
    Major Threshold Any point above the value, but below the value of the Critical Threshold, is considered a major consequence.
    Minor Threshold If exceeded, the value is considered a minor consequence.
    Warning Threshold If the value is exceeded, a warning is issued.
    Additional information Further information about the monitor.
  3. To create a custom health monitor script, on the Monitoring Configuration form, next to the Script field, click the search icon to open the Health Monitor Scripts form, and click New.
  4. On the form, fill in the fields.

    You can use the Monitoring Configurations [em_monitor_conf] table for self-health monitoring configuration, the Health Monitor Scripts [em_monitor_scripts] table for scripts, and Monitoring States [em_monitor_state] table for displaying the results of the monitor, as initialized inside runInsertHealthMonitorScripts.

    For more information about script includes and APIs, see:Script includes that are installed with Event Management

  5. Click Submit.

Result

To monitor the Event Management components that you specify, you can configure a self-health monitor that uses the custom health monitor script that you created.