Cara Monitoring User PPPOE Menggunakan RouterOS via Telegram
kalo mau cek id group.
https://api.telegram.org/bot8433897083:AAHMfgf1W5166Li9uGWICZcEAPunW2emFX8/getUpdates
silahkan ganti
--------PPPOE UP-----------
:local botToken "8433897083:AAHMfgf1W5166Li9uGWICZcEAPunW2emFX8"
:local chatID "-5206677399"
:local nama "$user";
:local namauser [/ppp active get [find where name=$nama] name];
:local namaaddress [/ppp active get [find where name=$nama] address];
:local namamac [/ppp active get [find where name=$nama] caller-id];
:local namacomment [/ppp active get [find where name=$nama] comment];
:local datetime "Tanggal: $[/system clock get date] %0AJam: $[/system clock get time]";
:local totalActive [/ppp active print count-only]
/tool fetch url=("https://api.telegram.org/bot$botToken/sendMessage?chat_id=$chatID&text=\E2\9C\85 Nama User : $namauser %0A IP Address: $namaaddress %0A MAC Address : $namamac %0A Comment: $namacomment %0A $datetime %0A Total Aktif: $totalActive ") keep-result=no
-----------PPPOE DOWN-----
:local botToken "8433897083:AAHMfgf1W5166Li9uGWICZcEAPunW2emFX8"
:local chatID "-5206677399"
:local nama "$user";
:local namauser [/ppp active get [find where name=$nama] name];
:local namaaddress [/ppp active get [find where name=$nama] address];
:local namamac [/ppp active get [find where name=$nama] caller-id];
:local namacomment [/ppp active get [find where name=$nama] comment];
:local datetime "Tanggal: $[/system clock get date] %0AJam: $[/system clock get time]";
/tool fetch url=("https://api.telegram.org/bot$botToken/sendMessage?chat_id=$chatID&text=\E2\9D\8C Nama User : $namauser %0A IP Address: $namaaddress %0A MAC Address : $namamac %0A Comment: $namacomment %0A $datetime ") keep-result=no
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom
Penulis : Een Pahlefi,S.Kom

0 Response to "Cara Monitoring User PPPOE Menggunakan RouterOS via Telegram"
Post a Comment