Assistance about ScripT

I’m using this script for let say if the signal is -76 i want to get email. I got the script but i need some assistance.

The script works, but how can i send on email?

:local signal;:foreach i in=[ /int wir reg find ap=yes] do={ :set signal [int wir reg get $i signal-strength];:set signal [ :pick $signal 0 [:find $signal “dBm”]]
:if ($signal < -76) do={:put “signal too low”}}


Thanks

you must configure previously

https://wiki.mikrotik.com/wiki/Manual:Tools/email

/tool e-mail send to=XXXX@XXX.XXX subject=“ANY” start-tls=yes body=“Content”;

Im sending email no problem for that. Currently i’m using this command:

/tool e-mail send to=“youremail.com” subject=“signal status” body=$signal

Like this im geting onli the currently signal.
The purpose of the script is if the signal goes -76, that will send out email.

Thanks

try this:

:local signal;:foreach i in=[ /int wir reg find ap=yes] do={ :set signal [int wir reg get $i signal-strength];:set signal [ :pick $signal 0 [:find $signal "dBm"]]
:if ($signal < -76) do={/tool e-mail send to="youremail.com" subject="signal too low" body=$signal}}

1+1

yeyeyeeee…appreciate your help

Thanks a lot :slight_smile: :wink:

Just one thing, can set up, MAC add per customer, i want to know which one get low signal.

Thanks