-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: Improve error handling when monitored appliance is not available #30
Conversation
I just asked @kamakazikamikaze about the state of affairs over at easysnmp/easysnmp#147. |
Please let me know if a full release instead of a pre-release is required. I was hoping to get a few more bugfixes out for 0.2.6 but it's more important to me that projects dependent on the enhancements are able to operate effectively. |
Dear Kent, thank you very much for your quick response on this matter. I think it is no problem to install both packages using an incantation like
until 0.2.6 GA will be published 1.
I very much appreciate that, keep up the spirit. Good luck with the next round of fixes to With kind regards, Footnotes
|
Should we add a hint on this specific version in the
No real objections on it but also never did this and low on time. I would favor a solution that is build on github actions that will release/update pipy alongside github releases (or is this a onetimer and will automatically pick up new releases from github?) EDIT: there is one already in place and explained on official site: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ |
Dear Kent (@kamakazikamikaze), we can confirm
Indeed, a full release would be needed in order to express it in the Do you see any chance to publish a full 0.2.6 release of With kind regards, |
Dear Werner,
I think all will be fine as soon as
I hear you. We have a diverse set of release procedures on our Python repositories, also based on GHA. When I can find some time, I will pick the best-of-breed solution and submit a corresponding patch here. Maybe next winter. With kind regards, |
I plan to publish 0.2.6 this weekend. I finally got around to addressing an SNMP v3 issue while sneaking in some proper Net-SNMP library cleanup. Just know that I will likely be moving the repo to the new org I created earlier this year. |
I fast-tracked the publication. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any other objections?
README.md
Outdated
While the program will work already, the most recent official release of the | ||
``easysnmp`` package available on PyPI is from Jun 15, 2017. So, unless a new | ||
version gets published, we recommend to use the latest ``easysnmp`` from the | ||
upstream repository. It received many improvements just recently (2022). | ||
```shell | ||
pip install git+https://github.com/kamakazikamikaze/easysnmp | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well - we can remove this then, can't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear Frederic,
thank you. I've just refreshed the patch and removed this section. Instead, I've added "easysnmp>=0.2.6,<1"
as dependency constraint.
Also thank you very much, @kamakazikamikaze, for releasing easysnmp-0.2.6
!
With kind regards,
Andreas.
@all-contributors pls add @kamakazikamikaze for plugin Thx for your support here (regarding easysnmp) and quick reactions! |
I've put up a pull request to add @kamakazikamikaze! 🎉 |
f081688
to
8c22578
Compare
Previously, the program yielded the rather cryptic error message `<built-in function get> returned NULL without setting an error` and also added a traceback, not catching the exception. Now, any such exceptions are caught and cleanly converged into the `UNKNOWN` state, so that the program croaks with: UNKNOWN - timed out while connecting to remote host The improved error handling will only be available with easysnmp>=0.2.6.
8c22578
to
385e40f
Compare
Dear Frederic,
this patch aims to improve robustness of non-happy code paths after bringing in #19 the other day.
Previously, the program yielded the rather cryptic error message
<built-in function get> returned NULL without setting an error
and also added a traceback, not catching the exception.Now, any such exceptions are caught and cleanly converged into the
UNKNOWN
state, so that the program croaks with:Note: The improved error message will only be available when installing the latest
easysnmp
from the upstream repository.With kind regards,
Andreas.
Before
How it looked like on my aNag when the appliance went down.
After
Now it looks compact and clean again.
With all six sensors active, the space-saving is even more dramatic and obvious. And of course, the error message is way clearer than before.