Build precise queries to find exactly what you need
Press ESC to close
Hi there!
Thanks for the wonderful work. Monitoring active/standby unit worked out of the box, but trying to get active sessions yielded “Error – Not numeric value : = Max_Used_Sessions”, no matter if I used version 1 or 2c.
So I simply deleted the whole if block around $Max_Used_Sessions and deleted “|sed -n ‘2p'” as the output of snmpwalk was always a single line.
Function looks now like this:
sessions_max() { Max_Used_Sessions=`/usr/bin/snmpwalk $walk_param $mib_sessions_max | cut -d’ ‘ -f4`
check_num $Max_Used_Sessions Max_Used_Sessions
if [ $Used_Sessions -gt $Max_Used_Sessions ] then echo “Error – Too many sessions used : $Used_Sessions, but only $Max_Used_Sessions max sessions allowed!” exit $result_Unknwon fi }
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!