Description | This article describes about sending email alert when FortiGuard servers are unreachable. |
Scope | FortiGate 6.x, 7.x |
Solution |
config system automation-trigger edit "WebFilterDown_trigger" set event-type event-log set logid 20119 next end
config sys automation-action edit "FortiGuardDown_debug" set action-type cli-script set script " exe ping service.fortiguard.net exe ping update.fortiguard.net exe ping guard.fortinet.net diagnose debug rating get sys stat get sys perf stat set accprofile "super_admin" next edit "WebFilterDown_email" set action-type email set email-to "admin@abc.com" set email-from "fgt@abc.com" set email-subject "FortiGuard is unreachable, see debug attached" set message "%%results%%" next end
config system automation-stitch edit "WebFilterDown_stitch" set trigger "WebFilterDown_trigger" config actions edit 1 set action "FortiGuardDown_debug" set required enable edit 2 set action "WebFilterDown_email" set required enable next end next end
|