From 403baff558e0d76e0053fc07283fd2f2a3f1e9ed Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Wed, 19 Jun 2019 11:02:48 +0200
Subject: [PATCH] shorten label texts in appmonitor tiles; add ssl check

---
 public_html/appmonitor/index.php | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/public_html/appmonitor/index.php b/public_html/appmonitor/index.php
index 30ed321a..8e6dfed6 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",
+            ),
+        )
+    );
+}
 
 
 // ----------------------------------------------------------------------
-- 
GitLab