IcingaConfig: add more object types
This commit is contained in:
parent
ed8e472cba
commit
a25bb80004
|
@ -30,9 +30,13 @@ class IcingaConfig
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this
|
$this
|
||||||
->createFileFromDb('zone')
|
->createFileFromDb('zone')
|
||||||
|
->createFileFromDb('endpoint')
|
||||||
->createFileFromDb('command')
|
->createFileFromDb('command')
|
||||||
|
->createFileFromDb('hostGroup')
|
||||||
->createFileFromDb('host')
|
->createFileFromDb('host')
|
||||||
|
->createFileFromDb('serviceGroup')
|
||||||
->createFileFromDb('service')
|
->createFileFromDb('service')
|
||||||
|
->createFileFromDb('userGroup')
|
||||||
->createFileFromDb('user')
|
->createFileFromDb('user')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -53,7 +57,7 @@ class IcingaConfig
|
||||||
$file->prepend("library \"methods\"\n\n");
|
$file->prepend("library \"methods\"\n\n");
|
||||||
}
|
}
|
||||||
$file->addObjects($objects);
|
$file->addObjects($objects);
|
||||||
$this->files[$type . 's.conf'] = $file;
|
$this->files[strtolower($type) . 's.conf'] = $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue