Hello,
Does anyone have a solution for writing a Dude function (RouterOS 7.18) that queries a web service returning a JSON value? http://xxxxxxxx:xxxxxxx/get_get_temp_cpu?password=xxxxxxxx&username=xxxxxxxxx&ip=yyy.yyy.yyy.yyy
This function would be used to create a specific probe.
Thanks for your help and advice.
If you can use SNMP that be better and align with Dude.
For JSON values, you MIGHT be able to use the ros_command(“/tool/fetch url=… as-value output=user”). And if using 7.16+ there is a “:deserialize from=json …” that get you an array to pick out a specific value. All this gets a bit complex in context of probe, but SHOULD work if you can align the various things (i.e. a probe logic needs to be considered when you write the function since there is both a success and failure modes etc etc).