IcingaConfig: hardcode log_duration = 0...

...for auto-generated endpoints only.
This commit is contained in:
Thomas Gelf 2016-01-19 16:30:42 +01:00
parent 5d3512063f
commit 848e2d2f74
1 changed files with 3 additions and 2 deletions

View File

@ -362,8 +362,9 @@ throw $e;
if (IcingaEndpoint::exists($name, $this->connection)) continue;
$props = array(
'object_name' => $name,
'object_type' => 'object',
'object_name' => $name,
'object_type' => 'object',
'log_duration' => 0
);
if ($host->getResolvedProperty('master_should_connect') === 'y') {
$props['host'] = $host->getResolvedProperty('address');