FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ddabhade
Staff
Staff
Article Id 212751
Description This article describes how to configure the automation stitch settings to get an e-mail alert when the WAN link goes down.
Scope FortiGate v6.4.x, v7.0.x, v7.2.x.,7.4.x
Solution

Configuration.

  1. Automation Trigger: Specify log event ID and it is possible to filter for specific interfaces here for example: WAN1.
  2. Automation Action: Specify the Action taken by the FortiGate in the event of a specific event trigger.
  3. Automation stitch: Bind automation trigger and stitch.

 

CLI configuration.

 

Note:

Event ID 22922 is for the link monitor configured here we can change it as per the requirement.

 
ddabhade_5-1653205697351.png

 

Note:

The email server config is not mentioned here, refer to docs.fortinet.com for the email server config.

 

GUI configuration - 

 

Navigate to Security Fabric -> Automation -> Action and select 'Create New'.

 

Captureaa.JPG

 

Select 'Email':

 

Capturebb.JPG

 

Enter the Email address where to get an E-mail alert:

 

Captureccc.JPG

 

Select Trigger and select 'Create New':

 

Captureddd.JPG

 

Name the trigger and add the Link monitor status under the event:

 

Capture3.JPG

 

Select Stitch and then, select 'Create new'.

 

Capturesss.JPG

 

Add the trigger that was created in the above steps.

 

Capture4.JPG

 

Add the action (Email) which was created in the above steps.

 

Captureema.JPG

 

The Configuration is now complete:

 

Capture2nlast.JPG

 

Note:

GUI Test Automation Stitch would be greyed out for that, refer the following link:

Technical Tip: 'Test Automation Stitch' button is greyed out when trying to test a newly created aut...

 

When link monitor status is down event id 22922 is generated by the system which will trigger an e-mail configured in automation action.

 

ddabhade_0-1653939019419.png

 

ddabhade_4-1653204117093.png