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

[snmp] configuration option to ignore non-increasing OIDs #1281

Merged
merged 2 commits into from
Jan 14, 2015

Conversation

sethrosenblum
Copy link
Contributor

Adds a configuration option to walk non-increasing OIDs. Fixes #1231.

@LeoCavaille LeoCavaille changed the title Allow configuring of SNMP to ignore non-increasing OIDs [snmp] configuration option to ignore non-increasing OIDs Jan 6, 2015
if init_config is not None:
mibs_path = init_config.get("mibs_folder")
SnmpCheck.create_command_generator(mibs_path)
ignore_nonincreasing_oid = init_config.get("ignore_nonincreasing_oid", False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to cast this properly into a boolean value, I don't know how pysnmp behaves with that (it probably tests the truth value). If the config says True this will be equal to the string "True" , there is a _is_affirmative function in config you can use.
The worst case being bool("False") == True

LeoCavaille added a commit that referenced this pull request Jan 14, 2015
[snmp] configuration option to ignore non-increasing OIDs
@LeoCavaille LeoCavaille merged commit 06a4839 into master Jan 14, 2015
@LeoCavaille LeoCavaille deleted the snmp_ignore_increasing_oids branch January 14, 2015 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[snmp] config option for non-increasing OID support
2 participants