Monitoring Router Mikrotik CHR Secara Otomatis Menggunakan Telegram Bot Berbasis Python

Authors

  • Dea Anggraini Universitas Negeri Medan
  • Dedy Kiswanto Universitas Negeri Medan
  • Natasha Patricia Nainggolan Universitas Negeri Medan
  • Zevan Irfandi Surbakti Universitas Negeri Medan

DOI:

https://doi.org/10.70340/jirsi.v5i3.556

Keywords:

ICMP, Mikrotik CHR, networking monitoring, python, telegram bot

Abstract

Manual router monitoring is inefficient because network administrators only learn about failures through user complaints rather than automatic system detection. This study aimed to

build  an  automated  monitoring  system  for  Mikrotik  CHR  Router  using  a  Python-based

Telegram Bot that can detect failures and send automated notifications through periodic monitoring. The system was developed using a prototyping approach and consists of six Python modules running in parallel via threading. Monitoring was performed using the ICMP protocol every 30 seconds, while device information retrieval was done via SSH using the Netmiko library. Testing was conducted through twelve test scenarios simulating router failure using the /disable_interface command through the Telegram bot. The system also includes two network automation features: auto restart interface, which automatically sends the /interface enable command to the router when a failure is detected, and auto backup configuration, which saves the router configuration to a local file each time the router recovers. Test results showed that the failure notification was sent an average of 51 seconds after the interface was disabled in three complete tests. The router was detected as recovered 35 to 44 seconds after the interface was enabled in most events, duplicate alerts were prevented, and 691 log lines were recorded automatically. The results indicate that the system has potential for use in laboratory or small-scale networks.

Downloads

Download data is not yet available.

References

M. I. Baihaqi and S. Raharjo, “Sistem Monitoring Jaringan Dengan Metode Network Development Life Cycle Di PT Lintas Teknologi Solusindo,” JUPITER Teknol. Inform. Komput., vol. 6, no. 2, pp. 183–194, 2025, doi: 10.53990/jupiter.v6i2.516.

A. G. Wahyuriyanto and H. Yulianton, “Implementasi Sistem Monitoring Jaringan Berbasis Simple Network Management Protocol Dengan Notifikasi Telegram,” Progresif J. Ilm. Komput., vol. 20, no. 2, pp. 632–647, 2024, doi:

35889/progresif.v20i2.1939.

M. Y. Ishaq and Firmansyah, “Implementasi Sistem Monitoring Menggunakan Zabbix Dan Notifikasi Realtime Telegram,” J. Insa. (Journal Inf. Syst. Manag. Innov.), vol. 3, no. 1, pp. 72–77, 2023.

S. Nurjanah, F. Sembiring, and R. R. Ayuningsih, “Integration of Telegram Bot and Uptime Kuma for Wi-Fi Network Monitoring Using Mikrotik,” Pilar Nusa Mandiri J. Comput. Inf. Syst., vol. 20, no. 2, pp. 118–126, 2024, doi: 10.33480/pilar.v20i2.5535.

M. F. M. Fuzi, N. F. M. Ashraf, and M. N. F. Jamaluddin, “Integrated Network Monitoring using Zabbix with Push Notification via Telegram,” J. Comput. Res. Innov., vol. 7, no. 1, pp. 155–163, 2022, doi: 10.24191/jcrinn.v7i1.282.

F. G. Sembiring, S. Ashillah, A. K. Nasution, and D. Kiswanto, “Analisis Kinerja

Routing Dinamis Pada Jaringan Virtual Menggunakan Mikrotik CHR,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 3, pp. 1545–1553, 2025, doi:

23960/jitet.v13i3.6516.

M. P. Afiq, Sudarmaji, and D. Irawan, “Implementasi Sistem Monitoring

Jaringan Berbasis Bot Telegram Menggunakan Metode ICMP Monitoring

Koperasi Mulia Sejahtera,” JMIK (JURNAL Mhs. ILMU KOMPUTER), vol. 6, no.

, pp. 155–166, 2025.

W. Baydowi, R. Ester, R. Rinaldi, and R. A. Najmi, “Implementasi Sistem

Monitoring Jaringan Terpusat Menggunakan Mikrotik Dan Bot Telegram Di

PT. Mitra Bersama Jaya,” JRIIN J. Ris. Inform. dan Inov., vol. 3, no. 3, pp. 650–

, 2025.

F. Ardiyansyah, K. Setiawan, and N. Sutisna, “Implementasi IDS pada Jaringan Komputer Menggunakan Snort Berbasis Chatbot Telegram,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 4, no. 4, pp. 1614–1623, 2024.

Y. Hermawan, E. Wahyudi, and J. G. A. Ginting, “Analisis Performansi Otomasi Jaringan Pada Routing OSPF dan EIGRP Berbasis Web Menggunakan Bahasa Pemrograman Python,” J. LITEK J. List. Telekomun. Elektron., vol. 21, no. 2, pp. 59–68, 2024.

N. F. A. Hakim, S. Elvyanti, and Y. Ardiansyah, “Design of a Telegram- Integrated Grafana Network Monitoring System for Enhanced Fault Detection and Real-time Notification,” J. Ilm. Teknol. dan Rekayasa, vol. 30,

no. 1, pp. 95–107, 2025, doi: 10.35760/tr.2025.v30i1.14058.

W. Prabowo and R. Ariyanto, “Implementation of Python-Based Network automation Technology for Computer Infrastructure Optimization,” IMPACT Multidiscip. J., vol. 1, no. 01, pp. 34–40, 2025.

Febriana, R. Waluyo, and D. Mustofa, “Network Monitoring Using Zabbix

ICMP Ping and Telegram Notifications Using the Network Development Life

Cycle Model,” J. Technol. Informatics, vol. 8, no. 1, pp. 62–72, 2026.

A. H. Prayoga, K. Insani, and D. A. Farizal, “Implementasi Otomatisasi Backup Pada Router Mikrotik Server Jaringan Internet Universitas Majalengka,” INFOTECH J., vol. 10, no. 2, pp. 228–233, 2024, doi:

31949/infotech.v10i2.10851.

R. Andriani and A. Sa’di, “Implementasi Notifikasi Bot Telegram pada Sistem

Monitoring Perangkat Jaringan,” Sist. J. Sist. Inf., vol. 13, no. 1, pp. 74–82,

, [Online]. Available: http://sistemasi.ftik.unisi.ac.id

Downloads

Published

2026-09-30