Working with alert rules
The platform comes with a set of predefined alert rules which determine how the alert is handled. If necessary, you can change the rules using the ap config command. If you want to send email notifications for a given alert, you must configure SMTP.
Before you begin
Ensure you read Alert rules to learn about different attributes of alert rules that you can set.
Alert notification
rules are set by default. Most actionable events are sent to customer administrators via email. By
default, only HW_SERVICE_REQUESTED and SW_SERVICE_REQUESTED events are passed to Call Home. Other
less consequential events (set to do nothing
) are simply logged by the Platform
Manager. Any alert (or alert_type) may also be configured so that alerts are sent to an SNMP server.
This also requires SNMP server(s) to be configured as described in Enabling the SNMP interface to retrieve hardware information.
ap config --list alerts_rules
Sample output: Action rules
+----------------------+----------------+----------+
| Scope | Value | Built-in |
+----------------------+----------------+----------+
| default | 1 (send email) | YES |
| ACTION_FAILED | 0 (do nothing) | YES |
| APPLIANCE_EVENT | 0 (do nothing) | YES |
| HW_SERVICE_REQUESTED | 1 (send email) | NO |
| STARTUP_FAILED | 0 (do nothing) | YES |
+----------------------+----------------+----------+
Email rules
+---------+------+-------------------+
| Scope | Mode | Value |
+---------+------+-------------------+
| default | set | admin@pl.ibm.com |
+---------+------+-------------------+
You can also check the existing SMTP configuration using the command ap
config --list smtp
.