Monitor FortiGate WAN health and clear top bandwidth users via Gmail
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 14 fields: fortigateUrl, commandPhrase, killSuffix…
- Parse Command (Code): runs custom JavaScript code
- Is Email Command? (If): checks a condition and branches into true / false
- Get Full Email (Gmail): get (message)
- Get SD-WAN Members (HTTP Request): calls an HTTP API
- Verify Sender (Code): runs custom JavaScript code
- Get SD-WAN Health (HTTP Request): calls an HTTP API
- Get WAN Capacity (HTTP Request): calls an HTTP API
- Get Top Sources (HTTP Request): calls an HTTP API
- Get Top Destinations (HTTP Request): calls an HTTP API
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - HTTP Request
n8n-nodes-base.httpRequest - SSH
n8n-nodes-base.ssh - Wait
n8n-nodes-base.wait
From the author
Quick overview Monitors FortiGate SD-WAN link health and real-time bandwidth usage. Sends Gmail reports and alerts for WAN outages, congestion, and slow connections. Supports secure, passphrase-verified email commands to identify the top bandwidth user and…