Advertisement
sopyanx

tg_cmd_cpu

Jul 14th, 2019
2,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. :local send [:parse [/system script get tg_sendMessage source]]
  2. :local hotspot [:len [/ip hotspot active find]]
  3.  
  4. :put $params
  5. :put $chatid
  6. :put $from
  7.  
  8. :local text "Router Id:* $[/system identity get name] * %0A\
  9. Uptime: _$[/system resource get uptime]_%0A\
  10. CPU Load: _$[/system resource get cpu-load]%_%0A \
  11. RAM: _$(([/system resource get total-memory]-[/system resource get free-memory])/(1024*1024))M/$([/system resource get total-memory]/(1024*1024))M_%0A\
  12. Voltage: _$[:pick [/system health get voltage] 0 2]V_%0A\
  13. Temp: _$[ /system health get temperature]C_"
  14.  
  15. $send chat=$chatid text=$text mode="Markdown"
  16. :return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement