[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268891] net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Jan 2023 18:43:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268891 Bug ID: 268891 Summary: net-mgmt/nagios-snmp-plugins-extras: Net::SNMP->VERSION format has changed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dvl@FreeBSD.org I'm seeing this error: Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/libexec/nagios/check_snmp_storage.pl line 420. Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/libexec/nagios/check_snmp_storage.pl line 494. This affect other scripts with this package as well. The lines in question look like this: if (Net::SNMP->VERSION < 4) { I think the problem is caused by a change in format for Net::SNMP->VERSION - it is now alphanumeric and was previously numeric. I have this code snippet to demonstrate a potential fix: #!/usr/local/bin/perl use strict; use Net::SNMP; print (Net::SNMP->VERSION); print"\n"; if (Net::SNMP->VERSION lt "v4.0.0.0") { print "it is less than\n"; } else { print "it is NOT less than\n"; } $ perl test-snmp-version.pl v6.0.1 it is NOT less than $ pkg info -x nagios-snmp-plugins-extras nagios-snmp-plugins-extras-1.1.2_1 pkg info -x net-snmp net-snmp-5.9.1_1,1 p5-Net-SNMP-6.0.1_1 -- You are receiving this mail because: You are the assignee for the bug.