-
Notifications
You must be signed in to change notification settings - Fork 650
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
Improve generator parse error handling #1167
Conversation
So in previous combinations of the generator and net-snmp we would get missing MIB file information in the STDERR output of net-snmp. This would be easy to parse and print back to the user. But in the version I'm testing here the information is missing and I'm not sure why. |
Can you share which versions you're using ;) |
It looks like the difference is between net-snmp 5.7 and 5.9. Previously we would show errors like this:
But that is not included anymore. If I use |
For now, I think we should go ahead with this change. It's still useful as-is. We can continue to work on the generator error parsing later. |
adding |
We should add that param to the Makefile
|
b401d52
to
a5bf664
Compare
Easier, I added |
a5bf664
to
2b05f72
Compare
Improve the handling of parse errors from net-snmp. * Fix the line split when there are no errors. * Default to failing on parse errors. * Add extra help messages to help when there are errors. * Improve `parse_errors` output. Signed-off-by: SuperQ <superq@gmail.com>
2b05f72
to
a99ae15
Compare
The error output is now much easier to read:
|
LGTM
Sent by mobile; please excuse my brevity.
… Message ID: ***@***.***>
|
* [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>
Improve the handling of parse errors from net-snmp.
parse_errors
output.