Bug 2270342

Summary: check_snmp: No valid data returned
Product: [Fedora] Fedora Reporter: bmason
Component: nagios-pluginsAssignee: Guido Aulisi <guido.aulisi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: douglas.ohlhorst, guido.aulisi, igor.raits, lemenkov, ratness, rs, smooge
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nagios-plugins-2.4.9-1.el7 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-20 02:16:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bmason 2024-03-19 18:24:01 UTC
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

Comment 1 Robert Story 2024-03-26 21:47:40 UTC
I'm seeing this too. supposedly fixed in 2.4.9, released 5 days ago..

Comment 2 ratness 2024-03-27 04:46:26 UTC
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

Comment 3 Fedora Update System 2024-04-11 12:44:25 UTC
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

Comment 4 Fedora Update System 2024-04-12 02:32:18 UTC
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.

Comment 5 bmason 2024-04-13 05:27:21 UTC
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

Comment 6 Fedora Update System 2024-04-20 02:16:35 UTC
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.