-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathrun.php
More file actions
25 lines (20 loc) · 855 Bytes
/
run.php
File metadata and controls
25 lines (20 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
use Icinga\Application\Modules\Module;
use Icinga\Module\Vspheredb\Application\DependencyChecker;
use Icinga\Module\Vspheredb\ProvidedHook\Director\DataTypeMonitoringRule;
use Icinga\Module\Vspheredb\ProvidedHook\Vspheredb\PerfDataConsumerInfluxDb;
/** @var $this \Icinga\Application\Modules\Module */
$checker = new DependencyChecker($this->app);
if (! $checker->satisfiesDependencies($this)) {
include __DIR__ . '/run-missingdeps.php';
return;
}
$this->provideHook('director/ImportSource');
$this->provideHook('director/DataType', DataTypeMonitoringRule::class);
$this->provideHook('vspheredb/PerfDataConsumer', PerfDataConsumerInfluxDb::class);
if (Module::exists('icingadb')) {
$this->provideHook('icingadb/HostDetailExtension');
}
if (Module::exists('monitoring')) {
$this->provideHook('monitoring/DetailviewExtension');
}