Path : /proc/2/root/var/lib/zabbix/ |
Current File : //proc/2/root/var/lib/zabbix/idrac_metrics.sh |
#!/bin/bash host=$1 community=$2 oid=$3 index=$(echo ${4}| awk -F "." '{print $NF}') first=1 IFS=$'\n' result=$(snmpwalk -v2c -c "$community" "$host" "$oid"."$index" | awk -F "=" '{print $2}' | awk -F ": " '{print $2}' | sed "s/\"//g") echo "$result"