aboutsummaryrefslogtreecommitdiffstats
path: root/switch-snmp/Dockerfile
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-05-18 22:41:07 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-05-18 22:41:07 +0100
commiteaff8b05c20b19c59e32e2646ca17d7bc75250aa (patch)
tree8ee8f65107674f641f6225d16a35ef4843d98ae0 /switch-snmp/Dockerfile
parent069e1484918fefdf409da09e88550251e919db4f (diff)
downloadpower.eda.gay-eaff8b05c20b19c59e32e2646ca17d7bc75250aa.tar.gz
power.eda.gay-eaff8b05c20b19c59e32e2646ca17d7bc75250aa.zip
Added fetching mikrotik POE usage to InfluxDB too
Diffstat (limited to 'switch-snmp/Dockerfile')
-rw-r--r--switch-snmp/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/switch-snmp/Dockerfile b/switch-snmp/Dockerfile
index a056214..d09e341 100644
--- a/switch-snmp/Dockerfile
+++ b/switch-snmp/Dockerfile
@@ -11,7 +11,7 @@ RUN unzip -j "privateMibs(20220831).zip" -d /usr/share/snmp/mibs
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
+RUN echo "*/1 * * * * root python3 /app/switches.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
+RUN echo "*/1 * * * * root sh -c 'sleep 30 && python3 /app/switches.py' > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab
ENTRYPOINT ["bash"]
CMD ["entrypoint.sh"]