* Fix bug.
This commit is contained in:
@@ -399,6 +399,11 @@ class zanode extends control
|
||||
{
|
||||
$node = $this->zanode->getNodeById($hostID);
|
||||
$serviceStatus = $this->zanode->getServiceStatus($node);
|
||||
if ($node->status != 'running')
|
||||
{
|
||||
$serviceStatus['ZenAgent'] = "unknown";
|
||||
$serviceStatus['ZTF'] = "unknown";
|
||||
}
|
||||
|
||||
return $this->send(array('result' => 'success', 'message' => '', 'data' => $serviceStatus));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user