Cara Monitoring Kesehatan RouterOS via Telegram


















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

:local Identitas ("*Nama Identitas Router:* ".[/system identity get name]."%0A")
:local JenisRouter ("*Jenis Router/Routerboard:* ".[/system routerboard get value-name="model"]."%0A")
:local HealtVolt ("*Voltase:* ".[/system healt get voltage]."%0A")
:local HealtTemp ("*Temperature:* ".[/system healt get temperature]."%0A")
:local ResourceUp ("*Uptime:* ".[/system resource get uptime]."%0A")
:local ResourceVers ("*Versi RouterOS* ".[/system resource get version]."%0A")

:local ResourceFreeMem ("*Free Memory RAM* ".[/system resource get free-memory]."%0A")
:local ResourceTotalMem ("*Jumlah Memory RAM* ".[/system resource get total-memory]."%0A")
:local ResourceCPUCount ("*CPU Count* ".[/system resource get cpu-count]."%0A")

:local ResourceFreeDisk ("*Sisa Pemakaian disk* ".[/system resource get free-hdd-space]."%0A")
:local ResourceTotalDisk ("*Jumlah Pemakaian disk* ".[/system resource get total-hdd-space]."%0A")
:local ResourceCPULoad ("*CPU Load* ".[/system resource get cpu-load]."%0A")

:local datadate ("*Tanggal Sekarang* ".[/system clock get date]."%0A")
:local datatime ("*Jam Sekarang* ".[/system clock get time]."%0A")
:local zonatime ("*Jam Sekarang* ".[/system clock get time-zone-name]."%0A")



/tool fetch url="https://api.telegram.org/bot$BotID/sendmessage\?chat_id=$CHID&text=$Identitas $JenisRouter $HealtVolt $HealtTemp $ResourceUp $ResourceVers $ResourceFreeMem $ResourceTotalMem $ResourceCPUCount $ResourceFreeDisk $ResourceTotalDisk $ResourceCPULoad $datadate $datatime $zonatime";
:delay 10
/file remove [/file find type="file"];


Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom

0 Response to "Cara Monitoring Kesehatan RouterOS via Telegram"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel