Fortinet black logo

CLI Reference

config system alert-policy

config system alert-policy

Use this command to configure system alert policies.

Before you begin:

You must have read-write permission for system settings.

Syntax

config system alert-policy

edit "alert_policy_name"

set status {enable|disable}

set action <datasource>

set comments comments

config alert-member

edit "alert_member_name"

set status {enable|disable}

set alert-name <datasource>

set alert-action-inherit {disable|enable}

set action <datasource>

next

end

next

end

Policy

alert_polciy_name

The name of an alert policy configuration.

status

Enable or disable the alert policy.

action

Set the alert action for the entire policy.

Note: Alert actions include syslog, email, and snmp trap, which can be configured using "config system alert-action". The action you set here affects all members.

Member

alert-member-name

The name of a member of an alert policy.

status

Enable or disable an alert-member.

alert-name

The name of an alert configuration.

alert-action-iherit

Enable or disable.

Note: If enabled, the alert policy member will inherit the action set in the alert policy.

action

Set the action for the alert policy member.

Note: Alert actions include syslog, email, and snmp trap, which can be configured using "config system alert-action". The action you set here affects the policy-member only.

Example

config system alert-policy

edit "disk"

set status disable

set action all

config alert-member

edit "1"

set alert-name disk

set alert-action-inherit disable

set action all

next

end

next

end

config system alert-policy

Use this command to configure system alert policies.

Before you begin:

You must have read-write permission for system settings.

Syntax

config system alert-policy

edit "alert_policy_name"

set status {enable|disable}

set action <datasource>

set comments comments

config alert-member

edit "alert_member_name"

set status {enable|disable}

set alert-name <datasource>

set alert-action-inherit {disable|enable}

set action <datasource>

next

end

next

end

Policy

alert_polciy_name

The name of an alert policy configuration.

status

Enable or disable the alert policy.

action

Set the alert action for the entire policy.

Note: Alert actions include syslog, email, and snmp trap, which can be configured using "config system alert-action". The action you set here affects all members.

Member

alert-member-name

The name of a member of an alert policy.

status

Enable or disable an alert-member.

alert-name

The name of an alert configuration.

alert-action-iherit

Enable or disable.

Note: If enabled, the alert policy member will inherit the action set in the alert policy.

action

Set the action for the alert policy member.

Note: Alert actions include syslog, email, and snmp trap, which can be configured using "config system alert-action". The action you set here affects the policy-member only.

Example

config system alert-policy

edit "disk"

set status disable

set action all

config alert-member

edit "1"

set alert-name disk

set alert-action-inherit disable

set action all

next

end

next

end