Skip to content
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

Support for snmp v3 #236

Closed
michaelrichardson opened this issue Jan 26, 2015 · 5 comments · Fixed by #665
Closed

Support for snmp v3 #236

michaelrichardson opened this issue Jan 26, 2015 · 5 comments · Fixed by #665
Labels
enhancement New feature or request

Comments

@michaelrichardson
Copy link

It would be lovely to support snmp v3. The source on github/collectd (commit 4ab54ded3b73d5051230bb35eecf766a51dee786) adds in this capability, though it hasn't filtered down through the main linux distribution packages yet.

I believe that basic patches to snmp.conf.erb and the related hosts/data templates would be enough, with the extra variables that v3 requires. Something along the lines of

 <% elsif val['Version'] = 3 %>
    Address "<%= val['Address'] %>"
    SecurityLevel "<%= val['SecurityLevel'] %>"
    Username "<%= val['Username'] %>"
    AuthProtocol "<%= val['AuthProtocol'] %>"
    AuthPassphrase "<%= val['AuthPassphrase'] %>"
    PrivacyProtocol "<%= val['PrivacyProtocol'] %>"
    PrivacyPassphrase "<%= val['PrivacyPassphase'] %>"
    Version <%= val['Version'] %>
    Collect <% val['Collect'].each do |x| -%>"<%= x -%>" <% end %>
    Interval <%= val['Interval'] %>
  <% end -%>

...for example. Is anyone about to do this, or shall I submit a minor PR?

@txaj
Copy link

txaj commented Jan 27, 2015

you can submit a PR

Please find out the exact collectd version required for that feature so you can properly write that if

@jyaworski
Copy link
Member

@michaelrichardson are you still interested in a PR for this? There is support for minimum_version, so this could work.

@michaelrichardson
Copy link
Author

@jyaworski Yes, I'll see if I can get one together. Until recently, the official collectd packages also didn't support SNMPv3, so we were running with both a bleeding-edge patched collectd and my hodge-podge puppet modifications. Thankfully, it's all mainline now, so will be much easier (particularly with the minimum_version above).

@jyaworski
Copy link
Member

Awesome! Looking forward to it.

@jyaworski
Copy link
Member

Ping @michaelrichardson again.

@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants