Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: workaround servertech_sentry3 zero-length integers #1090

Merged

Conversation

robbat2
Copy link
Contributor

@robbat2 robbat2 commented Jan 15, 2024

servertech_sentry3 devices can return bad ASN.1 data, an Integer with asnlength=0 under certain cases.

  • Certain firmware versions only
  • SNMP BULKGET
  • Specific OIDs deep into the tree, at different repetition values

Work around the problem by setting max_repetitions=4, which doesn't trigger the device bug.

Closes: #1080

servertech_sentry3 devices can return bad ASN.1 data, an Integer with
asnlength=0 under certain cases.

- Certain firmware versions only
- SNMP BULKGET
- Specific OIDs deep into the tree, at different repetition values

Work around the problem by setting max_repetitions=4, which doesn't
trigger the device bug.

Closes: prometheus#1080
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Thanks, this seems like a reasonable workaround for now.

@SuperQ SuperQ merged commit 1713a9e into prometheus:main Jan 15, 2024
6 checks passed
harshavmb pushed a commit to harshavmb/snmp_exporter that referenced this pull request Feb 16, 2024
)

servertech_sentry3 devices can return bad ASN.1 data, an Integer with
asnlength=0 under certain cases.

- Certain firmware versions only
- SNMP BULKGET
- Specific OIDs deep into the tree, at different repetition values

Work around the problem by setting max_repetitions=4, which doesn't
trigger the device bug.

Closes: prometheus#1080

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Harshavardhan Musanalli <Harshavardhan.Musanalli@amadeus.com>
@SuperQ SuperQ mentioned this pull request May 10, 2024
SuperQ pushed a commit that referenced this pull request May 11, 2024
* [CHANGE] Improve generator parse error handling #1167
* [ENHANCEMENT] generator: Add generator HELP override #1106
* [ENHANCEMENT] Refactoring of Scrape process, fixing multiple module issues #1111
* [ENHANCEMENT] Skip using an interactive terminal in "make docker-generate". #1113
* [ENHANCEMENT] Add SNMPInflight metric #1119
* [FEATURE] Support for passing username, password & priv_password as env vars #1074
* [FEATURE] Add GoSNMP logger #1157
* [FEATURE] Add a "snmp_context" parameter to the URL #1163
* [BUGFIX] generator: curl failed #1094
* [BUGFIX] Fix SNMPv3 password configuration #1122
* [BUGFIX] generator: Update generator User-Agent #1133
* [BUGFIX] generator: fix mibs directory specification for parse_errors command #1135
* [BUGFIX] generator: remove extra character from dell iDrac-SMIv1 MIB #1141
* [BUGFIX] Fix do not expand envvars for empty config fields #1148

snmp.yml changes:
* Updated Cisco MIBs #1180
* Updated Cyberpower MIBs #1124
* Updated servertech_sentry3 #1090
* Added support for Dell iDrac  #1125
---------

Signed-off-by: Sebastian Schubert <basti@schubert.digital>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

servertech_sentry3 scraping broke between 0.20.0 and 0.21.0
2 participants