This configuration page is used to configure log alert rules to enable the system to send alert email to the administrator's email addresses when specific system logs are generated.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | mail_from | string | Sets the sender's email address on the local email server of the appliance. |
| default | host_name | string | Sets the host name of the local email server that sends the alert emails. |
| alert | alert | asso | |
| external_enable | boolean | Sets whether the external email server is used to send alert emails. If disabled, the system will use local email server to send alert emails. | |
| external_server | string | Sets the IP address or host name of the external SMTP email server. | |
| external_server_port | port | ||
| external_server_ssl | boolean | ||
| external_server_user | string | Sets the username of the sender's email account on the external SMTP email server. | |
| external_server_pwd | string | Sets the password of the sender's email account on the external SMTP email server. | |
| relay | relay | boolean | |
| relay | relay_server | asso |
{
"EmailSettings": {
"meta": {
"abstract": false,
"verbose_name": Log Alert,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, alert, mail, relay, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: mail_from, host_name, alert, external_enable, external_server, external_server_port, external_server_ssl, external_server_user, external_server_pwd, relay, relay_server, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | mail_from | string | Sets the sender's email address on the local email server of the appliance. |
| default | host_name | string | Sets the host name of the local email server that sends the alert emails. |
| alert | alert | asso | |
| external_enable | boolean | Sets whether the external email server is used to send alert emails. If disabled, the system will use local email server to send alert emails. | |
| external_server | string | Sets the IP address or host name of the external SMTP email server. | |
| external_server_port | port | ||
| external_server_ssl | boolean | ||
| external_server_user | string | Sets the username of the sender's email account on the external SMTP email server. | |
| external_server_pwd | string | Sets the password of the sender's email account on the external SMTP email server. | |
| relay | relay | boolean | |
| relay | relay_server | asso |
{
"EmailSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"EmailSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"EmailSettings": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: mail_from, host_name, alert, external_enable, external_server, external_server_port, external_server_ssl, external_server_user, external_server_pwd, relay, relay_server, |
| Field Name | Type | Description |
|---|---|---|
| mail_from | string | Sets the sender's email address on the local email server of the appliance. |
| host_name | string | Sets the host name of the local email server that sends the alert emails. |
| external_enable | boolean | Sets whether the external email server is used to send alert emails. If disabled, the system will use local email server to send alert emails. |
| external_server | string | Sets the IP address or host name of the external SMTP email server. |
| external_server_port | port | |
| external_server_ssl | boolean | |
| external_server_user | string | Sets the username of the sender's email account on the external SMTP email server. |
| external_server_pwd | string | Sets the password of the sender's email account on the external SMTP email server. |
| relay | boolean |
All configuration fields and their values are replied:
{
"EmailSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"EmailSettings": {
"instance_id":<instance_id>,
"alert":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| log_id | uint32 | |
| regular_expression | string | |
| address | ||
| interval | int | |
| type | enum | Available values:
|
{
"LogAlert": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"EmailSettings": {
"instance_id":<instance_id>,
"relay_server":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| relay | string |
{
"RelayServer": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}