This command configures default and global action settings for events. To override actions for a specific event definition, use eventdefinition modify.
Usage
eventdefinitionconfig modify [--smtp-host SMTP_HOST] [--smtp-port SMTP_PORT] [--smtp-user SMTP_USER] [--smtp-password SMTP_PASSWORD] [--smtp-enable-tls|--smtp-disable-tls] [--email-sender SENDER] [--email-subject SUBJECT] [--email-recipients RECIPIENTS] [--webhook-url URL] [--webhook-data PAYLOAD] [--webhook-method POST|GET|PUT|PATCH|DELETE] [--syslog-host SYSLOG_HOST] [--syslog-port PORT] [--syslog-protocol udp|tcp] [--syslog-enable-vms-audit|--syslog-disable-vms-audit] [--syslog-enable-shell-audit|--syslog-disable-shell-audit] [--syslog-enable-ipmi-audit|--syslog-disable-ipmi-audit] [-audit-logs-retention DAYS] [--disable-actions|--enable-actions] [--quota-email-suffix SUFFIX] [--quota-email-provider aggregated|ldap|ad] [--quota-email-interval INTERVAL] [--quota-email-hourly-limit LIMIT]
Options
| Sets the host name of the SMTP server from which to send alarm notification emails. Example: |
| Sets the port used by the SMTP server to send outgoing emails. |
| Sets a user for SMTP host authentication. |
| Sets the password for the SMTP user. |
| Enables sending alarm notification emails over a TLS connection. |
| Disables TLS for sending alarm notification emails (default). |
| Optionally specifies a string that is used globally as the subject for all notification emails. By default, alarm info appears in the subject. Example: |
| Specifies the sender email that appears in alarm notification emails. It is global for all alarm notification emails. Example: |
| Sets default email recipients. These recipients receive notifications of all alarms except those triggered by events that have a different list of email recipients specified in the event definition or for which actions are disabled. Specify RECIPIENTS as a comma separated list of email addresses (no spaces). Example: |
| To send alarms to a syslog server, use this option to specify a remote syslog server's IP address. For example: |
| Sets the syslog port number. Default: 514 |
| If Default: udp. |
| Enables auditing of VMS operations. |
| Disables auditing of VMS operations. |
| Enables auditing of CNode and DNode shell commands. |
| Disables auditing of CNode and DNode shell commands. |
| Enables auditing of CNode and DNode IPMI commands. |
| Disables auditing of CNode and DNode IPMI commands. |
| Sets the number of days to store audit logs on the syslog server. |
| Include this option to configure a webhook to be triggered by default by all types of events. A webhook contacts an external application and invokes an HTTP method in the external application. This feature requires the external application to support webhooks. This option specifies the webhook URL of the external application that you want to trigger. Obtain the webhook URL from the external application. See also |
| Include this option if you are configuring a webhook. See This option specifies which HTTP method to invoke when the webhook is triggered. If the method sends a payload, use |
| Include this option to specify a payload to send if you are configuring a webhook. Relevant depending on the webhook method. See first Specify the PAYLOAD in JSON format encapsulated with ''. Use the data structure supported by the external application. You can include the following variables:
For example: |
| Disables any configured email recipients, webhook and syslog server. |
| Enables any configured email recipients, webhook and syslog server (default). |
| Specifies a suffix to append to user names to form an email address. This is used as the email recipient address for sending a user an email if they exceed a user quota limit. It is used if an email address is not found for the user on a provider. |
| Specifies the query context to used when querying providers for user email addresses in order to send users notifications of exceeding user quotas. Possible values:
|
| Specifies the minimal interval time between quota notification emails sent to a user. Format: For example, if you specify 1 00:00:00, a user will not receive more than one email each day. Example: |
| Sets the maximum allowable number of all the quota notification emails sent to all the users, per hour. |
Example
vcli: admin> eventdefinitionconfig modify --smtp-host mail.company.com --smtp-port 587 --smtp-user smtp-admin --smtp-password wh2tever --smtp-enable-tls --email-sender do_not_reply@company.com --email-recipients storage_admin@company.com,bsmith@company.com,abrown@company.com --syslog-host 192.0.2.0