I’m working on simple monitoring system for checking uptime of windows server.
I need to send request to a web page for sending SMS if Mikrotik netwatch tool detects a down time.
How can i send request to this page:
http://webservice.xxx.com/WS/httpsend/?username=xxx&password=xxx&from=xxx&to=xxx&text=xxx
Please help me.
I’m in a hurry.
what about
/tool fetch url=
paste the full command, and the mikrotik will attempt to connect to that url, passing the in the parameters you supply.
Thank you so much for your reply.
I tested /tool fetch and it does not work for this purpose. it does not send query string and only work for download any file.
It does work, you may need to use a php file on the remote server to act as a proxy.
I have /tool fetch sending commands to our dashboard via a php file , maybe you could modify this approach?
example:
/tool fetch urtl=http://www.server.com/msg.php?command=test
php:
<?PHP
$command=$_GET['command'];
echo $command;
?>