summaryrefslogtreecommitdiffstats
path: root/library/Businessprocess/ProvidedHook/Monitoring/HostActions.php
blob: e2b9c594dbbe10995ea116e9567bfa073f95053b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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'))
        );
    }
}