icingaweb2-module-graphite/run.php

30 lines
987 B
PHP
Raw Normal View History

<?php
/** @var \Icinga\Application\Modules\Module $this */
2017-10-04 10:16:43 -04:00
use Icinga\Module\Graphite\ProvidedHook\Icingadb\IcingadbSupport;
$this->provideHook('monitoring/DetailviewExtension');
2021-11-15 11:08:29 -05:00
$this->provideHook('icingadb/IcingadbSupport');
$this->provideHook('icingadb/HostDetailExtension');
$this->provideHook('icingadb/ServiceDetailExtension');
if (! $this->exists('icingadb') || ! IcingadbSupport::useIcingaDbAsBackend()) {
$this->addRoute('graphite/monitoring-graph/host', new Zend_Controller_Router_Route(
'graphite/graph/host',
[
'controller' => 'monitoring-graph',
'action' => 'host',
'module' => 'graphite'
]
));
$this->addRoute('graphite/monitoring-graph/service', new Zend_Controller_Router_Route(
'graphite/graph/service',
[
'controller' => 'monitoring-graph',
'action' => 'service',
'module' => 'graphite'
]
));
}