Hello,
I finished testing of the foreman-debug script. Here is the candidate:
https://gist.github.com/lzap/5460551
This is how it looks like:
root@squeeze-foreman:~# ./foreman-debug -h
./foreman-debug - configuration and log data collector
USAGE: ./foreman-debug [options]
Collects configuration and log data for Foreman, Smart Proxies, backend
services and system information while removing security information like
passwords, tokens and keys.
This program can be used on Foreman instance, Smart Proxy instances or
backend services separatly.
OPTIONS:
-d DIR Directory to place the tarball in (default /tmp/foreman-XYZ)
-g Skip generic info (CPU, memory, firewall etc.)
-a Do not generate a tarball from the resulting directory
-m Maximum lines to keep for each file (default 5000)
-j PRG Filter with provided program when creating a tarball
-q Quiet mode
-v Verbose mode
-h Shows this message
And this is how it works:
root@squeeze-foreman:~# ./foreman-debug
HOSTNAME: squeeze-foreman.virtual.lan
OS: debian
RELEASE: 6.0.7
FOREMAN: 1.1-1
RUBY: ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
PUPPET: 3.1.1
A debug file has been created: /tmp/foreman-debug-5jEuX.tar.xz (23708 bytes)
Attaching example tarball, please review and discuss. Missing something?
Found some sensitive data in it? Not working properly on your distro?
Feel free to send me a patch or comment.
foreman-debug-5jEuX.tar.xz (11.7 KB)
···
-- Later,Lukas “lzap” Zapletal
irc: lzap #theforeman