diff --git a/public_html/appmonitor/index.php b/public_html/appmonitor/index.php index 30ed321a98e6c7180b46c455de1e078b7ddf0599..8e6dfed661f40c69b40c0373ed9007ecb43ff206 100644 --- a/public_html/appmonitor/index.php +++ b/public_html/appmonitor/index.php @@ -143,6 +143,17 @@ $oMonitor->addCheck( ) ); +if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']){ + $oMonitor->addCheck( + array( + "name" => "Certificate check", + "description" => "Check if SSL cert is valid and does not expire soon", + "check" => array( + "function" => "Cert", + ), + ) + ); +} // ----------------------------------------------------------------------