Creating a trigger
Define the events to trigger the system to take actions. You can define the "FortiWeb Log" trigger event or use the pre-defined triggers including low memory, HA failover, reboot, etc.
FortiWeb supports the following triggers.
Trigger |
Description |
---|---|
System triggers | |
Reboot | The "Reboot" trigger detects whether the system reboots. |
Low memory | The "Low memory" trigger detects whether FortiWeb's available memory is less than the value specified in Log&Report > Log Config > Other Log Settings > Memory Utilization. |
HA |
The "HA" trigger detects whether the following HA events occur:
|
High CPU |
The "High CPU" trigger detects whether the CPU usage of FortiWeb is higher than the value specified in Log&Report > Log Config > Other Log Settings > CPU Utilization. Refer to Use case: Real-time incident alerts for an example of the High CPU use case. |
Local Certificate Expired |
The Local Certificate is used to encrypt the HTTPS connections between:
If the certificate expires, users will see a certificate invalid warning. To avoid such warning messages displayed to users, you can use a "Local Certificate Expired" trigger to detect whether the certificates you have uploaded on the following pages are about to expire then update them in time:
FortiWeb by default doesn't log the SSL certificate expire event. Therefore, to use this trigger, you need to run the following command to set the notification time (the days) to a value other than 0 (0 means disabled), so FortiWeb will send notification on the specified day before the certificate expires. config system global set cert-expire-check-time <integer> end Refer to Use case: Expired SSL certificate management for an example of the use case. |
License Expired |
The "License Expired" trigger detects whether the FortiWeb license expires. Please note that if the network of FortiWeb is disconnected over 48 hours, it will also trigger the "License Expired" event. Refer to Example: Notification Message for the "License Expired" trigger for the suggested message to be sent when "License Expired" trigger occurs. |
FDS DB updates |
This trigger detects whether FortiGuard Database (FDS DB) Update occurs. The FortiGuard Database provides up-to-date threat intelligence. When an FDS DB update occurs, go to the Signature Update Management tab on System > Config > FortiGuard. The newly added or updated signatures are listed there and are set to alert mode by default. Test the signatures first to ensure they don't trigger false positives or block legitimate traffic. Once deemed safe, select the signature and click Approve. Refer toUse case: Automated response to FortiGuard Database (FDS DB) updates for an example of the use case. |
Miscellaneous triggers | |
FortiWeb Log |
Use this trigger to initiate the automation action when system prints certain even logs or attack logs. Refer to the following use cases. |
Schedule |
Use this trigger to schedule FortiWeb to take certain actions regularly. For example, run |
All the System triggers are pre-defined. You can only enter a name and description for them. The configuration is straightforward so we will not elaborate on it.
In the following sections, we will introduce how to create the two triggers that have more complicated settings:
When the trigger occurs, it's important to provide sufficient information in the notification sent to your security or IT team so that they can take appropriate actions. We have provided some example of the messages for your reference: Notification message examples.