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

Issues with SNMP collection #59

Closed
shaunduncan opened this issue Jan 12, 2015 · 4 comments
Closed

Issues with SNMP collection #59

shaunduncan opened this issue Jan 12, 2015 · 4 comments

Comments

@shaunduncan
Copy link
Contributor

Hello!

I'm working on testing out SNMP data collection and I am running into some issues that are leading me to believe that this feature might be broken. I have a small VM setup using the SNMPRawCollector as follows:

[[SNMPRawCollector]]
enabled = True
interval = 10
[[[devices]]]
[[[[localhost]]]]
host = localhost
port = 161
community = public
[[[[[oids]]]]]
<my_oid> = mymetric

There are a few behaviors I have noticed that are confusing me:

  1. The configuration docs on this collector seem to be out of date and do not show proper config nesting (i.e. the docs show [devices] instead of [[[devices]]])
  2. When the collector fails to run, it fails silently (perhaps this is just my fault in configuring diamond)
  3. When the collector runs, it performs no action. I did a little digging and it seems that a removal of a get_schedule method may have been the culprit, but I don't know enough about the project internals to confirm this. Some manual work by adding in a collect method that did much of the work that get_schedule did seems to actually run the collector.

Really, I'm just curious if what I'm seeing is expected or if there is anyone else who has run into similar issues using SNMP collection.

Thanks!

@shaunduncan
Copy link
Contributor Author

Also, is there a discernible difference between the SNMPCollector and SNMPRawCollector? It's not clear to me from the documentation as to when one would be preferable over the other.

@krbaker
Copy link
Contributor

krbaker commented Mar 13, 2016

the different levels of nesting depend on where you put the configuration I believe. If you put it in the main config you need more [] than if you put it in the per-collector config. /etc/diamond/collectors/SNMPRawCollector.conf vs /etc/diamond/diamond.conf

@DStape
Copy link
Contributor

DStape commented Mar 21, 2018

Hello @shaunduncan, this issues was opened a while ago, is it still a problem?

(@josegonzalez , to get on top of the backlog of open issues, I think this can be closed.)

@josegonzalez
Copy link
Member

josegonzalez commented Mar 21, 2018

Cool cool, closing. Please comment if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants