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.
Copyrights © 2026