Skip to content

Commit 3915593

Browse files
committed
snmp-exporter: scrape Cisco/Juniper switch oids
alarms and transceiver metrics. Timeout for Junos boxes is relaxed due to its slowness.
1 parent 5ed4c8a commit 3915593

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

snmp-exporter-config-generator/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ RUN git init && \
2323

2424
RUN file-rename -- 's/\.my$//' v2/*.my
2525

26+
WORKDIR /build/generator/juniper
27+
RUN curl -LO 'https://www.juniper.net/documentation/software/junos/junos194/juniper-mibs-19.4R3.11.tgz' && \
28+
tar xf juniper-mibs-*.tgz
29+
30+
RUN file-rename -- 's/\.txt$//' JuniperMibs/*.txt
31+
2632
FROM public.ecr.aws/ubuntu/ubuntu:jammy
2733

2834
RUN apt-get update -qq && \
@@ -32,6 +38,7 @@ RUN apt-get update -qq && \
3238
COPY --from=build /build/generator/generator /opt/snmp-exporter/bin/
3339
COPY --from=build /build/generator/mibs/ /usr/share/snmp/mibs/
3440
COPY --from=build /build/generator/cisco/v2/ /usr/share/snmp/mibs/
41+
COPY --from=build /build/generator/juniper/JuniperMibs/ /usr/share/snmp/mibs/
3542
COPY --from=build /usr/share/snmp/mibs/ /usr/share/snmp/mibs/
3643
COPY --from=build /var/lib/mibs/ /var/lib/mibs/
3744

0 commit comments

Comments
 (0)