Related solutions
Dude v6 - SMS notifications
Requirements
Mikrotik ROS with installed Dude server
USB modem plugged in ROS
Setup instruction
Create new Notification in Dude
Name: SMS-Notification
Type: execute on server
Command:
# Variables
:local notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"
:local usbport "usb1"
#
#
# Firstname Lastname
:local phonenumber "+xxxxxxxxxxx"
#
/tool sms send phone-number="$phonenumber" $usbport message="$notificationtext"
And test it via pressing Test button.
Now you can use it:
Related Wiki topics
Manual:Tools/Sms
Note
Please pay attention to the USB modem channel configuration before use notification. You can set it in “Tools → SMS” menu.
Thank you.
I’ve attached Moto V3x over USB and provided example is working perfectly.
Router OS v6.40.1 on X86 platform (HP ThinClient) & moto V3x for SMS Notifications. For small LAN like mine (15 devices monitored, mostly ping-pong) couldn’t make better solution.
Rudo
April 16, 2019, 1:27pm
3
Thanks as well!
Note: I had to specify the channel as well.
Also added more users to notify.
Command:
# Message
:local notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"
# USB modem details
:local usbport "usb1 channel=0"
# Specify numbers
# User1
:local phonenumber1 "0123456789"
# User2
:local phonenumber2 "0123456789"
# User3
:local phonenumber3 "0123456789"
# Log info for fault finding
:log info "$notificationtext"
# Send notifications
/tool sms send usb1 channel=0 phone-number="$phonenumber1" message="$notificationtext";
:delay 10;
/tool sms send usb1 channel=0 phone-number="$phonenumber2" message="$notificationtext";
:delay 10;
/tool sms send usb1 channel=0 phone-number="$phonenumber3" message="$notificationtext"