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:

Post command output to external API.

Mon Sep 21, 2020 3:33 pm

Hi guys , im trying to improve my bgp monitoring plugin.
Currently I connects to my router using api interface , exce the bgp peers print command and parse its output to check if any of my peers is not in "stablished" status.
I would like to avoid api connection.
Router should run an schedulled script and post command output to my server endpoint.
Is it that possible ?
Steeps should be:
Exec command ,
Save command out into variable.
Exec fetch command and use variable content as post body.
Any advice would be wellcome.
Leandro.

Who is online

Users browsing this forum: No registered users and 24 guests