Skip to content

Commit

Permalink
Monitoring: hide feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Gelf committed Nov 5, 2019
1 parent dce5a43 commit 5bc3546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions library/Vspheredb/Web/Table/Object/VmEssentialInfoTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ protected function assemble()
$guest = '-';
}

/*
$this->addNameValueRow(
$this->translate('Monitoring'),
$this->getMonitoringInfo($vm)
);
*/

if ($vm->get('guest_id')) {
$this->addNameValuePairs([
Expand Down
3 changes: 2 additions & 1 deletion library/Vspheredb/Web/Widget/HostMonitoringInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ protected function prepareInfo()
$statusRenderer = new IcingaHostStatusRenderer();

try {
$monitoring = MonitoringConnection::eventuallyLoadForVCenter($this->vCenter);
// $monitoring = MonitoringConnection::eventuallyLoadForVCenter($this->vCenter);
$monitoring = null;
if ($monitoring && $monitoring->hasHost($name)) {
$monitoringState = $monitoring->getHostState($name);
return [
Expand Down

0 comments on commit 5bc3546

Please sign in to comment.