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