Page 1 of 1

run customs command when defined event

Posted: Fri Sep 20, 2019 4:44 pm
by leostereo
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.

Re: run customs command when defined event  [SOLVED]

Posted: Fri Oct 04, 2019 4:19 pm
by leostereo
Here is the answer:
viewtopic.php?f=14&t=152623&p=753402#p753402
Hope you can use.