Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
It looks as if the "extend" directive is ignored.
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Edit snmpd.conf: extend httpd_pids /bin/sh /usr/local/bin/check_apache.sh
2. Restart snmpd
3. snmpwalk -On -v2c -c public localhost 1.3.6.1.4.1.8072
Actual results:
.1.3.6.1.4.1.8072 = No more variables left in this MIB View (It is past the end of the MIB tree)
Expected results:
Output of the example script taken from the redhat pages
Additional info:
Can you provide your snmpd.conf config for the community public? By default CentOS/RHEL/Fedora restrict the public community to the system branch, which does not include the extend table.
If you add "rocommunity everything 127.0.0.1" to snmpd.conf, and restart, this should work:
snmpwalk -On -v2c -c everything 127.0.0.1 1.3.6.1.4.1.8072
This is the output of "fgrep -v '#' /etc/snmp/snmpd.conf":
------------------------------
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1.3.6.1.4.1.2021
view all included .1
rocommunity public 127.0.0.1 .1
extend httpd_pids /bin/sh /usr/local/bin/check_apache.sh
access notConfigGroup "" any noauth exact systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes
------------------------------
And found the solution:
I had to add an explicit
------------------------------
view systemview included .1.3.6.1.4.1.8072
------------------------------
I thought that this should have been covered with my "view all ..." line.
> access notConfigGroup "" any noauth exact systemview none none
It would have if the access line were using 'all' instead of 'systemview'.
Also:
>com2sec notConfigUser default public
>rocommunity public 127.0.0.1 .1
Using the same community multiple times is not recommended.