#########################################################################################################
# MikroTik DHCP Alerts Script #
#########################################################################################################
# Author: Rick Frey #
# email: support@rickfreyconsulting.com #
# Username in MikroTik Forum is rickfrey #
######################################################################################################### #
#########################################################################################################
# Features # #
# -Sends and email when a Rouge DHCP server is detected. #
#########################################################################################################
############################################################################################################################
#### The email need to already be configured to use this script (tool e-mail). ##
############################################################################################################################
/ip dhcp-server alert
add disabled=no interface=LAN_Interface on-alert=":local sysname [/system identity get name];\r\
\n/tool e-mail send to=user@yourdomain.com subject=\"Rouge DHCP Server Detected\" body=\"An unknown DHCP server was\
\_detected on \$interface of \$sysname with a ip address of \$address\""
/
