87. Mikrotik Monitoring Host by Netwatch with SMS alert



You can contact me: plus.google.com/+PhallaCCMT; youtube.com/phallaccmt; facebook.com/Phalla.CCMT; twitter.com/PhallaCCMT and Phalla.CCMT@gmail.com

Script UP:

:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local HostName "Phalla's Phone"
:local HostIP "192.168.88.103"

:log info "$HostName $HostIP is UP"

/tool sms send usb2 "078272270" message="$HostName $HostIP is UP at $CurTime $CurDate.


Alert by Phalla...........................................!"



Script Down:

:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local HostName "Phalla's Phone"
:local HostIP "192.168.88.103"

:log info "$HostName $HostIP is Down"

/tool sms send usb2 "078272270" message="$HostName $HostIP is Down at $CurTime $CurDate.


Alert by Phalla...........................................!"


Previous
Next Post »

3 comments

Write comments
Unknown
AUTHOR
May 1, 2017 at 3:51 AM delete

Excellent Working Like A Charm!

Reply
avatar
Ashish
AUTHOR
August 4, 2017 at 12:44 PM delete

Dear Sir,

Thanks for your great video.
I have set this and work best but some times SMS are not sending from router. If you check port status so PPP out2 in Used by coloumn is blinking it is not get steady.
If I remove and reconnect USB modem so it is not working.
I think I should have to reboot my router so this will work .

I want to know what is this problem and how to solve it?

Waiting for your valuable reply

Regards,
Ashish

Reply
avatar
Adolf
AUTHOR
April 30, 2020 at 6:32 PM delete

Hi

can send sms to multiple phone numbers?

Reply
avatar