for the cert expiry I made a new plugin Its rather basic you add the code below add a new plugin /usr/bin/php /usr/share/pandora_server/util/plugin/check_ssl_cert.php There is a picture of the setup when you use add a plug in module then set the domain to check nothing else is needed but you can set a date that date is used for the warning by default its 14 days before Critical is already expired port is an option if you want to check a port on say an imap server check_ssl_cert.php ================================== -e -p -h n";                 echo "if no expiry days are given 14 days will be used n";                 echo "by default port 443 will be used n";                 echo " it will return 0 for OK, 1 for some error like timeout, 2 for warning days exceeded, 3 for expired n";                 exit;         }         $d = trim($options["d"]);         $p = trim($options["p"]);         if(empty($p)) {                 $port = 443;         } else {                 $port = $p;         }         $get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE)));         $read = stream_socket_client("ssl://".$d.":$port", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get);         $cert = stream_context_get_params($read);         $certinfo = openssl_x509_parse($cert['options']['ssl']['peer_certificate']);         if(empty($options["e"])) {                 $warningtime = strtotime("+14 days");         } else {                 $expiry_days = trim($options["e"]);                 $warningtime = strtotime("+". $expiry_days. " days");         }         if(empty($certinfo["validTo"])){                 echo 1;         } elseif ($certinfo['validTo_time_t'] <= $warningtime) {                 //we will expire in 14 days                 echo 2;         } elseif ($certinfo['validTo_time_t'] <= time()) {                 //we have expired                 echo 3;         } else {                 echo 0;         } ?>

[

](//pandorafms.com/community/media/forum/0/19985=1006-sslexpiry.PNG)