mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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
|
* We do not render zone properties, objects are stored to zone dirs
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user