protected function _buildMonitorSummaryLines(Cacti $sender) { $this->logger->log(__METHOD__, NULL, WATCHDOG_DEBUG); if ($this->_loadId()) { $stats = $this->getStatsList(); foreach ($stats as $key => $stat) { // That's a final end user input, apply formatter $line = $key . '=' . floor($stat->getValue() / 1000); $sender->AddOutputLine($line); } } else { $this->logger->log($this->task_module . "; no metrics available yet", NULL, WATCHDOG_DEBUG); } }