-
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
Provide code from repository as real Python package #20
Conversation
0e26191
to
67f9992
Compare
|
||
object Host "foo.example.org" { | ||
|
||
// Configuration section for `check_synology` |
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.
Should we use something more randomized as IP address?
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.
Sure we can do that. Do you have any suggestions?
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.
Do you suggest it would be better to use an IP address from another private IP range, like 10.123.456.789
or 172.16.1.2
? Shall we improve the inline documentation to signal to the user that she would have to put in the right value here?
Does it actually have to be an IP address? If not, I would prefer to use host names anyway. When doing so within documentation and configuration snippets, I usually use the example.org
domain, which is exactly made for this purpose. So, what about synology.example.org
, if that would make sense?
The benefit is that this would croak on the resolver level already, hopefully implictly telling the uninitiated user that she would have to adjust the corresponding setting.
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.
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.
If not, I would prefer to use host names anyway. When doing so within documentation and configuration snippets, I usually use the example.org domain, which is exactly made for this purpose. So, what about synology.example.org, if that would make sense?
Exactly my thoughts
@all-contributors add @amotl for ideas and example |
I've put up a pull request to add @amotl! 🎉 |
Dear Frederic,
in order to improve installation convenience, we decided to add some bits to bring the repository into a shape similar to another Python-based monitoring plugin we recently worked on 1.
Along the lines of adding a corresponding
setup.py
file, the patch also improves the README file and splits off the Icinga configuration files into a separate folder for easier consumption and extensibility 2.Installing the program, even without publishing the package to PyPI, is now a matter of invoking a single command 3.
By putting the corresponding Icinga configuration snippets into separate files, they can be easily acquired as well.
We hope you like those improvements.
With kind regards,
Andreas.
/cc @Tonkenfo
Footnotes
https://github.com/cicerops/fritznagios ↩
The patch builds upon Use "easysnmp" and "snmpwalk" for huge efficiency gains #19, so the diff relative to this would be https://github.com/cicerops/check_synology/compare/easysnmp...package. The new README file can be directly viewed at package/README.md. ↩
This tremendously eases usability, because the interface from
synology-command.conf
will be more "stable" - no need to explicitly assign the Python interpreter there anymore, it will be automatically linked when expanding theconsole_scripts
entrypoint defined insetup.py
. ↩