-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocommunity commented out #10
Comments
Of the three access control methods used by NetSNMP, only VACM is being used in the template. I intend to eventually allow the choice to utilize the traditional access control configuration (of which rocommunity is a member), but instead I just left it commented out in the template. If you provide the parameters views and accesses along with ro_community, you should get a functional VACM access configuration. class { 'snmp':
ro_community => 'public',
views => [
'view systemview included .1.3.6.1.2.1.1',
'view systemview included .1.3.6.1.2.1.25.1.1',
],
accesses => [
'access notConfigGroup "" any noauth exact systemview none none'
],
} The template definitely needs more work in this area. |
to emulate this "traditional" behaviour you can just set views by adding the below config variable to your snmp class, obviously this removes the default setup that the module configures, the default config which you get without it hides network ifaces among other things so i had to do this for my observium install to start seeing NIC data again views => ["systemview included .1"] |
Also seeing this issue, simply adding what @anthonysomerset suggested fixed the issue. I actually didn't have to add the other views and accesses definitions from @razorsedge . |
Why setting a RO community different from 'public', I get this snmpd.conf file?
|
The real solution to this is to use VACM instead of rocommunity. Although To answer your question that field is broken, you can still use rocommunity On Thursday, May 29, 2014, mimmus [email protected] wrote:
|
I solved using com2sec. |
I will accept PRs to fix this. :-) Not sure when my schedule will allow me to get to it. |
I'm trying to fix it, is there any reason to keep ro_network and rw_network parameters ? They make the template writing a bit more complicated. Can we consider those elements can be parts of ro_community and rw_community strings if needed ? |
Documentation has been updated in commit 84bab50. Is this helpful until I can get things refactored? |
Just thought I'd point out that the view part of the config at #10 (comment) doubles up on the "view" command at the start of the lines. |
This is fixed in razorsedge/snmp version 3.3.1. |
ro_community leads to a commented out rocommunity snmpd.conf file; this seems counterintuitive.
The text was updated successfully, but these errors were encountered: