run customs command when defined event
Posted: 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:
Now I want to trigger similar command when bgp session is down, is it possible ? Any idea ?
Regards.
Leandro.
I already have this working , creating a "execute on server" notification type when a host is down.
The command is:
Code: Select all
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
Regards.
Leandro.