aboutsummaryrefslogtreecommitdiff
path: root/check_snmp_if
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-12-11 21:44:21 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-12-11 21:44:21 +0100
commitcbb88e901b09a2be2fa29933f2ecc11b3184e06c (patch)
treec2ead3d90131b1a47192bdfbd21ff08102d08c44 /check_snmp_if
parentaf2effdf31ca2564232965c726b9366bb78084b6 (diff)
downloadmonitoring_custom-cbb88e901b09a2be2fa29933f2ecc11b3184e06c.tar.gz
snmp if fix
Diffstat (limited to 'check_snmp_if')
-rwxr-xr-xcheck_snmp_if2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_snmp_if b/check_snmp_if
index 993722b..5872367 100755
--- a/check_snmp_if
+++ b/check_snmp_if
@@ -39,7 +39,7 @@ while getopts ":H:c:i:" opt; do
esac
done
-SNMPWALK_RESULT=$(snmpwalk -c "$COMMUNITY" -v 2c "$HOSTNAME" ifOperStatus.$INTERFACE; exit $?)
+SNMPWALK_RESULT=$(snmpwalk -c "$COMMUNITY" -v 2c "$HOSTNAME" 1.3.6.1.2.1.2.2.1.8.$INTERFACE; exit $?)
RET=$?
[ $RET -ne 0 ] && result 3 "snmpwalk failed with code $RET: $SNMPWALK_RESULT"