Help with simple script to email bytes from an interface

I can’t seem to figure this out, it should be simple but I’m getting empty data values. empty email

:local counter [/interface ethernet get ether1 rx-byte]
:local traffic ($counter + [/interface ethernet get ether1 tx-byte])

/tool e-mail send to=chris@example.com from=chris@example.com  subject="bytes" body="$traffic" tls=yes

the $traffic variable is empty. when I " put [/interface ethernet get ether1 rx-byte]" into a terminal the value is blank.

I’ve tried many variations with no luck :-/

sometimes I see “driver-rx-byte” used in various examples, sometimes I find “rx-bytes” used.
If anyone could help clarify the proper way to do this, I would be greatly appreciative.

this is for routeros V-4.17

Near as I can tell, it’s because I’m not using a RouterBoard? I have this installed on an ALIX board, are these statistics not supported? Is there any other way to get them?

/tool e-mail send to=chris@example.com from=chris@example.com subject=“bytes” body=($traffic) tls=yes

You may try like this