With latest version of check_snmp from nagios-plugins-snmp: # rpm -qf /usr/lib/nagios/plugins/check_snmp nagios-plugins-snmp-2.4.8-1.fc38.x86_64 Trying to check black toner levels on my printer: # /usr/lib/nagios/plugins/check_snmp -H 192.168.102.22 \ -o 1.3.6.1.2.1.43.11.1.1.9.1.1 SNMP OK - 86 | iso.3.6.1.2.1.43.11.1.1.9.1.1=86 fails if I specify a range of values indicating low toner levels. The following command should return a warning if the toner level is between 5-10% and return critical if lower than 5%. However, the following error is issued: # /usr/lib/nagios/plugins/check_snmp -H 192.168.102.22 \ -o 1.3.6.1.2.1.43.11.1.1.9.1.1 -c "@:5" -w "@5:10" No valid data returned (86) This works fine in the previous version: # yum downgrade nagios-plugins-snmp ... # rpm -qf /usr/lib/nagios/plugins/check_snmp nagios-plugins-snmp-2.4.0-8.fc38.x86_64 # /usr/lib/nagios/plugins/check_snmp -H 192.168.102.22 \ -o 1.3.6.1.2.1.43.11.1.1.9.1.1 -c "@:5" -w "@5:10" SNMP OK - 86 | iso.3.6.1.2.1.43.11.1.1.9.1.1=86;@5:10;@:5 Reproducible: Always Steps to Reproduce: See "Details" Actual Results: See "Details" Expected Results: See "Details" Looks like this could be https://github.com/nagios-plugins/nagios-plugins/issues/743
I'm seeing this too. supposedly fixed in 2.4.9, released 5 days ago..
Samesies here, on an EL7-based host. Notes: previous comments are right on the money. 2.4.9 has been requested in bug 2270901 and should address this. EPEL 9 stopped the shipment because someone hit this bug. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-372183e499 EPEL 7 shipped with the issue. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-113ba5a084
FEDORA-EPEL-2024-8d10851c67 (nagios-plugins-2.4.9-1.el7) has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-8d10851c67
FEDORA-EPEL-2024-8d10851c67 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-8d10851c67 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Fixed in F38: # cat /etc/redhat-release Fedora release 38 (Thirty Eight) # rpm -q nagios-plugins nagios-plugins-2.4.9-1.fc38.x86_64 # /usr/lib/nagios/plugins/check_snmp -H 192.168.102.22 -o 1.3.6.1.2.1.43.11.1.1.9.1.1 -c "@:5" -w "@5:10" SNMP OK - 86 | iso.3.6.1.2.1.43.11.1.1.9.1.1=86;@5:10;@:5
FEDORA-EPEL-2024-8d10851c67 (nagios-plugins-2.4.9-1.el7) has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.