-
-
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
Disable snmp v2 & v1 #56
Comments
@hdep I am not positive, but try this: class { 'snmp':
ro_community => undef,
ro_community6 => undef,
groups => [ 'myGroupName v3 mySecName', ],
} |
Any updated comments on disabling v1/v2 as part of the config? Below are the required steps: In order to disable the v1 and v2c of SNMP a comment must be added on the com2sec & access lines in the snmpd.conf file, in e.g:
To disable SNMP v1 connection only, comment out the line of "group notConfigGroup v1 notConfigUser" only. SNMP v2c is still available.
|
After looking into the code you can disable v1/v2 by passing an empty array to com2sec and com2sec6 parameters.
|
Looks like a documentation update is in order. |
Thank you. Aug 9 16:49:39 serversnmpd[12025]: /etc/snmp/snmpd.conf: line 22: Error: Blank line following com2sec token. Maybe it would more efficient to create a variable which enable or disable snmpv2 configuration ? |
I did a PR for this : Any help appreciated to fix the remaining issue, but it is working on my VM. |
Hello,
I am currently testing your plugin which seems working fine on my system (debian 8).
Il only want to use snmpv3, this is working but the plugin is still generating some configuration about snmp v2, is there a way to disable this ?
Regards,
The text was updated successfully, but these errors were encountered: