From 8cb372d0a15eb9af8469ffc0ab7a72a29641d48d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 2 Dec 2014 11:37:32 +0100 Subject: [PATCH] Service,HostNode: preserve process name in links --- library/Businessprocess/HostNode.php | 6 ++++-- library/Businessprocess/ServiceNode.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/library/Businessprocess/HostNode.php b/library/Businessprocess/HostNode.php index 7e65b58..30b72bd 100644 --- a/library/Businessprocess/HostNode.php +++ b/library/Businessprocess/HostNode.php @@ -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() )); } } diff --git a/library/Businessprocess/ServiceNode.php b/library/Businessprocess/ServiceNode.php index 12442a0..15ad415 100644 --- a/library/Businessprocess/ServiceNode.php +++ b/library/Businessprocess/ServiceNode.php @@ -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() )); } }