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
[dev.icinga.com #3446] Add troubleshooting collect cli command #404
Comments
Updated by mfriedrich on 2013-03-20 12:06:25 +00:00
quite the same attempt as in #2551 - should be kept in mind for the final release, collecting all possible data from the users environment in order to get a better idea about the issue(s). |
Updated by gbeutner on 2013-05-14 07:58:06 +00:00
|
Updated by mfriedrich on 2013-08-26 14:13:44 +00:00
please have a look into that. |
Updated by mfriedrich on 2013-10-22 09:03:22 +00:00
|
Updated by berk on 2013-10-28 08:06:24 +00:00
|
Updated by mfriedrich on 2013-11-11 09:15:58 +00:00
|
Updated by mfriedrich on 2014-03-18 10:42:33 +00:00
|
Updated by mfriedrich on 2014-03-18 16:21:47 +00:00
|
Updated by mfriedrich on 2014-04-29 15:53:19 +00:00 Any updates? |
Updated by Frankstar on 2014-06-18 16:01:47 +00:00 Looked over my "old work" and prepared for a 2.x release. |
Updated by mfriedrich on 2014-06-18 16:12:11 +00:00 choose whatever fits best for you. python is reasonable and can be maintained by multiple. |
Updated by Frankstar on 2014-07-28 09:26:16 +00:00 How should we handle the Database checks ? or maybe i provide the installation routine in the script and the user can choose if he want too install the needed driver ? We can also get the information we need from commandline - but i dont like the solution and its more "fault-prone" any ideas are welcome. |
Updated by Frankstar on 2014-07-28 12:08:51 +00:00 Current Output from the Script: feel free to test the script on you host and submit any feedback. |
Updated by mfriedrich on 2014-07-28 15:50:11 +00:00 Looks good. Does it run on Python 2.4 and el5? |
Updated by Frankstar on 2014-07-29 10:37:22 +00:00 Header changed and no it doesn't work on Python 2.4.3
and start the script via python 2.6.
so we can note this in wiki or documentation. |
Updated by mfriedrich on 2014-07-29 10:46:52 +00:00 Isn't that the whole purpose of making this script portable on all supported distributions (that is, el5 and sles11 until 2020)? Imho Python 2.4 is a requirement. Users should just run the script and tell the support guy asking for it. Installing a separate dependency (which could conflict with support policies!) shouldn't be the case here. |
Updated by Frankstar on 2014-07-29 11:13:54 +00:00 it is, im aware of our supported Distributions. maybe i can port it later or some else can port it back. |
Updated by Frankstar on 2014-07-29 13:53:39 +00:00 its working under el5 and python 2.4.x now. But there is a Bug if you are running the script under Windows. |
Updated by TechIsCool on 2014-08-01 01:20:53 +00:00 Just a FYI I am on Ubuntu Trusty x64 and downloaded and ran your script it crashes like this
|
Updated by Frankstar on 2014-08-01 07:40:58 +00:00 First Thank you for testing. It seems your apache install is broken. |
Updated by gbeutner on 2014-08-01 07:52:58 +00:00
"apache2 -V" should probably be "apache2 -v" instead:
|
Updated by gbeutner on 2014-08-01 07:54:27 +00:00 Also, on Debian the user Icinga runs as is nagios
|
Updated by gbeutner on 2014-08-01 07:55:18 +00:00 Other than that it seems to work on Ubuntu 14.04 (after fixing the BOM and shebang issues):
|
Updated by mfriedrich on 2014-08-01 07:56:13 +00:00 I've tested the script and there are some problems:
Attached is a patch including these fixes. Please review & apply. |
Updated by mfriedrich on 2014-08-01 07:56:19 +00:00
|
Updated by Frankstar on 2014-08-01 08:54:37 +00:00 gunnarbeutner wrote:
what is this ? icinga2 doesnt store that user in any of the configuration files, right ? |
Updated by gvegidy on 2014-08-04 20:24:32 +00:00 Frankstar wrote:
no, the user is specified on the commandline and by default read from /etc/sysconfig/icinga2 (or similar, depending on the distro). I think it would make sense to output the current user and group_s_ of the icinga2-process. I suggest something like this:
if it isn't too much work, you could additionally decode the uids and gids to user/group names. |
Updated by mfriedrich on 2014-11-09 15:11:29 +00:00 Please rewrite that functionality into a cli command, for example 'icinga2 info' using the existing cli command framework and bash auto-completion capabilities introduced with 2.2. Python can't be used as dependency for icinga2 anymore. |
Updated by mfriedrich on 2014-11-09 15:13:19 +00:00
|
Updated by mfriedrich on 2014-11-09 15:13:41 +00:00
|
Updated by Frankstar on 2014-11-19 07:57:10 +00:00 will have a look into that. |
Updated by mfriedrich on 2014-11-19 09:21:16 +00:00 No. In C** inside of Icinga 2 code. |
Updated by mfriedrich on 2015-01-28 10:04:19 +00:00
Review:
**** Livestatus: If enabled, try to execute a simple query **** DB IDO: If enabled, fetch the database version ("SELECT * FROM icinga_dbversion;") - that requires reading the ido-*.conf files fetching the connection credentials Basically any enabled feature should be tested and verified operational
|
Updated by mfriedrich on 2015-02-10 20:50:39 +00:00 Compiling your branch leads to the following error:
|
Updated by gbeutner on 2015-02-13 09:54:59 +00:00
|
Updated by mfriedrich on 2015-02-15 11:29:27 +00:00
Review
Future ideas
Please create separate issues for that and reference them here. Wishlist
ConclusionGood job so far! Glad it's been that's already that feature-rich :) I'd say before continuing fixing the remaining tasks, we'll merge that to master. I'll take care of that. |
Updated by mfriedrich on 2015-02-15 11:31:59 +00:00 Oh, and documentation is missing entirely. |
Updated by mfriedrich on 2015-02-15 11:32:42 +00:00
|
Updated by mfriedrich on 2015-02-15 11:40:19 +00:00
Rebased against master, fixed changes in NetString::ReadStringFromStream(), pushed into the branch and also master. There was a warning generated on compile.
Please continue with fixes in the master branch. |
Updated by mfriedrich on 2015-02-20 14:28:04 +00:00 ReviewOne-line if conditions w/o brackets.
Log() function with shift operator requires 4 spaces indent (no tab!)
Same goes for function headers and other line breaks. No tab indent, but 4 spaces.
|
Updated by gbeutner on 2015-02-24 12:28:26 +00:00 TODOs: a) Rename "troubleshoot collect" to just "troubleshoot" |
Updated by jflach on 2015-02-25 14:57:42 +00:00 Missing features:
Estimated Time for the bottom three: 2-3 days. For the others, unknown. |
Updated by mfriedrich on 2015-02-25 15:05:26 +00:00 Ok, then please implement the following bits until next week, priority top-down
If log compression cannot be done in the end, skip it and create a referencing nice2have issue. |
Updated by mfriedrich on 2015-03-02 08:12:05 +00:00 Please update the status. |
Updated by jflach on 2015-03-02 08:35:42 +00:00 Coloured output: --include-objects and --include-vars: Log compression (Possibly just a message telling to user to do so): |
Updated by mfriedrich on 2015-03-02 08:50:04 +00:00 Review
|
Updated by mfriedrich on 2015-03-02 08:56:10 +00:00
|
Updated by jflach on 2015-03-02 15:54:25 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3446
Created by dgoetz on 2012-11-19 14:21:46 +00:00
Assignee: jflach
Status: Closed (closed on 2015-03-02 15:54:24 +00:00)
Target Version: 2.3.0
Last Update: 2016-03-31 10:43:17 +00:00 (in Redmine)
For support and bug tickets I think it would be helpful to have a tool that collects logfiles, the configuration and some systemdetails (kernel, distribution, mysql-version) in one tar. Advantage will be that bugs are easily reproduce- and analyzable.
Perhaps the tool would need an anonymize flag in later versions that changes hostnames and ipaddress or can exclude macros containing passwords for paranoid users.
Changesets
2015-01-22 11:10:32 +00:00 by jflach 90c4517
2015-01-23 10:28:54 +00:00 by jflach ce69c2b
2015-02-05 14:09:25 +00:00 by jflach 3f79e4f
2015-02-09 08:33:27 +00:00 by jflach 22d351e
2015-02-09 11:48:11 +00:00 by jflach 45ca55b
2015-02-09 14:07:51 +00:00 by jflach abecfc8
2015-02-10 15:41:30 +00:00 by jflach 53ca1dd
2015-02-11 08:35:32 +00:00 by jflach fc2993c
2015-02-12 13:41:00 +00:00 by jflach 86e1316
2015-02-12 13:41:00 +00:00 by jflach 7ce2e9d
2015-02-12 13:41:00 +00:00 by jflach f652ab4
2015-02-13 14:46:23 +00:00 by jflach d1fe23b
2015-02-15 11:38:28 +00:00 by jflach cc5a8da
2015-02-19 16:12:32 +00:00 by jflach 1a9c4ce
2015-02-20 14:27:53 +00:00 by mfriedrich 6455ef6
2015-02-20 15:13:25 +00:00 by jflach 41f7ec9
2015-02-25 14:01:03 +00:00 by jflach a026d47
2015-02-26 11:43:43 +00:00 by jflach cc99406
2015-02-27 13:09:26 +00:00 by jflach 07fd4e6
2015-03-02 13:37:58 +00:00 by (unknown) 1f9a719
2015-03-02 14:28:02 +00:00 by (unknown) 97ff17e
Subtasks:
Relations:
The text was updated successfully, but these errors were encountered: