Build precise queries to find exactly what you need
Press ESC to close
I like the fact that you report how much is used instead of how much is free. A couple of suggestions; Instead of getting details for all devices (df -P | grep -w $device) try just checking the needed device (df -P $device |tail -1)
I like to also see the numbers the percentage is based on in nagios – you could consider checking like this; read size used free usedPercent rinting the results: echo “$msg – $device space used=$usedPercent% ($used of $size used) | ‘$device usage’=$usedPercent%;$warning;$critical;”
Just my thoughs 🙂 Best regards Theis M. Mønsted
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!