Multi-Router Network Traffic Monitoring System Based on Python Flask

Authors

  • Muhamad Eko Wahyudi Universitas Mercu Buana Yogyakarta
  • Imam Suharjo Universitas Mercu Buana Yogyakarta

DOI:

https://doi.org/10.59261/bustechno.v7i3.726

Keywords:

Network Monitoring, MikroTik API, SSH Failover, Python Flask, RBAC, Multi-Router, Data Reporting

Abstract

Background: Network traffic monitoring in multi-router environments is often constrained by reliance on a single protocol and decentralized access management.

Objective: This study develops a web-based monitoring system using the Python Flask framework that is capable of simultaneously monitoring eight MikroTik routers and incorporates SSH failover and Role-Based Access Control (RBAC) features.

Methods: The implemented solution includes an automatic failover mechanism between the MikroTik API and SSH, the implementation of Role-Based Access Control (RBAC), and flexible historical report extraction functionality. Testing was conducted on eight MikroTik routers using failover time, data loss, and role-based access validation as the primary evaluation parameters. The failover scenario involved deliberately disabling the primary API service to evaluate the system’s ability to transition to SSH-based access.

Results: The evaluation results demonstrate that the system maintains the availability of monitoring data during primary access failure, with a maximum protocol transition recovery time of 2.2 seconds and no observed data loss. Testing also confirms that RBAC effectively secures system configurations by differentiating the access privileges of administrators and regular users. The failover test was conducted in two trials, yielding consistent recovery times of 2.073 and 2.077 seconds, respectively, and all seven role-based access test cases were successfully validated.

Conclusion: The scientific contribution of this study lies in integrating centralized multi-router monitoring, API–SSH failover, RBAC, and historical reporting into a single Flask-based platform. The proposed system provides an empirically validated reference model for developing reliable and secure web-based network monitoring systems.

References

Ahsan, M., Talluri, S., & Iosup, A. (2022). Failure Analysis Of Big Cloud Service Providers Prior To And During Covid-19 Period. Arxiv Preprint Arxiv:2210.08006.

Dalimunthe, R. A., & Saputra, H. (2022). Implementation And Analysis Of Mikrotik Api Monitoring Of Network Usage. Jurteksi (Jurnal Teknologi Dan Sistem Informasi), 9(1), 125–132. https://doi.org/10.33330/Jurteksi.V9i1.1920

Durdag, O., & Coskuncay, A. (2025). Reconfiguring Role-Based Access Control Via Role Clustering. Ieee Access, 13, 72984–72993. https://doi.org/10.1109/Access.2025.3563057

Fachrurrozi, N. R., Wirabudi, A. A., & Rozano, S. A. (2023). Design Of Network Monitoring System Based On Librenms Using Line Notify, Telegram, And Email Notification. Sinergi (Indonesia), 27(1), 111–122.

Gunawi, H. S., Hao, M., Suminto, R. O., Laksono, A., Satria, A. D., Adityatama, J., & Eliazar, K. J. (2016). Why Does The Cloud Stop Computing? Lessons From Hundreds Of Service Outages. In Proceedings Of The Seventh Acm Symposium On Cloud Computing (Pp. 1–16). Association For Computing Machinery. https://doi.org/10.1145/2987550.2987583

Hawedi, H. S., Bentaher, O. A., & Abodhir, K. E. I. (2021). Remote Access To A Router Securely Using Ssh. Journal Of The Academic Forum, 5(1), 174–189. https://doi.org/10.59743/Jaf.V5i1.177

Hidayat, T., & Mahardika, F. (2022). Implementasi Role-Based Access Control Pada Aplikasi Monitoring Infrastruktur Jaringan Cloud. Jatisi (Jurnal Teknik Informatika Dan Sistem Informasi), 9(2).

Huang, P., Guo, C., Lorch, J. R., Zhou, L., & Dang, Y. (2018). Capturing And Enhancing In Situ System Observability For Failure Detection. In 13th Usenix Symposium On Operating Systems Design And Implementation (Osdi 18) (Pp. 1–16). Usenix Association. Https://Www.Usenix.Org/Conference/Osdi18/Presentation/Huang

Iță, C.-R., Constantinescu, R.-C., Vlădescu, A., & Alexandrescu, B. (2023). Security In Remote Access, Based On Zero Trust Model Concepts And Ssh Authentication With Signed Certificates. Advanced Topics In Optoelectronics, Microelectronics, And Nanotechnologies Xi, 12493, 684–691.

Manggau, F. X., Latif, A., & Suwarjono. (2020). E-Monitoring Microtic Network Uses The Dude In Musamus University. Journal Of Physics: Conference Series, 1569(2), 22024. https://doi.org/10.1088/1742-6596/1569/2/022024

Nellutla, N. (2026). Observability-Driven Devops For Distributed Systems Using Tracing And Ai-Ops Based Anomaly Detection. 2026 International Conference On Smart Futuristic Technology, 1–9.

Pratama, S., & Wijaya, K. (2022). Rancang Bangun Sistem Monitoring Jaringan Berbasis Web Dengan Mekanisme Redundansi Protokol. Jurnal Teknologi Informasi Dan Ilmu Komputer (Jtiik), 9(4).

Ramadhan, A. (2024). Pengembangan Sistem Dashboard Monitoring Trafik Router Terpusat Berbasis Web. Jurnal Komputer Dan Teknologi, 12(1).

Roquero, P., & Aracil, J. (2021). On Performance And Scalability Of Cost-Effective Snmp Managers For Large-Scale Polling. Ieee Access, 9, 7374–7383. https://doi.org/10.1109/Access.2021.3049310

Sidik, Z., & Ismail, A. R. (2025). Perbandingan Teknik Normalisasi Dan Denormalisasi Dalam Pengelolaan Data Skala Besar. Jurnal Tecnoscienza, 10(1), 41–53. https://doi.org/10.51158/Pqfg7z82

Silvia, H., Ginting, J. G. A., & Arifwidodo, B. (2025). Implementasi Load Balancer Pada Flask Web App Untuk Meningkatkan Performansi Web Server. Eproceedings Of Engineering, 12(3), 3957–3961.

Syawal, M. A., & Fitriawan, H. (2024). Implementasi Arsitektur Restful Api Pada Sistem Monitoring Jaringan Berbasis Flask. Jurnal Informatika, 8(2). H

Tarigan, J. K. B., Dewanta, F., & Aditya, B. (2025). Perancangan Backend Pada Sistem Otomasi Konfigurasi Dan Monitoring Perangkat Jaringan Multivendor Pada Arsitektur Microservice. Jurnal Nasional Sains Dan Teknik, 3(2), 38–41. https://doi.org/10.25124/Jnst.V3i2.9628

Vieira, M. G. L. (2026). Telemetry Performance Comparison Between Gnmi And Snmp In Ip/Mpls Network Architecture.

Yutanto, H., Effendi, Y., & Supriyanto, G. (2025). Development Of A Mikrotik Api-Based Leaderboard System For Monitoring Isp User Activity. Jurnal Sistem Informasi Bisnis, 15(3), 301–309. https://doi.org/10.14710/Vol15iss3pp301-309

Zhang, Y., Wang, H., & Liu, J. (2023). High Availability Network Monitoring Systems With Failover Architecture In Enterprise Networks. Future Internet, 15(7), 221.

Downloads

Published

2026-09-04