zte-exporter/readme.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-26 17:48:44 +03:00
# Grafana exporter for ZTE 5G modems
2024-05-26 17:52:53 +03:00
## Getting started
2025-01-21 13:03:36 +02:00
One can just run the provided python script by `python3 zte_exporter.py --port <port> <router ip> --username <admin username> <admin password> --device <device type, ie. mc7010>`
2024-05-26 17:52:53 +03:00
2024-07-11 12:28:14 +03:00
2025-01-21 13:03:36 +02:00
A docker file is provided to compile this and example compose.yml to use in compose tools. To use with docker run, just create .env with the correct values. dockerhub vvkvvk/zte-exporter has the outdated version of this available and should not be used. A compose.yml file is provided as example.
2025-01-21 13:05:53 +02:00
## TR069 reset
2025-01-21 13:03:36 +02:00
Passing --reset True will try to clear out TR069 config and display current config.
2024-05-26 17:52:53 +03:00
2025-01-21 13:05:53 +02:00
## Running via systemd
Create a systemd unit file to `/etc/systemd/system/zte-exporter.service` with following
```
[Unit]
Description=ZTE exporter service
[Service]
Type=simple
ExecStart=/bin/python3 /opt/zte.py --port 8082 192.168.8.1 1234
[Install]
WantedBy=network-online.target
```
2024-05-26 17:52:53 +03:00
## Tested devices
2024-05-26 17:48:44 +03:00
2025-01-21 13:03:36 +02:00
Devices currently supported / tested are only MC889A and it should just work with passing IP and password, default username is admin.
2024-05-26 17:48:44 +03:00
2024-05-26 17:52:53 +03:00
## Thanks
Largely based on https://github.com/Kajkac/ZTE-MC-Home-assistant