$type.' data', 'data' => $values, 'clock' => time(), 'ns' => 0 ]); if ($response !== false && $this->error === null) { $result = []; foreach (explode('; ', $response) as $line) { $parts = explode(': ', $line); if (count($parts) !== 2) { continue; } $result[$parts[0]] = floatval($parts[1]); } return $result; } return false; } /** * Get active checks for a host. * * @param string $host host name * * @return array|false array with active checks or false otherwise */ public function getActiveChecks($host) { return parent::request([ 'request' => 'active checks', 'host' => $host ]); } }