Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

alertemail setting

Use this command to configure the FortiGate unit to send an alert email to up to three recipients.

This command can also be configured to send an alert email a certain number of days before FortiGuard licenses expire and/or when the disk usage exceeds a certain threshold amount. You need to configure an SMTP server before configuring alert email settings.

config alertemail setting
    set username {string}   Name that appears in the From: field of alert emails (max. 36 characters). size[35]
    set mailto1 {string}   Email address to send alert email to (usually a system administrator) (max. 64 characters). size[63]
    set mailto2 {string}   Optional second email address to send alert email to (max. 64 characters). size[63]
    set mailto3 {string}   Optional third email address to send alert email to (max. 64 characters). size[63]
    set filter-mode {category | threshold}   How to filter log messages that are sent to alert emails.
            category   Filter based on category.
            threshold  Filter based on severity.
    set email-interval {integer}   Interval between sending alert emails (1 - 99999 min, default = 5). range[1-99999]
    set IPS-logs {enable | disable}   Enable/disable IPS logs in alert email.
    set firewall-authentication-failure-logs {enable | disable}   Enable/disable firewall authentication failure logs in alert email.
    set HA-logs {enable | disable}   Enable/disable HA logs in alert email.
    set IPsec-errors-logs {enable | disable}   Enable/disable IPsec error logs in alert email.
    set FDS-update-logs {enable | disable}   Enable/disable FortiGuard update logs in alert email.
    set PPP-errors-logs {enable | disable}   Enable/disable PPP error logs in alert email.
    set sslvpn-authentication-errors-logs {enable | disable}   Enable/disable SSL-VPN authentication error logs in alert email.
    set antivirus-logs {enable | disable}   Enable/disable antivirus logs in alert email.
    set webfilter-logs {enable | disable}   Enable/disable web filter logs in alert email.
    set configuration-changes-logs {enable | disable}   Enable/disable configuration change logs in alert email.
    set violation-traffic-logs {enable | disable}   Enable/disable violation traffic logs in alert email.
    set admin-login-logs {enable | disable}   Enable/disable administrator login/logout logs in alert email.
    set FDS-license-expiring-warning {enable | disable}   Enable/disable FortiGuard license expiration warnings in alert email.
    set log-disk-usage-warning {enable | disable}   Enable/disable disk usage warnings in alert email.
    set fortiguard-log-quota-warning {enable | disable}   Enable/disable FortiCloud log quota warnings in alert email.
    set amc-interface-bypass-mode {enable | disable}   Enable/disable Fortinet Advanced Mezzanine Card (AMC) interface bypass mode logs in alert email.
    set FIPS-CC-errors {enable | disable}   Enable/disable FIPS and Common Criteria error logs in alert email.
    set FSSO-disconnect-logs {enable | disable}   Enable/disable logging of FSSO collector agent disconnect.
    set ssh-logs {enable | disable}   Enable/disable SSH logs in alert email.
    set FDS-license-expiring-days {integer}   Number of days to send alert email prior to FortiGuard license expiration (1 - 100 days, default = 100). range[1-100]
    set local-disk-usage {integer}   Disk usage percentage at which to send alert email (1 - 99 percent, default = 75). range[1-99]
    set emergency-interval {integer}   Emergency alert interval in minutes. range[1-99999]
    set alert-interval {integer}   Alert alert interval in minutes. range[1-99999]
    set critical-interval {integer}   Critical alert interval in minutes. range[1-99999]
    set error-interval {integer}   Error alert interval in minutes. range[1-99999]
    set warning-interval {integer}   Warning alert interval in minutes. range[1-99999]
    set notification-interval {integer}   Notification alert interval in minutes. range[1-99999]
    set information-interval {integer}   Information alert interval in minutes. range[1-99999]
    set debug-interval {integer}   Debug alert interval in minutes. range[1-99999]
    set severity {option}   Lowest severity level to log.
            emergency     Emergency level.
            alert         Alert level.
            critical      Critical level.
            error         Error level.
            warning       Warning level.
            notification  Notification level.
            information   Information level.
            debug         Debug level.
