mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-28 01:59:34 -05:00
19 lines
556 B
PHP
19 lines
556 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring;
|
|
|
|
use Icinga\Module\Businessprocess\BpConfig;
|
|
use Icinga\Module\Monitoring\Hook\HostActionsHook;
|
|
use Icinga\Module\Monitoring\Object\Host;
|
|
|
|
class HostActions extends HostActionsHook
|
|
{
|
|
public function getActionsForHost(Host $host)
|
|
{
|
|
$label = mt('businessprocess', 'Business Impact');
|
|
return array(
|
|
$label => 'businessprocess/node/impact?name='
|
|
. rawurlencode(BpConfig::joinNodeName($host->getName(), 'Hoststatus'))
|
|
);
|
|
}
|
|
}
|