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

Add support for forced SNMP data types to help w/ buggy devices #2165

Merged
merged 1 commit into from Feb 9, 2016

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Dec 23, 2015

This is just a minor touch-up to #1331 by @chrissnell - adding tests and raising an exception in the event of a bad forced_type.

PR summary by @chrissnell:

Add support for forced SNMP data types to help w/ buggy devices

Some SNMP-enabled devices return incorrect data types when certain OIDs are queried. The F5 1600LTM load balancer is an example of such a device. This PR allows for the forcing of data types (to 'gauge' or 'counter') in the event of an incorrect response from the remote agent.

It adds a parameter to the metric definition on the YAML, 'forced_type'.

NOTE: The changes in this PR were tested in a back-ported version of this improved snmp check that Datadog provided me. The check patched here is from a newer version of the agent that I don't have any easy way to test right now. The changes are the same between the versions and it should work but I have no way to test.

@truthbk truthbk modified the milestones: Triage, 5.7.0 Jan 15, 2016
@remh remh modified the milestones: 5.7.0, Triage Jan 15, 2016
@truthbk truthbk force-pushed the jaime/snmp_buggy branch 2 times, most recently from 1f66d52 to 4d0db8b Compare January 20, 2016 22:13
@olivielpeau olivielpeau self-assigned this Feb 2, 2016
@olivielpeau
Copy link
Member

Looks good! 👍

Could you squash your commits into one or two please?

[snmp] adding tests, minor fix to PR.

[snmp] with new SNMP network check, we run test twice to collect results.

[snmp] log network check exceptions, fix test.

[snmpd-test] add a sleep parameter to ensure interval >= 1
truthbk added a commit that referenced this pull request Feb 9, 2016
Add support for forced SNMP data types to help w/ buggy devices
@truthbk truthbk merged commit 286fefd into master Feb 9, 2016
@truthbk truthbk deleted the jaime/snmp_buggy branch February 9, 2016 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants