89. Mikrotik Monitoring Traffic on interface by SMS and Email alert




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

Download Script:

:local CurDate [/system clock get date] 
:local CurTime [/system clock get time] 
:local DSpeed "10Mbps"
:local StatusTraffic "Download"
:local OnInterface "Bridge-LAN"

#WriteDown2Log
:log info "$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface"

#SMS
/tool sms send phone-number="077272270" port=usb2 message="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.


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

#Email
/tool e-mail send to="phalla.ccmt@gmail.com" subject="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate" body="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface. 




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


Upload Script:

:local CurDate [/system clock get date] 
:local CurTime [/system clock get time] 
:local DSpeed "10Mbps"
:local StatusTraffic "Upload"
:local OnInterface "Bridge-LAN"

#WriteDown2Log
:log info "$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface"

#SMS
/tool sms send phone-number="077272270" port=usb2 message="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.


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

#Email
/tool e-mail send to="phalla.ccmt@gmail.com" subject="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate" body="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface. 




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


Previous
Next Post »

2 comments

Write comments
Unknown
AUTHOR
January 23, 2017 at 12:44 PM delete

Hi Guys,

I have tried this script. It emails me but it only writes

"Speed is more then at" on the subject line. Then its blank.

Could you identify why?

Thanks.

Reply
avatar
January 24, 2017 at 10:46 AM delete

Hi Guys,

I tried to get this to work, however, I only receive an email with subject "speed is more than at". No body or anything else.

Any help on this would be really great!

Thanks.

Reply
avatar