MapR 5.0 Documentation : alarm config save


Sets notification preferences for alarms. Permissions required: fc or a


Alarm notifications can be sent to the default email address and a specific email address for each named alarm. If individual is set to 1 for a specific alarm, then notifications for that alarm are sent to the default email address for the alarm type. If a custom email address is provided, notifications are sent there regardless of whether they are also sent to the default email address.

Syntax

CLI

maprcli alarm config save
    [ -cluster <cluster> ]
    -values <values>

REST

http[s]://<host>:<port>/rest/alarm/config/save?<parameters> 

Parameters



Parameter

Description

cluster

The cluster on which to run the command.

values

A comma-separated list of configuration values for one or more alarms, in the following format:
<alarm>,<individual>,<email>
 See Alarm Notification Fields.

Examples

Send alert emails for the AE_ALARM_AEQUOTA_EXCEEDED alarm to the default email address and a custom email address:

CLI

maprcli alarm config save -values "AE_ALARM_AEQUOTA_EXCEEDED,1,test@example.com"

REST

https://r1n1.sj.us:8443/rest/alarm/config/save?values=AE_ALARM_AEQUOTA_EXCEEDED,1,test@example.com