Icinga2: [dev.icinga.com #10403] Escaping $ not documented

Created on 20 Oct 2015  路  9Comments  路  Source: Icinga/icinga2

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10403

Created by jflach on 2015-10-20 09:28:02 +00:00

Assignee: _mfriedrich_
Status: _Resolved_ (closed on _2015-10-21 20:50:38 +00:00_)
Target Version: _2.4.0_
Last Update: _2015-10-22 13:52:28 +00:00 (in Redmine)_

Icinga Version: 2.3.11
Backport?: No
Include in Changelog: 1

Escaping $ in configuration files is not documented.

$ (Dollar sign) can be escaped by adding an additional $. $$ is then resolved to $, to add two dollar signs you then have to use $$$$

Changesets

_2015-10-21 20:49:21 +00:00_ by _mfriedrich_ b4d592dc16bc4a77052c50f318d04158a167fa81

Documentation: Fix missing dollar sign escaping, add troubleshooting hint

This is a pretty common error for years and deserves
a troubleshooting entry.

fixes #10403
aredocumentation bug

Most helpful comment

Just to document: You can escape $ with $$ ;-)

All 9 comments

Updated by mfriedrich on 2015-10-21 20:33:52 +00:00

That was removed with 46f7397b80fbafa825968f4485896d9644185a9c

Updated by mfriedrich on 2015-10-21 20:36:13 +00:00

Apparently the entire doc chapter "Using Custom Attributes at Runtime" was dropped. Hm.

Updated by mfriedrich on 2015-10-21 20:49:14 +00:00

  • Status changed from _New_ to _Assigned_
  • Assigned to set to _mfriedrich_

http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=34409

Updated by mfriedrich on 2015-10-21 20:50:38 +00:00

  • Status changed from _Assigned_ to _Resolved_
  • Done % changed from _0_ to _100_

Applied in changeset b4d592dc16bc4a77052c50f318d04158a167fa81.

Updated by mfriedrich on 2015-10-22 13:52:28 +00:00

  • Backport? changed from _TBD_ to _No_

Just to document: You can escape $ with $$ ;-)

Why is this bug "closed". I would expect this escape sequence here:
https://icinga.com/docs/icinga2/snapshot/doc/17-language-reference/#string-literals-escape-sequences

Can't find it.

Confirmed, this still is not documented. Only reason I found this fix was by googling "icinga escape dollar" and this issue coming up.

Was this page helpful?
0 / 5 - 0 ratings