need help with wireless monitoring

Hello,

I have trouble with wireless monitoring.

/interface wireless registration-table print stats comman gives me:

[admin@station] > /interface wireless registration-table print stats
 0 interface=wlan1 mac-address=00:0C:42:23:26:CF ap=yes wds=yes rx-rate=6Mbps tx-rate=6Mbps packets=6857601,985226 bytes=1266370470,241031553 
   frames=6857601,985234 frame-bytes=1225225152,235120503 hw-frames=6857601,985601 hw-frame-bytes=1417237968,266689108 uptime=1w1h43m33s last-activity=90ms 
   signal-strength=-60dBm@6Mbps signal-to-noise=34dB strength-at-rates=-60dBm@6Mbps 720ms tx-ccq=32% p-throughput=5532 ack-timeout=42 distance=42 
   framing-mode=none last-ip=172.24.164.203 802.1x-port-enabled=yes authentication-type=wpa-psk encryption=104bit-wep group-encryption=104bit-wep 

 1 interface=wlan1 mac-address=00:0C:42:23:49:02 ap=yes wds=yes rx-rate=6Mbps tx-rate=6Mbps packets=4743558,2962860 bytes=1006930527,599708786 
   frames=4743558,2962959 frame-bytes=978470151,581932842 hw-frames=4743558,2963381 hw-frame-bytes=1111289763,676800977 uptime=17h49m34s last-activity=90ms 
   signal-strength=-61dBm@6Mbps signal-to-noise=33dB strength-at-rates=-61dBm@6Mbps 15s20ms tx-ccq=34% p-throughput=5711 ack-timeout=40 distance=40 
   framing-mode=none last-ip=172.24.164.209 802.1x-port-enabled=yes authentication-type=wpa-psk encryption=104bit-wep group-encryption=104bit-wep 

 2 interface=wlan1 mac-address=00:0C:42:23:41:42 ap=yes wds=yes rx-rate=6Mbps tx-rate=6Mbps packets=69713,14078 bytes=22182302,2982422 frames=69713,14080 
   frame-bytes=21764048,2898200 hw-frames=69713,14512 hw-frame-bytes=23716000,3468111 uptime=1h43m10s last-activity=90ms signal-strength=-65dBm@6Mbps 
   signal-to-noise=29dB strength-at-rates=-65dBm@6Mbps 1s460ms tx-ccq=33% p-throughput=5778 ack-timeout=39 distance=39 framing-mode=none 
   last-ip=172.24.164.208 802.1x-port-enabled=yes authentication-type=wpa-psk encryption=104bit-wep group-encryption=104bit-wep 

 3 interface=wlan1 mac-address=00:0C:42:23:41:44 ap=yes wds=yes rx-rate=6Mbps tx-rate=6Mbps packets=98250,36139 bytes=70364754,2773037 frames=98250,36142 
   frame-bytes=69775314,2556556 hw-frames=98246,36186 hw-frame-bytes=72520154,3716889 uptime=1h34m10s last-activity=10ms signal-strength=-68dBm@6Mbps 
   signal-to-noise=26dB strength-at-rates=-68dBm@6Mbps 10ms tx-ccq=11% p-throughput=4891 ack-timeout=41 distance=41 framing-mode=none 
   last-ip=172.24.164.214 802.1x-port-enabled=yes authentication-type=wpa-psk encryption=104bit-wep group-encryption=104bit-wep 

 4 interface=wlan1 mac-address=00:0C:42:1B:E3:92 ap=yes wds=yes rx-rate=6Mbps tx-rate=6Mbps packets=24377,219 bytes=2261274,10448 frames=24377,221 
   frame-bytes=2115030,9380 hw-frames=24377,226 hw-frame-bytes=2797574,17003 uptime=42m52s last-activity=90ms signal-strength=-73dBm@6Mbps 
   signal-to-noise=21dB strength-at-rates=-73dBm@6Mbps 180ms tx-ccq=34% p-throughput=5857 ack-timeout=41 distance=41 framing-mode=none 
   last-ip=172.24.164.211 802.1x-port-enabled=yes authentication-type=wpa-psk encryption=104bit-wep group-encryption=104bit-wep 
[admin@station] >

And here is my part of the script:

/interface wireless registration-table print stats do={
:local mac $"mac-address";
:local signal $"signal-strength";
:local snr $"signal-to-noise";
:local ip $"last-ip";
/tool e-mail send to="my@mail.lt" subject="Mikrotik" body="$mac , $signal , $snr , $ip";
};

I need to take all data like MAC, Signal, SNR and ip and send it to me, but whats wrong with it? ROS 2.9v