check_snmp_storage and Net::SNMP v6.0.1
Brought to you by:
patrickproy
Reporting an artifact of newer versions of Net::SNMP, we have v6.0.1 which was shipped with Opsview core. (Nagios based) The return value of "Net::SNMP->VERSION" is a non integer, in my case "v6.0.1". There are a number of lines testing "less than" 4. Here is a sample of output errors.
ERROR:
Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/nagios/libexec/check_snmp_storage.pl line 422.
Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/nagios/libexec/check_snmp_storage.pl line 430.
Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/nagios/libexec/check_snmp_storage.pl line 496.
I'm not sure why they changed the output of that perl module type.
I can verify this...
lucid:
echo 'use Net::SNMP;
I've attached a patch. I'm not sure what this test is for. It doesn't seem like it would have any effect. Perhaps it should instead be removed.
Thanks for the script...