Skip to main content
wanzu
New Member
Mar 24, 2025 3:19 PM UTC
Solved

Custom Email Notifications

Hello Team

Am inquiring if any user has been able to set custom  email notifications for the fortinac like  Authentication failures or a connected device  instead of using the default email .

#Fortinac Email notifications

ebilcari
ebilcariAnswer
Staff
Apr 2, 2025 11:46 AM UTC

There is a link on the previous reply referring to this article, you can also check this one.

Emirjon

12 replies

AEK
SuperUser
SuperUser
Mar 24, 2025 8:03 PM UTC
wanzu
wanzuAuthor
New Member
Mar 25, 2025 12:02 PM UTC

Hello AEK 

I was referring to the notifications from events and alarm's not the portal ones 

Translate
ebilcari
Staff
Staff
Mar 25, 2025 9:02 AM UTC

If you are referring to 'Event to Alarm Mapping' than the email template is built-in in the system. I'm not aware of any options to personalize it's content. You can explore the options with a Custom Script which gives more flexibility:

mapping.PNG

Translate
Emirjon
wanzu
wanzuAuthor
New Member
Mar 25, 2025 12:10 PM UTC

Hello @ebilcari

Yes am  referring to these alerts take an  example of the alert below , how can i customize it  Alert sample.PNG 

Translate
wanzu
wanzuAuthor
New Member
Apr 2, 2025 10:34 AM UTC

And where are they located if am to use a script FortiNAC 

Translate
wanzu
wanzuAuthor
New Member
Apr 2, 2025 12:45 PM UTC

Hello @ebilcari  much appreprication for the  guidance  so far, am  inquiring  where is the location of these alarms in the fortinac itself , i have not configured the syslog server , i need to capture the alarm as it being generated or after being generated and then modify the contents before sending the email.

Alarms generated.PNG

Translate
ebilcari
Staff
Staff
Apr 2, 2025 1:53 PM UTC

Firstly you need to create a 'Mappings' to tie the event and the call of the custom script. The script can parse the event data, modify the content and than send the email. I will try to create a specific script and maybe publish it as an article in the next days.

 

send custom script.PNG

Translate
Emirjon
wanzu
wanzuAuthor
New Member
Apr 7, 2025 1:05 PM UTC

Hello @ebilcari , two more questions

1. Where are the generated alarms stored( physical location of the alarms log),

2. Wrote a custom script (tested sending email is working fine when an alert is generated) but i have no where to get the alarms details that must be sent to email.

Attached a sample of generated alarm.

 

AlarmSample.PNG

 

Configuration.PNG

 

 

Translate
ebilcari
Staff
Staff
Apr 15, 2025 2:42 PM UTC

The message content is sent as a variable (string) to the script when it is called. I tested with a bash script and collected the information with:

event=$1

Translate
Emirjon
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024