-
Notifications
You must be signed in to change notification settings - Fork 9
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
Rewrite in Python #74
Comments
|
Hi,
I would write it in a way that it runs on Python 2 and 3. There are some language differences with dictionary iterators, but nothing which cannot be solved. If you need a good book, I have one on my desk - Head first Python. I'd also suggest to move certain parts into libraries and packages, and use If you want, let's discuss this on Monday. I also want to deprecate Cheers, |
Ok, thanks for the input. I asked the community to join the conversation so we can keep Diagnostics available on all OSes people run Icinga on. One side note from an ops point of view: I would only release it via pip if that can make package building easier. I would never suggest that someone has to install it via pip. So either an easy to use tarball (especially for non-standard-os) or, much better, packages in the Icinga repository. |
For FreeBSD:
|
I'm not a user of icinga2-diagnostics, but I think you shouldn't focus on supporting both Python 2 and 3 as Python 2.7 is 10 years, is EOL and won't be maintained after the end of this year and Python 3 is available pretty much everywhere. |
The problem I can see: RHEL7 and other ELs are here for the next years, and they cannot simply switch from 2 to 3. If a user must install python3 in order to run a diagnostics script, feels wrong. Especially since none of the other products enforces this already. PHP via icingacli would be a slightly better option, poke @lippserd and @Thomas-Gelf about it :) |
I don't know RHEL very well, but it seems to only be a matter of activating some repositories and install python3 with |
@johanfleury yes, but that's a lot for just enabling a simple diagnostics tool which main focus is to be easily usable. |
If we rewrite this in Python, we must be version 2-3 compatible. It is not much of an effort to do so. We could also consider the Web and CLI (PHP) option. Though I'm unsure what to do with satellites and agents which may not have PHP installed. We already have |
Hi, Python shipped via OpenIndiana (openindiana.org).
HTH, |
Oracle Solaris 11.1 X86
Raspbian GNU/Linux 9 (stretch)
Debian GNU/Linux 9 (stretch)
CentOS release 6.10 (Final)
CentOS Linux release 7.6.1810 (Core)
Fedora release 30 (Thirty)
|
Python 2.6 shouldn't be too hard, if you have CI jobs for PRs. |
@dnsmichi I'm counting on you to give me some hints for that. ;-) |
Just something like this, which runs the script after a short icinga2 installation for instance. |
Should we do a complete rewrite in Python?
Some users suggested that a python Version of this script might be more powerful and easier to maintain. Our main goal is to allow to run icinga diagnostics with as less hassle as possible on all platforms that run Icinga. Even those not officially supported.
So what we need from you as part of the community:
The text was updated successfully, but these errors were encountered: