Build precise queries to find exactly what you need
Press ESC to close
With seagate HDD it works perfect
but with WD HDD I had a problem because of this string: grep “${i} ” $TEMPRAIDSTATUS | grep -v “row” | sed ‘s/ */ /g’| cut -d’ ‘ -f6
with the last “cut” seagate output without “cut”: a0e32s1 SEAGATE ST32000444SS 1863GiB a0d0 online
WD output without “cut”: a0e32s0 ATA WDC WD2000FYYZ-0 1863GiB a0d0 online
So when cut works on seagate CURRENTDISKSTATUS=online
on wd CURRENTDISKSTATUS=a0d0
So for WD HDD you need to change this string to : # Log list of degraded disks CURRENTDISKSTATUS=$( grep “${i} ” $TEMPRAIDSTATUS | grep -v “row” | sed ‘s/ */ /g’| cut -d’ ‘ -f7 );
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!