# config system globalWhere:
set cpu-use-threshold <percent>
end
# config system automation-actionCreate an automation action to send an email:
edit "high_cpu_debug"
set action-type cli-script
set required enable
set script "diagnose debug cli 8
# diagnose debug console timestamp enable
# diagnose debug enable
# diagnose debug crashlog read
# get system performance status
# get system session status
# diagnose sys session full-stat
# diagnose firewall iprope state
# diagnose sys flash list
# diagnose hardware sysinfo memory
# diagnose hardware sysinfo slab
# diagnose hardware sysinfo shm
# diagnose hardware deviceinfo disk
# get system arp
# diagnose ip arp list
# diagnose ip address list
# get router info routing-table all
# get router info kernel
# diagnose ip rtache list
# diagnose sys top-summary
# diagnose sys top 9 99"
next
end
# config system automation-actionCreate an automation trigger:
edit "auto_high_cpu_email"
set action-type email
set email-to "person@fortinet.com"
set email-subject "CSF stitch alert: high_cpu"
set email-body "%%results%%"
next
end
# config system automation-triggerCreate an automation stitch:
edit "auto_high_cpu"
set event-type high-cpu
next
end
# config system automation-stitchOnce the CPU reaches the threshold, an email will be received.
edit "auto_high_cpu"
set trigger "auto_high_cpu"
set action "high_cpu_debug" "auto_high_cpu_email"
next
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.