You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously in most cases it won't manifest as a problem, but when the variable is expanded within
a string being piped into the cmdfile it does as 'host.domain.com' != host.domain.com for example.
The text was updated successfully, but these errors were encountered:
That produces a string that is written into the cmdfile with quotes around the expanded data. Neither the host name nor service name exists as a quoted value.
A resolution would be to create a command that took the individual expanded values as arguments so these values would be passed in and parsed correctly.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/7582
Created by jcasale on 2014-11-05 11:35:10 +00:00
Assignee: mfriedrich
Status: Closed (closed on 2015-02-07 21:06:03 +00:00)
Target Version: 2.3.0
Last Update: 2015-02-13 16:24:30 +00:00 (in Redmine)
While setting up an event command I noticed that variables are being expanded with single quotes.
According to http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#event-commands
the debug excerpt suggests this is not expected. The Icinga 1 docs mention expansion is
without quotes explicitly however the Icinga 2 docs don't make the same assertion.
Obviously in most cases it won't manifest as a problem, but when the variable is expanded within
a string being piped into the cmdfile it does as 'host.domain.com' != host.domain.com for example.
The text was updated successfully, but these errors were encountered: