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 

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

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 

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

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

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

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

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

 

 

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

Emirjon
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT