Created
March 16, 2018 09:18
-
-
Save DRN88/d2a2757d6a2a26df066c37f0e60eeaa8 to your computer and use it in GitHub Desktop.
External check for zabbix. snmpwalk wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Drop me into: /usr/lib/zabbix/externalscripts | |
# Zabbix usage | |
# snmpwalk["OID","{HOST.CONN}","{$SNMPARGS}"] | |
# | |
if [ $# -gt 1 ]; then | |
/bin/snmpwalk -OQvs ${3} ${2} ${1} | |
else | |
echo "Error: No parameter specified." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment