Skip to content

Instantly share code, notes, and snippets.

@DRN88
Created March 16, 2018 09:18
Show Gist options
  • Save DRN88/d2a2757d6a2a26df066c37f0e60eeaa8 to your computer and use it in GitHub Desktop.
Save DRN88/d2a2757d6a2a26df066c37f0e60eeaa8 to your computer and use it in GitHub Desktop.
External check for zabbix. snmpwalk wrapper
#!/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