Community discussions

MikroTik App
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

run customs command when defined event

Fri Sep 20, 2019 4:44 pm

Hi guys, im trying to trigger a custom telegram notification from comand line.
I already have this working , creating a "execute on server" notification type when a host is down.
The command is:
tool fetch url="https://api.telegram.org/{mitoken}/sendMessage\?chat_id=-{number}&text=[Time],Device: [Device.FirstAddress]|[Device.Name]|[Service.ProblemDescription]|[Service.Status]" keep-result=no
Now I want to trigger similar command when bgp session is down, is it possible ? Any idea ?
Regards.
Leandro.
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

Re: run customs command when defined event  [SOLVED]

Fri Oct 04, 2019 4:19 pm

Here is the answer:
viewtopic.php?f=14&t=152623&p=753402#p753402
Hope you can use.

Who is online

Users browsing this forum: No registered users and 36 guests