Created attachment 1069447 [details] Patch to add SNMPv3 context support to check_snmp Description of problem: Using Nagios from EPEL on RHEL6: The check_snmp plugin for Nagios allows for SNMPv3 requests, but it does not allow to set the context. This prevents using it with Cisco hardware, for which the context is mandatory to query eg the port status on a switch with VLAN enabled. Net-SNMP has supported setting the context for a while, using the -n parameter, so the same possibility is needed for check_snmp. Version-Release number of selected component (if applicable): 2.0.3 How reproducible: Always Steps to Reproduce: 1. Do a query of a Cisco switch port, using SNMPv3 Actual results: /usr/lib64/nagios/plugins/check_snmp -P 3 -L authPriv -a sha -x aes -U xxx -A xxx -X xxx -H switch -o .1.3.6.1.2.1.17.2.15.1.3.24 -s 5 SNMP CRITICAL - *Such Instance currently exists at this OID* | Expected results: /usr/lib64/nagios/plugins/check_snmp -P 3 -L authPriv -a sha -x aes -U xxx -A xxx -X xxx -N vlan-201 -H switch -o .1.3.6.1.2.1.17.2.15.1.3.24 -s 5 SNMP OK - 5 | iso.3.6.1.2.1.17.2.15.1.3.24=5 Additional info: I've been applying a patch found there and rebuilding from the source rpm: https://build.opensuse.org/package/view_file/server:monitoring/nagios-plugins/nagios-plugins.check_snmp.snmpv3-context.patch?expand=1 It adds a -N parameter (-n is already in use). The resulting binary has been working well for my needs, context can be used and no side effect so far, so I would appreciate if it could be considered for inclusion in EPEL.
nagios-plugins-2.1.4-5.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4e77054bfa
The latest upgrade of the Nagios plugins went smoothly, and all my tests worked with them without any additional patching needed. So I consider this to be fixed, thanks!
nagios-plugins-2.1.4-5.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4e77054bfa
nagios-plugins-2.1.4-6.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-b820953367
nagios-plugins-2.1.4-7.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-994c77a4cd
nagios-plugins-2.1.4-7.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-994c77a4cd
nagios-plugins-2.2.0-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-5d813cd00d
nagios-plugins-2.2.0-4.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-b0accaba31
nagios-plugins-2.2.0-4.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-b0accaba31
nagios-plugins-2.2.0-6.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4a502a08b4
nagios-plugins-2.2.0-6.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4a502a08b4
nagios-plugins-2.2.0-7.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1623674064
nagios-plugins-2.2.0-7.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1623674064
nagios-plugins-2.2.1-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-306cbf64b0
nagios-plugins-2.2.1-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.