From abd52157b4af5d9a942f5c65148c8639170aa8fd Mon Sep 17 00:00:00 2001 From: sd111 Date: Wed, 15 Dec 2021 08:00:32 -0800 Subject: [PATCH] Release 2.3.3 - See CHANGELOG.md --- CHANGELOG.md | 11 +- Dockerfile | 2 +- install/etc/cont-init.d/10-coolwsd | 1 + .../collabora-online.conf | 10 +- .../scripts/check-cool.py | 6 +- zabbix_templates/app-collabora_online.json | 377 +++++++++++++ zabbix_templates/collabora-online.xml | 452 --------------- zabbix_templates/zabbix_agent_container.xml | 515 ------------------ 8 files changed, 397 insertions(+), 977 deletions(-) create mode 100644 zabbix_templates/app-collabora_online.json delete mode 100644 zabbix_templates/collabora-online.xml delete mode 100644 zabbix_templates/zabbix_agent_container.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index e22499a..88c287a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ -## 2.3.2 2021-12-03 +## 2.3.3 2021-12-15 + + ## Changed + - Zabbix Monitoring templates + - Collabora Online 21.11.0-5 + + +## 2.3.2 2021-12-03 ### Added - Allow abilities to use macros @@ -7,7 +14,7 @@ - Allow setting Admin JWT token lifetime -## 2.3.0 2021-12-02 +## 2.3.0 2021-12-02 ### Added - Debian Bulleye Base diff --git a/Dockerfile b/Dockerfile index e6f083b..b50e6a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ARG APP_NAME ### Environment Variables ENV COLLABORA_ONLINE_BRANCH=${COLLABORA_ONLINE_BRANCH:-"master"} \ - COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-21.11.0-3 "} \ + COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-21.11.0-5 "} \ COLLABORA_ONLINE_REPO_URL=${COLLABORA_ONLINE_REPO_URL:-"https://github.com/CollaboraOnline/online"} \ # LIBREOFFICE_BRANCH=${LIBREOFFICE_BRANCH:-"master"} \ diff --git a/install/etc/cont-init.d/10-coolwsd b/install/etc/cont-init.d/10-coolwsd index 1a6f146..38fdd7f 100755 --- a/install/etc/cont-init.d/10-coolwsd +++ b/install/etc/cont-init.d/10-coolwsd @@ -2,6 +2,7 @@ source /assets/functions/00-container prepare_service single +prepare_service 03-monitoring PROCESS_NAME="collabora-online" sanity_var "ALLOWED_HOSTS" "Allowed Hostnames" diff --git a/install/etc/zabbix/zabbix_agentd.conf.d/collabora-online.conf b/install/etc/zabbix/zabbix_agentd.conf.d/collabora-online.conf index 1d6a49a..918d24d 100644 --- a/install/etc/zabbix/zabbix_agentd.conf.d/collabora-online.conf +++ b/install/etc/zabbix/zabbix_agentd.conf.d/collabora-online.conf @@ -1,5 +1,5 @@ -UserParameter=cool.mem_consumed,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py | grep 'cool.mem.consumed' | awk '{print $2}' -UserParameter=cool.active_users,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py | grep 'cool.active_users_count' | awk '{print $2}' -UserParameter=cool.active_docs,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py | grep 'cool.active_docs' | awk '{print $2}' -UserParameter=cool.bytes_sent,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py | grep 'cool.sent_bytes' | awk '{print $2}' -UserParameter=cool.bytes_received,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py | grep 'cool.recv_bytes' | awk '{print $2}' +# Zabbix Collbora Online Configuration - Automatically Generated +# Find Companion Zabbix Server Templates at https://github.com/tiredofit/docker-collabora-online +# Autoregister=collabora-online + +UserParameter=cool.get_statistics,/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py diff --git a/install/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py b/install/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py index bb94202..667b5fa 100755 --- a/install/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py +++ b/install/etc/zabbix/zabbix_agentd.conf.d/scripts/check-cool.py @@ -2,6 +2,7 @@ import requests from websocket import create_connection,WebSocket +import datetime import sys import os @@ -34,6 +35,7 @@ if __name__ == '__main__': token_value = get_token_value(url,username,password) socket_url = "ws://localhost:9980/cool/adminws" data = get_doc_info(socket_url,token_value) + now = datetime.datetime.now() + print (now.strftime('%Y-%m-%d %H:%M:%S')+" Collabora Online Monitoring") for key,value in data.items() : - print("cool."+key , value) - + print("cool."+key, value) diff --git a/zabbix_templates/app-collabora_online.json b/zabbix_templates/app-collabora_online.json new file mode 100644 index 0000000..4d6c4be --- /dev/null +++ b/zabbix_templates/app-collabora_online.json @@ -0,0 +1,377 @@ +{ + "zabbix_export": { + "version": "5.4", + "date": "2021-12-15T15:57:43Z", + "groups": [ + { + "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", + "name": "Templates/Applications" + } + ], + "templates": [ + { + "uuid": "00f612e4dc8e44c686e89d2b540de330", + "template": "Collabora Online", + "name": "Collabora Online", + "groups": [ + { + "name": "Templates/Applications" + } + ], + "items": [ + { + "uuid": "3a4d06d031844b1fa3f217f7ab4a1e75", + "name": "Collabora Online: Get Statistics", + "type": "ZABBIX_ACTIVE", + "key": "cool.get_statistics", + "history": "60m", + "trends": "0", + "value_type": "TEXT" + }, + { + "uuid": "07fdc378b8804f68952204f9223c705b", + "name": "Collabora Online: Active Documents", + "type": "DEPENDENT", + "key": "cool.stats.active_docs", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "cool.active_docs_count ([0-9]+)", + "\\1" + ] + } + ], + "master_item": { + "key": "cool.get_statistics" + }, + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ] + }, + { + "uuid": "65854e1f94cd453f84e7efe7ccca9bfa", + "name": "Collabora Online: Active Users", + "type": "DEPENDENT", + "key": "cool.stats.active_users", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "cool.active_users_count ([0-9]+)", + "\\1" + ] + } + ], + "master_item": { + "key": "cool.get_statistics" + }, + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ] + }, + { + "uuid": "0d370f09daf0472c83a3af43cc810bc5", + "name": "Collabora Online: Bytes received", + "type": "DEPENDENT", + "key": "cool.stats.bytes_received", + "delay": "0", + "history": "7d", + "units": "B", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "cool.recv_bytes ([0-9]+)", + "\\1" + ] + } + ], + "master_item": { + "key": "cool.get_statistics" + }, + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ] + }, + { + "uuid": "43d3e041925042a3b74150a7ef9489c4", + "name": "Collabora Online: Bytes sent", + "type": "DEPENDENT", + "key": "cool.stats.bytes_sent", + "delay": "0", + "history": "7d", + "units": "B", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "cool.sent_bytes ([0-9]+)", + "\\1" + ] + } + ], + "master_item": { + "key": "cool.get_statistics" + }, + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ] + }, + { + "uuid": "447722d607644a9d993a1d084558ec4c", + "name": "Collabora Online: Memory consumed", + "type": "DEPENDENT", + "key": "cool.stats.mem_consumed", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "cool.mem_consumed ([0-9]+)", + "\\1" + ] + } + ], + "master_item": { + "key": "cool.get_statistics" + }, + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ] + }, + { + "uuid": "35706f863505475f8115a7ab08e3765a", + "name": "Collabora Online: Service is running", + "key": "proc.num[coolwsd]", + "history": "7d", + "request_method": "POST", + "tags": [ + { + "tag": "Application", + "value": "LibreOffice Online" + } + ], + "triggers": [ + { + "uuid": "f973afdb7f444e24b94dd6a1bc51bff8", + "expression": "sum(/Collabora Online/proc.num[coolwsd],#3)=0", + "name": "Collabora Online Service is down", + "priority": "HIGH" + } + ] + } + ], + "dashboards": [ + { + "uuid": "bdca680af1f5409d856b7ad7f48f63ef", + "name": "Collabora Online", + "pages": [ + { + "widgets": [ + { + "type": "GRAPH_CLASSIC", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "name": "Active Users", + "host": "Collabora Online" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "name": "Active Documents", + "host": "Collabora Online" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "name": "All Statistics", + "host": "Collabora Online" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "name": "Memory Consumed", + "host": "Collabora Online" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "name": "Network Traffic", + "host": "Collabora Online" + } + } + ] + } + ] + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "cf1222f4fc464cfda66ffe1f4856fbe9", + "name": "Active Documents", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Collabora Online", + "key": "cool.stats.active_docs" + } + } + ] + }, + { + "uuid": "6b46328682d64157906e51a8bdb92204", + "name": "Active Users", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Collabora Online", + "key": "cool.stats.active_users" + } + } + ] + }, + { + "uuid": "84f045fb9fc447a49813543545284458", + "name": "All Statistics", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Collabora Online", + "key": "cool.stats.active_docs" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Collabora Online", + "key": "cool.stats.active_users" + } + }, + { + "sortorder": "2", + "color": "2774A4", + "item": { + "host": "Collabora Online", + "key": "cool.stats.mem_consumed" + } + } + ] + }, + { + "uuid": "9bd057eaa6c24fdc8ec9ebe432128fea", + "name": "Memory Consumed", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Collabora Online", + "key": "cool.stats.mem_consumed" + } + } + ] + }, + { + "uuid": "2d2d7f65e3234af7843ae8f2b4271017", + "name": "Network Traffic", + "graph_items": [ + { + "sortorder": "1", + "color": "1A7C11", + "item": { + "host": "Collabora Online", + "key": "cool.stats.bytes_received" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Collabora Online", + "key": "cool.stats.bytes_sent" + } + } + ] + } + ] + } +} diff --git a/zabbix_templates/collabora-online.xml b/zabbix_templates/collabora-online.xml deleted file mode 100644 index 9bdfb93..0000000 --- a/zabbix_templates/collabora-online.xml +++ /dev/null @@ -1,452 +0,0 @@ - - - 3.4 - 2018-09-17T12:09:21Z - - - Templates - - - - - - - - {APP - Libreoffice Online:proc.num[coolwsd].sum(#3)}=0 - 0 - - Libreoffice Online Service is down - 0 - - - 0 - 4 - - 0 - 0 - - - - - - - Active Documents - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - 1A7C11 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.active_docs - - - - - - Active Users - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - 1A7C11 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.active_users - - - - - - All Statistics - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - 1A7C11 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.active_docs - - - - 1 - 0 - F63100 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.active_users - - - - 2 - 0 - 2774A4 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.mem_consumed - - - - - - Memory Consumed - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - 1A7C11 - 0 - 2 - 0 - - APP - Libreoffice Online - cool.mem_consumed - - - - - - diff --git a/zabbix_templates/zabbix_agent_container.xml b/zabbix_templates/zabbix_agent_container.xml deleted file mode 100644 index 9532a0e..0000000 --- a/zabbix_templates/zabbix_agent_container.xml +++ /dev/null @@ -1,515 +0,0 @@ - - - 3.4 - 2018-02-02T19:04:27Z - - - Discovered Containers - - - Templates - - - - - - - - - {Service - ICMP:icmpping.max(3m)}=3 - 0 - - Cannot be pinged - 0 - - - 0 - 5 - - 0 - 0 - - - - - {Service - ICMP:icmppingloss.min(10m)}>50 - 0 - - Ping loss is too high - 0 - - - 0 - 4 - - 0 - 0 - - - Cannot be pinged - {Service - ICMP:icmpping.max(3m)}=3 - - - - - - - {Service - ICMP:icmppingsec.avg(2m)}>100 - 0 - - Ping Response time is too high - 0 - - - 0 - 4 - - 1 - 0 - - - Cannot be pinged - {Service - ICMP:icmpping.max(3m)}=3 - - - - - - - {Zabbix - Container Agent:packages.upgradable.last()}>0 - 0 - - Upgraded Packages in Container Available - 0 - - - 0 - 1 - - 0 - 0 - - - - - {Zabbix - Container Agent:agent.ping.nodata(3m)}=1 - 0 - - Zabbix agent is unreachable - 0 - - - 0 - 5 - - 0 - 0 - - - - - - - Service state - - - 0 - Down - - - 1 - Up - - - - - Zabbix agent ping status - - - 1 - Up - - - - -