check_snmp_storage.pl for nagios – argument isn’t numeric error

If the check_snmp_storage.pl plugin for Nagios returns an error like

**ePN /usr/local/libexec/nagios/check_snmp_storage.pl: "Argument "v6.0.1" isn't numeric in numeric lt (<) at (eval 7) line 421,".

replace all occurrences of

if (Net::SNMP->VERSION < 4) {

with

if (Net::SNMP->VERSION lt 4) {

because it’s comparing strings, not numbers.

Modified version.