I'm very new to EEM and have created an applet that will send a email when port secuirty has been tripped and is logged in the syslog.
I'm trying to figure out how to have the applet only send one email and not continuesly send as the messages log. Also I have seen that there are variables that can be put in to the email like ports or the actual syslog message but haven't been able to to figure them out yet. Any help would be greatly appericated.
event manager environment email_server n.n.n.n
event manager environment email_from test@test.com
event manager environment email_to test@test.com
event manager applet Port_sec
event syslog pattern "Security violation occurred"
action 2 mail server "$email_server" to "$email_to" from "$email_from" subject "Port Security Has been tripped"
Thanks