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

Improve error message when SNMP connection fails by including hostname #24

Merged
merged 1 commit into from
Mar 12, 2022

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Mar 12, 2022

Dear Frederic,

based on the last comment of our discussion over at #20 (comment), I figured it would be a good idea to actually try to connect to a hostname which does not resolve.

With this patch, check_synology responds with

Could not connect to SNMP at synology.example.org. Reason: couldn't create SNMP handle

This allows the user to more easily figure out to put in a correct address there.

With kind regards,
Andreas.

@wernerfred wernerfred merged commit 88886eb into wernerfred:master Mar 12, 2022
@amotl amotl deleted the improve-connect-error branch March 13, 2022 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants