diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-08-29 06:25:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 06:25:10 (GMT) |
commit | 29613c3be27fb9c7f97ca87e3da3712977e419dc (patch) | |
tree | c033f29162569445495e379cc47e9a632d203b8e /.github/prepare_debian.sh | |
parent | b90b09e1472426993d1c88949a8b30da3f2f900e (diff) | |
parent | 55c0e1738e3397b007ed189f216f8b431da96943 (diff) | |
download | monitoring-plugins-29613c3be27fb9c7f97ca87e3da3712977e419dc.tar.gz |
Merge pull request #1907 from RincewindsHat/fix/repair_test_pipeline
Implement option for check_snmp to ignore mib parsing errors (to fix test pipeline)
Diffstat (limited to '.github/prepare_debian.sh')
-rwxr-xr-x | .github/prepare_debian.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index 7f5592b..9611670 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh | |||
@@ -108,12 +108,7 @@ ssh -tt localhost </dev/null >/dev/null 2>/dev/null & | |||
108 | disown %1 | 108 | disown %1 |
109 | 109 | ||
110 | # snmpd | 110 | # snmpd |
111 | for DIR in /usr/share/snmp/mibs /usr/share/mibs; do | 111 | service snmpd stop |
112 | rm -f $DIR/ietf/SNMPv2-PDU \ | ||
113 | $DIR/ietf/IPSEC-SPD-MIB \ | ||
114 | $DIR/ietf/IPATM-IPMC-MIB \ | ||
115 | $DIR/iana/IANA-IPPM-METRICS-REGISTRY-MIB | ||
116 | done | ||
117 | mkdir -p /var/lib/snmp/mib_indexes | 112 | mkdir -p /var/lib/snmp/mib_indexes |
118 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf | 113 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf |
119 | service snmpd start | 114 | service snmpd start |