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

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

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
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
AEK
Marcos_FDS1012

I made this configuration to receive by E-mail, when I go to the Interface and disable it, I receive 3 E-mails two DOWN and UP I wanted to receive only one DOWN and nothing else. Captura de tela 2024-07-25 093812.jpg

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
AEK
Marcos_FDS1012

Hello I was using Event 20099 when I changed to 20090 I no longer receive E-mail .

I don't know what I'm doing, I'm going to the interface and disable it.

 

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
AEK
Marcos_FDS1012

I'm receiving e-mail, but when I leave the link down I get two downs and one up, when I return to the link I get an up e-mail just fine, but when it stays down I get 3 e-mails

AEK

Can you share the content of both mails?

AEK
AEK
Marcos_FDS1012

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

AEK

Can you try configure the stitch like shown below a,d try again?

 

event.png

AEK
AEK
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