Skip to Content

How to Configure Automation Stitch for DHCP Utilization

This article describes how to configure notification email for DHCP Utilization alerts/logs using Automation Stitch.

Scope

FortiGate.

Solution

Step 1: Configure custom email server or use the default email server.

Step 2: Configure Automation Trigger for FortiGate Event log below.

  • DHCP lease usage full
  • DHCP lease usage high
  • DHCP statistics
  • DHCP lease usage will be generated if the DHCP lease reaches 80% or more.
  • DHCP lease usage full will be generated if 100%.
  • DHCP Statistics will show the statistics: how many IPs are used and total IPs on the pool and the interface it is enabled: Technical Tip: How to see the number free IPs allocated by the internal DHCP server

GUI:

Under Security Fabric > Automation > Trigger and select ‘Create New‘.

Configure Automation Trigger for FortiGate Event log

CLI:

config system automation-trigger
edit "DHCP Utilization"
set event-type event-log
set logid 26006 26005 26003
next
end

Step 3: Configure Automation Action with Email Notification as action.

GUI:

Under Security Fabric > Automation > Action, select ‘Create New‘ -> Email.

Configure Automation Action with Email Notification as action

CLI:

config system automation-action
edit "Email DHCP"
set action-type email
set email-to "[email protected]"
set email-from "[email protected]"
set email-subject "%%log.logdesc%%"
next
end

Step 4: Create an Automation Stitch to use the trigger and action configured above.

GUI:

Under Security Fabric > Automation > Stitch, select ‘Create New‘.

Create an Automation Stitch to use the trigger and action configured above

CLI:

config system automation-stitch
edit "DHCP Utilization"
set trigger "DHCP Utilization"
config actions
edit 1
set action "Email DHCP"
set required enable
next
end
next
end

Email Notification:

Email Notification 1

Email Notification 2