Build precise queries to find exactly what you need
Press ESC to close
Very useful plugin. Because Synology changed the way how spare disks are handled, I had to make some changes regarding the “initialized” Status which is interpreted as critical. Here are my changes on your script, maybe useful for one or two: if [ “${diskStatus[$i]}” != “1” ] && [ “${diskStatus[$i]}” != “2” ] ; then # if [ “${diskStatus[$i]}” = “2” ] ; then diskStatus[$i]=”Initialized”; fi if [ “${diskStatus[$i]}” = “3” ] ; then diskStatus[$i]=”NotInitialized”; fi if [ “${diskStatus[$i]}” = “4” ] ; then diskStatus[$i]=”SystemPartitionFailed”; fi if [ “${diskStatus[$i]}” = “5” ] ; then diskStatus[$i]=”Crashed”; fi healthStatus=2 healthString=”$healthString, problem with ${diskID[$i]} (model:${diskModel[$i]}) status:${diskStatus[$i]} temperature:${diskTemp[$i]} C ” elif [ “${diskStatus[$i]}” = “2” ] ; then diskStatus[$i]=”Initialized”; else diskStatus[$i]=”Normal” fi if [ “$verbose” = “yes” ] ; then echo “${diskID[$i]} (model:${diskModel[$i]}) status:${diskStatus[$i]} temperature:${diskTemp[$i]} C” ; fi done
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!