]> granicus.if.org Git - icinga2/commitdiff
Add documentation for the troubleshoot command
authorJean Flach <jean-marcel.flach@netways.de>
Wed, 25 Feb 2015 14:01:03 +0000 (15:01 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Wed, 25 Feb 2015 14:01:03 +0000 (15:01 +0100)
refs #3446

doc/13-troubleshooting.md
doc/8-cli-commands.md

index 660aeb1c1988028ba7c2dc852a2c268b272b49c3..2bae523b6c5dfefc2d843be0d3092e5df053aae8 100644 (file)
@@ -2,11 +2,9 @@
 
 ## <a id="troubleshooting-information-required"></a> Which information is required
 
-* Which distribution and version
-* How was Icinga 2 installed (and which repository in case)
-* Run `icinga2 --version`
+* Run `icinga2 troubleshoot` to receive a file with the most basic information
+* How was Icinga 2 installed (and which repository in case) and which distribution are you using
 * Provide complete configuration snippets explaining your problem in detail
-* Provide complete logs targetting your problem
 * If the check command failed - what's the output of your manual plugin tests?
 * In case of [debugging](18-debug.md#debug) Icinga 2, the full back traces and outputs
 
index cc7389b52bc2187184e5998f252474ca2d3a765b..51e8b33c9454d706791e429ed473326d9054828b 100644 (file)
@@ -57,6 +57,7 @@ options.
       * repository zone add (adds a new Zone object)
       * repository zone list (lists all Zone objects)
       * repository zone remove (removes a Zone object)
+      * troubleshoot (collect information for troubleshooting)
       * variable get (gets a variable)
       * variable list (lists all variables)
     
@@ -392,6 +393,40 @@ cleared after review.
 
 
 
+## <a id="cli-command-variable"></a> CLI command: Troubleshoot
+
+Collects basic information like version, paths, log files and crash reports for troubleshooting purposes and prints them to a file or the console. See [troubleshooting](13-troubleshooting.md#troubleshooting-information-required).
+
+Its output defaults to a file named `troubleshooting-[TIMESTAMP].log` so it won't overwrite older troubleshooting files.  
+
+> **Note**  
+> Keep in mind that this tool can not collect information from other icinga2 nodes, you will have to run it on
+> each of one of you instances.  
+> This is only a tool to collect information to help others help you, it will not attempt to fix anything.
+
+
+    # icinga2 troubleshoot --help
+    icinga2 - The Icinga 2 network monitoring daemon (version: v2.2.0-551-g1d0f6ed)
+
+    Usage:
+      icinga2 troubleshoot [<arguments>]
+
+    Global options:
+      -h [ --help ]          show this help message
+      -V [ --version ]      show version information
+      --color                use VT100 color codes even when stdout is not aterminal
+      -D [ --define ] arg    define a constant
+      -l [ --library ] arg   load a library
+      -I [ --include ] arg   add include search directory
+      -x [ --log-level ] arg specify the log level for the console log
+
+    Command options:
+      -c [ --console ]      print to console instead of file
+      -o [ --output ] arg   path to output file
+
+    Report bugs at <https://dev.icinga.org/>
+    Icinga home page: <https://www.icinga.org/>
+
 ## <a id="cli-command-variable"></a> CLI command: Variable
 
 Lists all configured variables (constants) in a similar fasion like [object list](8-cli-commands.md#cli-command-object).