From 209bcbbdf4ea50f7145674dd1c855eb6410a065e Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 17 Jan 2025 00:51:12 +0000 Subject: Changed SMNP polling rate to 30s --- README.md | 3 ++- switch-snmp/Dockerfile | 3 ++- switch-snmp/port-names.conf | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9be58c2..331eb2d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # power.eda.gay -Logs Tasmota-flashed power usage monitors, and Tp-Link Omada POE switches, to InfluxDB and Grafana using MQTT. +Logs Tasmota-flashed power usage monitors, and TP-Link Omada POE switches, to InfluxDB and Grafana using MQTT and SNMP. +Also logs Zigbee informtion with a Tasmota-flashed Zigbee bridge. Looking for the Mikrotik POE usage monitor/exporter? That's been moved to [MikrotikPOEPowerExporter](https://github.com/jwansek/MikrotikPOEPowerExporter) diff --git a/switch-snmp/Dockerfile b/switch-snmp/Dockerfile index 66857fa..a056214 100644 --- a/switch-snmp/Dockerfile +++ b/switch-snmp/Dockerfile @@ -12,5 +12,6 @@ RUN pip3 install -r requirements.txt RUN rm "privateMibs(20220831).zip" RUN echo "*/1 * * * * root python3 /app/snmp-omada.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab +RUN echo "*/1 * * * * root sh -c 'sleep 30 && python3 /app/snmp-omada.py' > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab ENTRYPOINT ["bash"] -CMD ["entrypoint.sh"] \ No newline at end of file +CMD ["entrypoint.sh"] diff --git a/switch-snmp/port-names.conf b/switch-snmp/port-names.conf index 761804a..8f8d089 100644 --- a/switch-snmp/port-names.conf +++ b/switch-snmp/port-names.conf @@ -1,5 +1,5 @@ 1 = EAP225 Wifi -2 = PiKVM +2 = Tasmota Zigbee 4 = 2.5Gb Switch 6 = Routerbox 13 = Intel Compute Stick -- cgit v1.2.3