New 47
New 47
:do {
:global Out1 "BOnline";
:global allOut1 (([/interface get [find name=$Out1] rx-byte]+[/interface get [find
name=$Out1] tx-byte])/2621440);
:global Out2 "BOnline-Access";
:global allOut2 (([/interface get [find name=$Out2] rx-byte]+[/interface get [find
name=$Out2] tx-byte])/2621440);
:global Out3 "BOnline-Antinat";
:global allOut3 (([/interface get [find name=$Out3] rx-byte]+[/interface get [find
name=$Out3] tx-byte])/2621440);
:global mbeat 0;
:local uptime [/system resource get uptime ];
:global report "--\D8\AA\D9\82\D8\B1\D9\8A\D8\B1\20\D8\A7\D9\84\D9\85\D8\B3\D8\AA\
D8\AE\D8\AF\D9\85\D9\8A\D9\86\20\D9\88\D8\A7\D9\84\D9\85\D8\A8\D9\8A\D8\B9\D8\A7\
D8\AA\20\D8\A8\D9\81\D8\AA\D8\B1\D9\87-- $uptime %0A";
:local bot "5778830696:AAF0SNevlZom-i9l7B3tDU4fY_bcGqcyQ4M";
:local chatID "6397372473";
:local active [:len [/ip hotspot active find]];
:foreach i in=[/interface vlan find where name!="Vlan-199" vlan-id!=199
comment~"Active__" ] do={
:local sname [/interface vlan get $i name ];
:local suser [:len [/ip hotspot host find bridge-port=$sname]];
:set mbeat (([/interface get $i rx-byte]+[/interface get $i tx-byte])/2621440);
:if ([:len $report]>= 5366) do={
/tool fetch url="https://api.telegram.org/bot$bot/sendmessage\?
chat_id=$chatID&text=$report" keep-result=no;
:set report "";}
:set report ("$report" . "\E2\9C\85-->>$sname=$suser \D8\A7\D9\84\D9\85\D8\A8\
D9\84\D8\BA =$mbeat, \D9\85\D8\AA\D8\B5\D9\84 %0A");};
:set report ("$report" . "\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80 %0A" . "\E2\9C\85-->> \D8\B9\D9\80\
D8\AF\D8\AF\20\D8\A7\D9\84\D8\A7\D9\83\D9\80\D8\AA\D9\80\D9\81\20\D8\A7\D9\84\D8\
A7\D9\86 = $active \D9\85\D8\AA\D8\B5\D9\84 %0A\E2\9C\85-->> \D9\85\D8\A8\D9\8A\D8\
B9\D8\A7\D8\AA\20\D8\A7\D9\84\D8\A7\D9\86\D9\80\D8\AA\D9\8A\D9\86\D8\A7\D8\AA =
$allOut2 \D8\B1\D9\8A\D8\A7\D9\84 %0A\E2\9C\85-->> \D9\85\D8\A8\D9\8A\D8\B9\D8\A7\
D8\AA\20\D8\A7\D9\84\D9\85\D9\88\D8\AF\D9\85\D8\A7\D8\AA = $allOut3 \D8\B1\D9\8A\
D8\A7\D9\84 %0A\E2\9C\85-->> \D8\A7\D8\AC\D9\80\D9\85\D8\A7\D9\84\D9\8A\20\D8\A7\
D9\84\D9\85\D9\80\D8\A8\D9\8A\D8\B9\D8\A7\D8\AA = $allOut1 \D8\B1\D9\8A\D8\A7\
D9\84");
/tool fetch url="https://api.telegram.org/bot$bot/sendmessage\?
chat_id=$chatID&text=$report" keep-result=no;} on-error={};
:do {
:global Out1 "ALBURAQ_OUT";
:global allOut1 (([/interface get [find name=$Out1] rx-byte]+[/interface get [find
name=$Out1] tx-byte])/2621440);
:global Out3 "ALBURAQ_vlan";
:global allOut3 (([/interface get [find name=$Out3] rx-byte]+[/interface get [find
name=$Out3] tx-byte])/2621440);
:global mbeat 0;
:local uptime [/system resource get uptime ];
:global report "--\D8\AA\D9\82\D8\B1\D9\8A\D8\B1\20\D8\A7\D9\84\D9\85\D8\B3\D8\AA\
D8\AE\D8\AF\D9\85\D9\8A\D9\86\20\D9\88\D8\A7\D9\84\D9\85\D8\A8\D9\8A\D8\B9\D8\A7\
D8\AA\20\D8\A8\D9\81\D8\AA\D8\B1\D9\87-- $uptime %0A";
:local bot "5778830696:AAF0SNevlZom-i9l7B3tDU4fY_bcGqcyQ4M";
:local chatID "6397372473";
:local active [:len [/ip hotspot active find]];
:foreach i in=[/interface vlan find where name!="Vlan-199" vlan-id!=199
comment~"Active__" ] do={
:local sname [/interface vlan get $i name ];
:local suser [:len [/ip hotspot host find bridge-port=$sname]];
:set mbeat (([/interface get $i rx-byte]+[/interface get $i tx-byte])/2621440);
:if ([:len $report]>= 5366) do={
/tool fetch url="https://api.telegram.org/bot$bot/sendmessage\?
chat_id=$chatID&text=$report" keep-result=no;
:set report "";}
:set report ("$report" . "\E2\9C\85-->>$sname=$suser \D8\A7\D9\84\D9\85\D8\A8\
D9\84\D8\BA =$mbeat, \D9\85\D8\AA\D8\B5\D9\84 %0A");};
:set report ("$report" . "\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\
D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80\D9\80 %0A" . "\E2\9C\85-->> \D8\B9\D9\80\
D8\AF\D8\AF\20\D8\A7\D9\84\D8\A7\D9\83\D9\80\D8\AA\D9\80\D9\81\20\D8\A7\D9\84\D8\
A7\D9\86 = $active \D9\85\D8\AA\D8\B5\D9\84 %0A\E2\9C\85-->> \D9\85\D8\A8\D9\8A\D8\
B9\D8\A7\D8\AA\20\D8\A7\D9\84\D9\85\D9\88\D8\AF\D9\85\D8\A7\D8\AA = $allOut3 \D8\
B1\D9\8A\D8\A7\D9\84 %0A\E2\9C\85-->> \D8\A7\D8\AC\D9\80\D9\85\D8\A7\D9\84\D9\8A\
20\D8\A7\D9\84\D9\85\D9\80\D8\A8\D9\8A\D8\B9\D8\A7\D8\AA = $allOut1 \D8\B1\D9\8A\
D8\A7\D9\84");
/tool fetch url="https://api.telegram.org/bot$bot/sendmessage\?
chat_id=$chatID&text=$report" keep-result=no;} on-error={};