Description
This article describes how to get an email alert, at a particular time interval
with respect to the MEMORY and CPU usages.
Scope
FortiGate.
Solution
Go to the Security Fabric -> Automation, select 'Create New' and add a name (EX TEST).
After that, select 'Add Trigger' option and select 'Create'.
From the open tab select Forti-os event log under miscellaneous.
Then add a name (EX- Mem-CPU usages) under the event filed, select 'System
performance statistics', and select 'OK'.
Then select the trigger and select 'Apply'.
Thereafter click on add action and edit the default email setting.
To -the email section add the email (EX- abc@gmail.com).
Then edit the subject and body as per requirement and select 'OK'.
On the minimum interval filed, it is possible to set how frequent to get an alert.
Then select the default email and select 'Apply'.
The sample logs will look like the below.
date=2022-04-29 time=09:08:45 devid="FGVM02TM20000569" devname="nitrogen-kvm60" eventtime=1651216124813424037 tz="+0200" logid="0100040704" type="event" subtype="system" level="notice" vd="root" logdesc="System performance statistics" action="perf-stats" cpu=0 mem=55 totalsession=39 disk=1 bandwidth="5/115" setuprate=1 disklograte=0 fazlograte=0 freediskstorage=15190 sysuptime=87022 waninfo="N/A" msg="Performance statistics: average CPU: 0, memory: 55, concurrent sessions: 39, setup-rate: 1"