Listing the Configured Notification Rules

To list all the rules, use notification-rule-list.

# notification-rule-list total 2

ID: a0f6fbbd-04dc-4584-95e7-9989a5076be6
Name: info_events
Threshold: INFORMATIONAL
Format: xml
ID: bee50a76-4575-4da1-8d05-ea4758ced51e

Name:

info_events
Threshold: INFORMATIONAL
Format: xlm

To view the details of a rule use the --name option

# notification-rule-list --name info_events

ID: a0f6fbbd-04dc-4584-95e7-9989a5076be6
Name: info_events
Threshold: INFORMATIONAL
Users: [Name: info_events, ID: 608dfb69-58d0-44f9-a12c-7da1396b5746, Enabled: true]

Example event notifications via email

Share create event:

<pdevent>

<uuid>5d52f2f9-670f-42d5-a007-1a0f65e2c88c</uuid>

<timestamp_utc>2021-07-19 16:21:40</timestamp_utc>

<timestamp_utc_offset>+0000</timestamp_utc_offset>

<systemId>7d170b64-c472-453d-a627-94e9f8f363c7</systemId>

<severity>INFORMATIONAL</severity>

<code>ADDED</code>

<description>share Apps added by admin</description>

<user>admin</user>

<originator>Uoid [uuid=621bccf9-cecb-414d-8f2b-7323d2110bd3, objectType=SHARE]</originator>

<technicianatwork>No</technicianatwork>

</pdevent>

Critical event example:

<pdevent>

<uuid>9e7e6124-599f-4ce2-b480-99986ff374c4</uuid>

<timestamp_utc>2021-07-19 16:51:26</timestamp_utc>

<timestamp_utc_offset>+0000</timestamp_utc_offset>

<systemId>7d170b64-c472-453d-a627-94e9f8f363c7</systemId>

<severity>CRITICAL</severity>

<code>MISSING_STORAGE_VOLUME</code>

<description>No writable backend storage volumes. At least 1 writable volume must be added before using the namespace.</description>

<user>admin</user>

<originator>Uoid [uuid=7d170b64-c472-453d-a627-94e9f8f363c7, objectType=CLUSTER]</originator>

<technicianatwork>No</technicianatwork>

</pdevent>

Disabling email events

To disable email events, remove the notification rule(s) for the relevant email events.

# notification-rule-remove --name info_events success