Newer
Older
<?php
namespace App\Sensor;
/**
* Description of Reboot
*
* @author tibo
*/
const MANIFEST = "https://gitlab.cylab.be/cylab/monitoring/raw/master/php-client/release/manifest.json";
$ctx = stream_context_create(array('http' => ['timeout' => 5]));
$json = @ \file_get_contents(self::MANIFEST, false, $ctx);
return "<p>Installed version: " . $this->getServer()->clientVersion() . "</p>"
. "<p>Latest client version: " . $this->latestVersion() . "</p>";
}
if ($this->getServer()->clientVersion() === $this->latestVersion()) {
return self::STATUS_OK;
}
return self::STATUS_WARNING;