Bug 2270342 - check_snmp: No valid data returned
Summary: check_snmp: No valid data returned
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nagios-plugins
Version: 38
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Guido Aulisi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-19 18:24 UTC by bmason
Modified: 2024-04-20 02:16 UTC (History)
7 users (show)

Fixed In Version: nagios-plugins-2.4.9-1.el7
Clone Of:
Environment:
Last Closed: 2024-04-20 02:16:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nagios-plugins nagios-plugins issues 743 0 None open check_snmp issue on release-2.4.7: No valid data returned 2024-03-19 18:25:10 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.