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

Set SNMP ASN_GAUGE values to unsigned. #1325

Closed
wants to merge 2 commits into from

Conversation

nward
Copy link
Contributor

@nward nward commented Oct 28, 2015

SNMP-SMIv2 specifies Gauge32 as unsigned, however the change to fix #50, which was this exact problem, set both Integer and Gauge to signed, when it should have only set Integer.

This patch sets Gauge32 to be unsigned.

@nward
Copy link
Contributor Author

nward commented Oct 29, 2015

Updated the PR to fix clang complaining about extraneous parenthesis.

@mfournier
Copy link

Thanks for figuring this out @nward !

The reasoning seems to match what one can read on the topic in rfc1902.

I'll leave this open for a few more days so that others can review, but AFAIC it's good to go.

@mfournier mfournier added this to the 5.4 milestone Oct 30, 2015
@mfournier mfournier added the Bug A genuine bug label Oct 30, 2015
@nward
Copy link
Contributor Author

nward commented Oct 31, 2015

As a data point, I've been running this in production for a few days now, no problems with any other stats - and we have.. lots.

@mfournier
Copy link

Many thanks @nward ! I've just merged your patches (30e6ef6 + 6784bec) to the bugfix branches, so they will be part of every future release.

@mfournier mfournier closed this Nov 8, 2015
@octo octo added Fix A pull request fixing a bug and removed Bug A genuine bug labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix A pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SNMP Plugin making wrong interpretation data type
3 participants