mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
19 lines
490 B
PHP
19 lines
490 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring;
|
||
|
|
|
||
|
|
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($host->getName() . ';Hoststatus')
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|