Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Marcos_FDS1012
New Contributor III

FortiGate automation - Send email or telegram or WhatsApp notifications.

Hello,

I'm trying to create a notification when my internet link is down to send a message by e-mail, but I'm getting 3 e-mails with DOWN and UP status, would you have a tutorial I can see where I'm going wrong?

 

Another thing, would it be possible to send this by telegram or WhatsApp? I can't do it through teams because Microsoft is giving me an error in the apps.

 

I'll send a printout of my settings

 

Captura de tela 2024-07-25 091900.jpgCaptura de tela 2024-07-25 091940.jpgCaptura de tela 2024-07-25 092153.jpg

5 Solutions
AEK
SuperUser
SuperUser

Hi Marcos

I don't think you can send Telegram or WhatsApp message from FG, but I guess you can do it from your monitoring server, as it receives the related syslog message or snmp trap from FG.

AEK

View solution in original post

AEK
AEK

You may use the "status" field in the trigger to check if it matches the right value (I don't know what is the value to match).

https://docs.fortinet.com/document/fortiproxy/7.4.4/log-message-reference/20090/20090-log-id-intf-li...

Didn't test it but I think it should work.

AEK

View solution in original post

AEK
AEK

Then you may keep 20099. It also has "status" field.

https://docs.fortinet.com/document/fortigate/7.4.4/fortios-log-message-reference/20099/20099-log-id-...

As per my research, in your case the "status" field must match the string "DOWN" (in capital letters).

AEK

View solution in original post

AEK
Marcos_FDS1012
New Contributor III

Of course, as I said, I receive 3 e-mails, two down and one up.

 

Captura de tela 2024-07-25 132929.pngCaptura de tela 2024-07-25 133032.pngCaptura de tela 2024-07-25 133121.pngCaptura de tela 2024-07-25 133150.png

View solution in original post

AEK

So can you try "up->down" instead, like suggested by dbhavsar below?

AEK

View solution in original post

AEK
16 REPLIES 16
Marcos_FDS1012
New Contributor III

When I do this I don't get an e-mail, if I take it off I do

AEK

So can you try "up->down" instead, like suggested by dbhavsar below?

AEK
AEK
Marcos_FDS1012
New Contributor III

I did it too but it gave me an error

AEK

Please try this:

  • Field name "status" not "Status"
  • Value: "DOWN"
AEK
AEK
Marcos_FDS1012
New Contributor III

Follow Captura de tela 2024-07-25 152133.png

dbhavsar
Staff
Staff

Good day @Marcos_FDS1012 ,

 

- In your first screen shot you can filter the field by using following value:

Field: Config Attribute  > Value: status[up->down]

- after that you will only receive emails if the status changes from UP to DOWN.

DNB
Marcos_FDS1012

Hello,

you say so? I use Event 20099 or 20090

 

Captura de tela 2024-07-25 104606.png

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors