In PRTG notification template there is an option to execute HTTP action when a condition is met.
The HTTP action needs a URL, http method and payload.
I kindly require help in order to access the mikrotik through api and run a script called “myscript”.
What would the URL format be?
What is the HTTP method?
What is the code required to execute the script?
Maybe I wasn’t clear in my original post. My apologies.
In PRTG program, you can define a template to send a notification whenever a condition is met, for example (sms, email) etc.
This is a screenshot from PRTG (notification template)
The HTTP action lets you create an api request from PRTG to Mikrotik and run certain script.
My Question:
1-What should I put in the URL field if I want to login to a Mikrotik with an IP address of 192.168.88.1 and run a script named “MyScript” ?
2- Which “HTTP Method” should I select (GET, POST, PUT or PATCH)
Note: If I select POST, PUT or PATCH an additional field opens up called “Payload”,
Perhaps this field is where the code should be placed to run the script on Mikrotik?