Skip to main content
sjoshi
Staff
Staff
November 5, 2024

Technical Tip: Automate FortiGate Performance Monitoring: Using Webhooks to Track CPU and Memory Status

  • November 5, 2024
  • 0 replies
  • 864 views
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.

 

a.PNG

 

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.

 

a.PNG

 

 

  • 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.

 

  1. CLI Script

 

a.PNG

 

 
  1. Webhook Notification.

 

a.PNG

 

 

  • 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:

 

a.PNG

 

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!