Path : /proc/2/root/proc/3/cwd/var/lib/zabbix/ |
Current File : //proc/2/root/proc/3/cwd/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"