This bash script can be run as service to monitor LTE signal (SINR, RSRP and RSRQ) of USB modem Huawei E8372H-153 and push metrics at Prometheus pushgateway service. Script can be extended to monitor any other parameter available by API URL /api/device/signal
This instruction was designed for Raspberry Pi installation
- Copy script file: e8372h_service.sh to /home/pi
- Make file executable: chmod +x e8372h_service.sh
- Copy service file: e8372h_monitor.service to /etc/systemd/system
- Reload daemon: sudo systemctl daemon-reload
- Run service: sudo systemctl enable e8372h_monitor
- SINR metric e8372h_sinr{}
- RSRQ metric e8372h_rsrq{}
- RSRP metric e8372h_rsrp{}