aboutsummaryrefslogtreecommitdiffstats
path: root/switch-snmp
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-01-17 00:51:12 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2025-01-17 00:51:12 +0000
commit209bcbbdf4ea50f7145674dd1c855eb6410a065e (patch)
tree02e72b050f5c814661220c0a948c3e5314bdd236 /switch-snmp
parente7114310f91bac3cc673cdb46278abf128b7fef0 (diff)
downloadpower.eda.gay-209bcbbdf4ea50f7145674dd1c855eb6410a065e.tar.gz
power.eda.gay-209bcbbdf4ea50f7145674dd1c855eb6410a065e.zip
Changed SMNP polling rate to 30s
Diffstat (limited to 'switch-snmp')
-rw-r--r--switch-snmp/Dockerfile3
-rw-r--r--switch-snmp/port-names.conf2
2 files changed, 3 insertions, 2 deletions
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