Technical Tip: Automate FortiGate Performance Monitoring: Using Webhooks to Track CPU and Memory Status
Description
This article provides a step-by-step guide to setting up webhooks for real-time monitoring of CPU and memory usage on FortiGate devices.
Scope
FortiGate.
Solution
- Setup the automation stitches on FortiGate as below:
Go to Security Fabric -> Automation -> Stitch.

CLI Part:
config system automation-stitch
edit "webhook"
set trigger "Time_Interval"
config actions
edit 1
set action "CLI Script - System Status"
set required enable
next
edit 2
set action "Web_Hook"
set required enable
next
end
next
end
- Automation Trigger can be setup as below:
Go to Security Fabric -> Automation -> Trigger.

- An Automation Action can be set up as below:
Go to Security Fabric -> Automation -> Action.
In this case, 2 automation actions must be setup. One to run the cli command and another to sent those command output to webhook site.
- CLI Script

- Webhook Notification.

- Once the automation stitch is triggered, the CPU and Memory status information will be sent as an HTTP Post request on the webhook website as shown below:

