Build precise queries to find exactly what you need
Press ESC to close
If an email is delivered between ‘find’ seeing it and stating it, you get messy output. find has the ‘-ignore_readdir_race’ switch to address this.
@@ -132,10 +132,10 @@ done
# Get values -deferred=`(test -d deferred && find deferred -type f ) | wc -l` -active=`(test -d active && find active -type f ) | wc -l` -corrupt=`(test -d corrupt && find corrupt -type f ) | wc -l` -hold=`( test -d hold && find hold -type f ) | wc -l` +deferred=`(test -d deferred && find deferred -ignore_readdir_race -type f ) | wc -l` +active=`(test -d active && find active -ignore_readdir_race -type f ) | wc -l` +corrupt=`(test -d corrupt && find corrupt -ignore_readdir_race -type f ) | wc -l` +hold=`( test -d hold && find hold -ignore_readdir_race -type f ) | wc -l` bounced=`cat /var/log/maillog | grep bounced | wc -l` }
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!