2015-07-02 15:28:41 +02:00
|
|
|
<?php
|
|
|
|
|
2016-03-23 19:35:09 +01:00
|
|
|
use Icinga\Application\Icinga;
|
|
|
|
|
2016-02-17 16:41:46 +01:00
|
|
|
$prefix = '\\Icinga\\Module\\Director\\';
|
|
|
|
|
2015-11-17 16:53:41 +01:00
|
|
|
$this->provideHook('monitoring/HostActions');
|
2015-11-26 18:55:00 +01:00
|
|
|
$this->provideHook('monitoring/ServiceActions');
|
2016-02-17 10:49:28 +01:00
|
|
|
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceSql');
|
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceLdap');
|
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceCoreApi');
|
|
|
|
|
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeString');
|
2016-03-06 19:12:04 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeArray');
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeNumber');
|
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeTime');
|
2016-05-19 14:59:25 +02:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeBoolean');
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeDatalist');
|
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeSqlQuery');
|
|
|
|
|
2016-02-18 23:24:11 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierLowercase');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierRegexReplace');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierReplace');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierStripDomain');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierSubstring');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierUppercase');
|
2016-03-08 22:30:45 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierMap');
|
2016-03-10 14:19:52 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierSplit');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierJoin');
|
2016-03-08 22:10:50 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierGetHostByName');
|
2016-03-10 11:01:35 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierExtractFromDN');
|
2016-03-14 12:46:44 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierFromAdSid');
|
2016-03-18 17:16:34 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierFromLatin1');
|
2016-05-18 22:01:55 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierBitmask');
|
2016-03-23 19:35:09 +01:00
|
|
|
|
2016-04-21 13:27:39 +02:00
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\HousekeepingJob');
|
2016-04-22 09:53:59 +02:00
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\ConfigJob');
|
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\ImportJob');
|
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\SyncJob');
|
2016-04-21 13:27:39 +02:00
|
|
|
|
2016-03-23 19:35:09 +01:00
|
|
|
if (Icinga::app()->isCli()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$screenshotRoute = new Zend_Controller_Router_Route(
|
|
|
|
'screenshot/director/:subdir/:file',
|
|
|
|
array(
|
|
|
|
'module' => 'director',
|
|
|
|
'controller' => 'screenshot',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->addRoute('screenshot/director', $screenshotRoute);
|