Skip to main content
wanzu
New Member
March 24, 2025
Solved

Custom Email Notifications

  • March 24, 2025
  • 4 replies
  • 2483 views

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

Best answer by ebilcari

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

4 replies

AEK
SuperUser
SuperUser
March 24, 2025
wanzu
wanzuAuthor
New Member
March 25, 2025

Hello AEK 

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

ebilcari
Staff
Staff
March 25, 2025

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
March 25, 2025

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
April 2, 2025

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

wanzu
wanzuAuthor
New Member
April 2, 2025

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
April 2, 2025

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
April 7, 2025

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
April 15, 2025

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