| Summary: | net-snmp seems not to support extensions | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jens Hektor <hektor> |
| Component: | net-snmp | Assignee: | Jan Safranek <jsafrane> |
| Status: | CLOSED WORKSFORME | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | rs |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-18 11:15:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jens Hektor
2016-03-16 13:02:19 UTC
I was using this example: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Extending.html 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. Off course. Anyway thank you to the fantastic support here and @Centos bug tracker. Case can be closed. Closing. And thanks Robert for support! |