IcingaObject(legacy): Render check_command with ARGn from customvars

refs #12919
This commit is contained in:
Markus Frosch 2016-11-03 13:40:37 +01:00
parent 7ba3c425a5
commit 6b9d23cdd5
1 changed files with 13 additions and 0 deletions

View File

@ -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
*