Build precise queries to find exactly what you need
Press ESC to close
Very good!
I have made a little change in order to use interface name instead of index number. My changes:
index=`snmpwalk -v2c -c $snmpstring $host IF-MIB::ifName | awk -v PORTNAME=”$interface$” ‘$0 ~ PORTNAME {split($1,array,”.”); print array[2]}’`
# current value trafbyteIn=`snmpget -v2c -c $snmpstring $host 1.3.6.1.2.1.31.1.1.1.6.$index |awk {‘print $4’}` trafbyteOut=`snmpget -v2c -c $snmpstring $host 1.3.6.1.2.1.31.1.1.1.10.$index |awk {‘print $4’}`
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!