Cara Monitoring IP Public Menggunakan RouterOS via Telegram












:local CHID "63625xxxx";
:local BotID "103298xxxx:AAHKpiAqlEoaA1ntvWXXsN46s0MH9YYOiFk";

:local Identitas ("*Nama Identitas Router:* ".[/system identity get name]."%0A")
:local IPPublic ("*IP Public Anda:* ".[/ip cloud get public-address]."%0A")
:local DNSname ("*Nama DDNS Anda:* ".[/ip cloud get dns-name]."%0A")
:local Status ("*Status:* ".[/ip cloud get status]."%0A")
:local StatusPPTP ("*Status PPTP Server:* ".[/interface pptp-server server get enabled]."%0A")
:local StatusL2TP ("*Status L2TP Server:* ".[/interface l2tp-server server get enabled]."%0A")
:local StatusSSTP ("*Status SSTP Server:* ".[/interface sstp-server server get enabled]."%0A")
:local StatusOVPN ("*Status OVPN Server:* ".[/interface ovpn-server server get enabled]."%0A")




/tool fetch url="https://api.telegram.org/bot$BotID/sendmessage\?chat_id=$CHID&text=$Identitas $IPPublic $DNSname $Status $StatusPPTP $StatusL2TP $StatusSSTP $StatusOVPN";
:delay 10
/file remove [/file find type="file"];


Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom

0 Response to "Cara Monitoring IP Public Menggunakan RouterOS via Telegram"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel