/** * Display the configuration snapshot of a host template * with template inheritance * * @method get * @route /hosttemplate/snapshot/[i:id] */ public function snapshotAction() { $params = $this->getParams(); $data = HostRepository::getConfigurationData($params['id']); $checkdata = HostRepository::formatDataForTooltip($data); $this->tpl->assign('checkdata', $checkdata); $this->tpl->display('file:[CentreonConfigurationModule]host_conf_tooltip.tpl'); }
/** * Display the configuration snapshot of a host * with template inheritance * * @method get * @route /host/snapshot/[i:id] */ public function snapshotAction() { $params = $this->getParams(); $data = HostRepository::getConfigurationData($params['id']); $checkdata = HostRepository::formatDataForTooltip($data); $servicesStatus = ServiceRealTimeRepository::countAllStatusForHost($params['id']); $final = ""; $this->tpl->assign('checkdata', $checkdata); $final .= $this->tpl->fetch('file:[CentreonConfigurationModule]host_conf_tooltip.tpl'); $this->router->response()->body($final); }