Can someone help me with a script that sends an email if the temperature of the Mikrotik router gets too high?
Both the CPU and the board temperature.
Thanks
:log info ("$[/system health get temperature] $[/system health get voltage]")
:if ([/system health get temperature]>45) do={/tool e-mail send to="me@somewhere.net" subject=[/system identity get name] body=("High temperature. Current temperature is: ".[/system health get temperature])}
:if ([/system health get voltage]<245) do={/tool e-mail send to="me@somewhere.net" subject=[/system identity get name] body=("Low Voltage Alarm. Current voltage is: ".[/system health get voltage])}