Nagios-plugins: New check_snmp_linux_hdd.pl
Lately I’ve been experiencing that 1% can be a lot of GB’s when you’re monitoring harddrives and therefore I’ve updated my nagios-plugin for checking used disk space on Linux servers to take decimals of precent (ex. 98.5%). I also made some estetic changes to how the plugin presents data to Nagios to show used disk space in present and available space in GB, both with two decimals.
During this upgrade of the plugin I realized one good thing and one not so good thing. The not so good thing is that snmpdf doesn’t seem to concider the reserved filesystem area in Unix/Linux systems with the result that it shows more available space and therefore also a lower precentage value than a regular df does.
On the positive side is that the plugin works perfectly fine, not just on Linux, but also on Solaris.
Enjoy!
http://amelia.linuxchick.se/code/nagios-plugins/check_snmp_linux_hdd.pl


