2015-06-03 04:30:57 -04:00
|
|
|
<?php
|
|
|
|
|
|
2017-09-01 12:05:36 -04:00
|
|
|
/** @var \Icinga\Application\Modules\Module $this */
|
2017-10-04 10:16:43 -04:00
|
|
|
|
2022-08-04 09:32:19 -04:00
|
|
|
use Icinga\Module\Graphite\ProvidedHook\Icingadb\IcingadbSupport;
|
|
|
|
|
|
2017-09-01 12:05:36 -04:00
|
|
|
$this->provideHook('monitoring/DetailviewExtension');
|
2021-11-15 11:08:29 -05:00
|
|
|
$this->provideHook('icingadb/IcingadbSupport');
|
2022-02-17 05:03:01 -05:00
|
|
|
$this->provideHook('icingadb/HostDetailExtension');
|
|
|
|
|
$this->provideHook('icingadb/ServiceDetailExtension');
|
2022-08-04 09:32:19 -04:00
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
]
|
|
|
|
|
));
|
|
|
|
|
}
|