end

alertemail setting

Use this command to configure the FortiGate unit to send an alert email to up to three recipients.

This command can also be configured to send an alert email a certain number of days before FortiGuard licenses expire and/or when the disk usage exceeds a certain threshold amount. You need to configure an SMTP server before configuring alert email settings.

config alertemail setting
    set username {string}   Name that appears in the From: field of alert emails (max. 36 characters). size[35]
    set mailto1 {string}   Email address to send alert email to (usually a system administrator) (max. 64 characters). size[63]
    set mailto2 {string}   Optional second email address to send alert email to (max. 64 characters). size[63]
    set mailto3 {string}   Optional third email address to send alert email to (max. 64 characters). size[63]
    set filter-mode {category | threshold}   How to filter log messages that are sent to alert emails.
            category   Filter based on category.
            threshold  Filter based on severity.
    set email-interval {integer}   Interval between sending alert emails (1 - 99999 min, default = 5). range[1-99999]
    set IPS-logs {enable | disable}   Enable/disable IPS logs in alert email.
    set firewall-authentication-failure-logs {enable | disable}   Enable/disable firewall authentication failure logs in alert email.
    set HA-logs {enable | disable}   Enable/disable HA logs in alert email.
    set IPsec-errors-logs {enable | disable}   Enable/disable IPsec error logs in alert email.
    set FDS-update-logs {enable | disable}   Enable/disable FortiGuard update logs in alert email.
    set PPP-errors-logs {enable | disable}   Enable/disable PPP error logs in alert email.
    set sslvpn-authentication-errors-logs {enable | disable}   Enable/disable SSL-VPN authentication error logs in alert email.
    set antivirus-logs {enable | disable}   Enable/disable antivirus logs in alert email.
    set webfilter-logs {enable | disable}   Enable/disable web filter logs in alert email.
    set configuration-changes-logs {enable | disable}   Enable/disable configuration change logs in alert email.
    set violation-traffic-logs {enable | disable}   Enable/disable violation traffic logs in alert email.
    set admin-login-logs {enable | disable}   Enable/disable administrator login/logout logs in alert email.
    set FDS-license-expiring-warning {enable | disable}   Enable/disable FortiGuard license expiration warnings in alert email.
    set log-disk-usage-warning {enable | disable}   Enable/disable disk usage warnings in alert email.
    set fortiguard-log-quota-warning {enable | disable}   Enable/disable FortiCloud log quota warnings in alert email.
    set amc-interface-bypass-mode {enable | disable}   Enable/disable Fortinet Advanced Mezzanine Card (AMC) interface bypass mode logs in alert email.
    set FIPS-CC-errors {enable | disable}   Enable/disable FIPS and Common Criteria error logs in alert email.
    set FSSO-disconnect-logs {enable | disable}   Enable/disable logging of FSSO collector agent disconnect.
    set ssh-logs {enable | disable}   Enable/disable SSH logs in alert email.
    set FDS-license-expiring-days {integer}   Number of days to send alert email prior to FortiGuard license expiration (1 - 100 days, default = 100). range[1-100]
    set local-disk-usage {integer}   Disk usage percentage at which to send alert email (1 - 99 percent, default = 75). range[1-99]
    set emergency-interval {integer}   Emergency alert interval in minutes. range[1-99999]
    set alert-interval {integer}   Alert alert interval in minutes. range[1-99999]
    set critical-interval {integer}   Critical alert interval in minutes. range[1-99999]
    set error-interval {integer}   Error alert interval in minutes. range[1-99999]
    set warning-interval {integer}   Warning alert interval in minutes. range[1-99999]
    set notification-interval {integer}   Notification alert interval in minutes. range[1-99999]
    set information-interval {integer}   Information alert interval in minutes. range[1-99999]
    set debug-interval {integer}   Debug alert interval in minutes. range[1-99999]
    set severity {option}   Lowest severity level to log.
            emergency     Emergency level.
            alert         Alert level.
            critical      Critical level.
            error         Error level.
            warning       Warning level.
            notification  Notification level.
            information   Information level.
            debug         Debug level.
end