mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-25 21:42:54 -05:00
Service,HostNode: preserve process name in links
This commit is contained in:
parent
6e1d546225
commit
8cb372d0a1
2 changed files with 8 additions and 4 deletions
|
|
@ -18,11 +18,13 @@ class HostNode extends Node
|
|||
{
|
||||
if ($this->bp->isSimulationMode()) {
|
||||
return $view->qlink($this->getHostname(), 'businessprocess/host/simulate', array(
|
||||
'node' => $this->name
|
||||
'node' => $this->name,
|
||||
'processName' => $this->bp->getName()
|
||||
));
|
||||
} else {
|
||||
return $view->qlink($this->getHostname(), 'monitoring/host/show', array(
|
||||
'host' => $this->getHostname
|
||||
'host' => $this->getHostname,
|
||||
'processName' => $this->bp->getName()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,12 +20,14 @@ class ServiceNode extends Node
|
|||
{
|
||||
if ($this->bp->isSimulationMode()) {
|
||||
return $view->qlink($this->getAlias(), 'businessprocess/node/simulate', array(
|
||||
'node' => $this->name
|
||||
'node' => $this->name,
|
||||
'processName' => $this->bp->getName()
|
||||
));
|
||||
} else {
|
||||
return $view->qlink($this->getAlias(), 'monitoring/show/service', array(
|
||||
'host' => $this->getHostname(),
|
||||
'service' => $this->getServiceDescription()
|
||||
'service' => $this->getServiceDescription(),
|
||||
'processName' => $this->bp->getName()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue