Create a script for diagnostic and collect needed info for support in case of troubleshooting
See original GitHub issueThis is a part of https://github.com/codenvy/codenvy/issues/412 epic
We need create a tool which will simplify collecting any needed info for support customers in case of some problems. That tool should be super easy to execute preferably bash script and on first iteration it should collect needed files or commands output and put it into zip.
Items to collect:
files (note *
means all files in the folder)
/var/log/puppet/
/var/log/nginx/
/var/log/mongodb/*
/var/log/docker-distribution.log
/var/log/fail2ban.log
/var/log/haproxy.log
/var/log/messages
/var/log/swarm.log
/var/log/yum.log
/etc/puppet/auth.conf
/etc/puppet/autosign.conf
/etc/puppet/fileserver.conf
/etc/puppet/puppet.conf
/home/codenvy/codenvy-data/che-machines-logs/*
/home/codenvy/codenvy-data/logs/*
/home/codenvy/codenvy-data/conf/machine.properties
/home/codenvy/codenvy-data/conf/general.properties
/etc/resolv.conf
/etc/hostname
/etc/hosts**
commands output to collect (please keep them in a separate files with predictable names): facter fqdn hostname hostname -f puppet agent -t
Everything inside of that zip should be well structured to make it easy to understand and analyze. example: zip/ …/logs/ …/configs/ …/commands_output/
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
@riuvshin @skryzhny please try this one on a real Codenvy instance. I have tried it on a freshly installed On-Prem on Digital Ocean. Execute as root:
curl https://gist.githubusercontent.com/eivantsov/7744cbf9ce6547f2be5e93aa05b5bce2/raw/54a636d9d92753b2066842bb5c8eecdfcafb956a/report.sh | bash
Added an additional check - now only user can run the script https://gist.githubusercontent.com/eivantsov/7744cbf9ce6547f2be5e93aa05b5bce2/raw/0a7ed422a7a4a9440e66be11dd50e0b9744085b7/report.sh