IcingaObject(legacy): Render check_command with ARGn from customvars
refs #12919
This commit is contained in:
parent
7ba3c425a5
commit
6b9d23cdd5
|
@ -1975,6 +1975,19 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
);
|
||||
}
|
||||
|
||||
protected function renderLegacyCheck_command($value)
|
||||
{
|
||||
$args = array();
|
||||
foreach($this->vars() as $k => $v) {
|
||||
if (substr($k, 0, 3) == 'ARG') {
|
||||
$args[] = $v->getValue();
|
||||
}
|
||||
}
|
||||
|
||||
array_unshift($args, $this->get('check_command'));
|
||||
return c1::renderKeyValue('check_command', join('!', $args));
|
||||
}
|
||||
|
||||
/**
|
||||
* We do not render zone properties, objects are stored to zone dirs
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue