ImportSourceCoreApi: add hostgroup support

refs #11451
This commit is contained in:
Thomas Gelf 2016-03-27 16:58:04 +02:00
parent cf67917542
commit bc6bac9a62
2 changed files with 8 additions and 0 deletions

View File

@ -393,6 +393,13 @@ constants
));
}
public function getHostGroupObjects()
{
return $this->getDirectorObjects('HostGroup', 'HostGroup', 'hostgroups', array(
'display_name' => 'display_name',
));
}
public function getCheckCommandObjects()
{
IcingaCommand::setPluginDir($this->getConstant('PluginDir'));

View File

@ -60,6 +60,7 @@ class ImportSourceCoreApi extends ImportSourceHook
'CheckCommand' => $form->translate('Commands'),
'Endpoint' => $form->translate('Endpoints'),
'Host' => $form->translate('Hosts'),
'HostGroup' => $form->translate('Hostgroups'),
'User' => $form->translate('Users'),
'Zone' => $form->translate('Zones'),
);