]> granicus.if.org Git - icinga2/commitdiff
Documentation: Fix missing dollar sign escaping, add troubleshooting hint
authorMichael Friedrich <michael.friedrich@gmail.com>
Wed, 21 Oct 2015 20:49:21 +0000 (22:49 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Wed, 21 Oct 2015 20:49:21 +0000 (22:49 +0200)
This is a pretty common error for years and deserves
a troubleshooting entry.

fixes #10403

doc/17-troubleshooting.md
doc/3-monitoring-basics.md

index 119ae9d051abd86a66dd8b01458d2091c0dd1f39..879be1a5bf75f6ccaef5a9c2649c0bdfb9780378 100644 (file)
@@ -167,6 +167,14 @@ Icinga 2 allows you to import templates using the [import](20-language-reference
 contain additional attributes, your objects will automatically inherit them. You can override
 or modify these attributes in the current object.
 
+## <a id="configuration-value-dollar-sign"></a> Configuration Value with Single Dollar Sign
+
+In case your configuration validation fails with a missing closing dollar sign error message, you
+did not properly escape the single dollar sign preventing its usage as [runtime macro](3-monitoring-basics.md#runtime-macros).
+
+    critical/config: Error: Validation failed for Object 'ping4' (Type: 'Service') at /etc/icinga2/zones.d/global-templates/windows.conf:24: Closing $ not found in macro format string 'top-syntax=${list}'.
+
+
 ## <a id="troubleshooting-cluster"></a> Cluster Troubleshooting
 
 This applies to anything using the cluster protocol:
index e9ee70432779caa9fcf83719c62effeaf0534644..371aff7fcc950f7059699209ccb1212c2106efc1 100644 (file)
@@ -262,6 +262,11 @@ We can also directly refer to custom attributes, e.g. by using `$ping_wrta$`. Ic
 automatically tries to find the closest match for the attribute you specified. The
 exact rules for this are explained in the next section.
 
+> **Note**
+>
+> When using the `$` sign as single character you must escape it with an
+> additional dollar character (`$$`).
+
 
 ### <a id="macro-evaluation-order"></a> Evaluation Order