Release 2.3.3 - See CHANGELOG.md

This commit is contained in:
sd111 2021-12-15 08:00:32 -08:00
commit abd52157b4
8 changed files with 397 additions and 977 deletions

View file

@ -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"

View file

@ -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

View file

@ -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)