mirror of
https://github.com/tiredofit/docker-collabora-online.git
synced 2024-06-02 22:02:23 +02:00
1.1 Release
This commit is contained in:
parent
3931bb7609
commit
b20c2e7a7b
|
@ -1,3 +1,11 @@
|
||||||
|
## 1.1 2019-02-28 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
|
* Switch back to Debian Stretch
|
||||||
|
* Collabora Office 5.3.61
|
||||||
|
* Libre office online 3.4.2.1
|
||||||
|
* Add Zabbix Checks
|
||||||
|
* Add Custom Assets overwrite support
|
||||||
|
|
||||||
## 1.0 2018-09-15 <dave at tiredofit dot ca>
|
## 1.0 2018-09-15 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
* Switch to Ubuntu 16.04
|
* Switch to Ubuntu 16.04
|
||||||
|
|
118
Dockerfile
118
Dockerfile
|
@ -1,44 +1,38 @@
|
||||||
FROM tiredofit/ubuntu:16.04 as builder
|
FROM registry.selfdesign.org/docker/debian/stretch as builder
|
||||||
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
||||||
|
|
||||||
### Set Environment Variables
|
### Set Environment Variables
|
||||||
ENV LIBREOFFICE_BRANCH=master \
|
ENV LIBREOFFICE_BRANCH=master \
|
||||||
## 6.0.6.2
|
## cp-5.3.61
|
||||||
LIBREOFFICE_COMMIT=0857a8f6d8dd1b5b9114e9e0c1e1b6b98394434f \
|
LIBREOFFICE_COMMIT=cd2475c52a096b001a7e3179f02e11cbc8a5615f \
|
||||||
LOOL_BRANCH=master \
|
LOOL_BRANCH=master \
|
||||||
## 3.2.0.4
|
## 3.4.2.1
|
||||||
LOOL_COMMIT=9927458251fd069e11efc8e83c78449497cc2048 \
|
LOOL_COMMIT=d02d1983e164b322dc3f46753433bcb23c871ce6 \
|
||||||
MAX_CONNECTIONS=5000 \
|
MAX_CONNECTIONS=5000 \
|
||||||
## Uses Approximately 20mb per document open
|
## Uses Approximately 20mb per document open
|
||||||
MAX_DOCUMENTS=5000
|
MAX_DOCUMENTS=5000 \
|
||||||
|
POCO_VERSION=1.9.0
|
||||||
|
|
||||||
### Get Updates
|
### Get Updates
|
||||||
RUN apt-get update && \
|
RUN set -x && \
|
||||||
apt-get -y install apt-transport-https && \
|
### Add Repositories
|
||||||
echo "deb https://collaboraoffice.com/repos/Poco/ /" >> /etc/apt/sources.list.d/poco.list && \
|
echo "deb http://ftp.us.debian.org/debian/ jessie-backports main" >>/etc/apt/sources.list && \
|
||||||
echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted" >> /etc/apt/sources.list && \
|
echo "deb-src http://ftp.us.debian.org/debian/ jessie-backports main" >>/etc/apt/sources.list && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D && \
|
echo "deb http://deb.debian.org/debian stretch contrib" >> /etc/apt/sources.list && \
|
||||||
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
||||||
\
|
\
|
||||||
## Install Poco Libs
|
### Downgrade LibSSL
|
||||||
apt-get -y install \
|
echo "Package: openssl libssl1.0.0 libssl-dev libssl-doc" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
libpoco-dev \
|
echo "Pin: release a=jessie-backports" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
libpocodata60 \
|
echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
libpocofoundation60 \
|
apt-get install openssl libssl-dev locales -y --allow-downgrades && \
|
||||||
libpocojson60 \
|
\
|
||||||
libpocodataodbc60 \
|
### Setup Distribution
|
||||||
libpococrypto60 \
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
||||||
libpoconet60 \
|
|
||||||
libpoconetssl60 \
|
|
||||||
libpocoutil60 \
|
|
||||||
libpocoxml60 \
|
|
||||||
libpocozip60 \
|
|
||||||
&& \
|
|
||||||
\
|
\
|
||||||
mkdir -p /home/lool && \
|
mkdir -p /home/lool && \
|
||||||
useradd lool -G sudo && \
|
useradd lool -G sudo && \
|
||||||
chown lool:lool /home/lool -R && \
|
chown lool:lool /home/lool -R && \
|
||||||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
|
||||||
\
|
\
|
||||||
## Add Build Dependencies
|
## Add Build Dependencies
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
@ -48,6 +42,7 @@ RUN apt-get update && \
|
||||||
libghc-zlib-dev \
|
libghc-zlib-dev \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
libtool \
|
libtool \
|
||||||
|
nasm \
|
||||||
nodejs \
|
nodejs \
|
||||||
python-polib \
|
python-polib \
|
||||||
sudo \
|
sudo \
|
||||||
|
@ -60,6 +55,17 @@ RUN apt-get update && \
|
||||||
libreoffice \
|
libreoffice \
|
||||||
&& \
|
&& \
|
||||||
\
|
\
|
||||||
|
### Build and Install Poco Libraries
|
||||||
|
mkdir -p /usr/src/poco && \
|
||||||
|
curl -sSL https://pocoproject.org/releases/poco-${POCO_VERSION}/poco-${POCO_VERSION}-all.tar.gz | tar xvfz - --strip 1 -C /usr/src/poco && \
|
||||||
|
cd /usr/src/poco && \
|
||||||
|
./configure \
|
||||||
|
--no-samples \
|
||||||
|
--no-tests \
|
||||||
|
--prefix=/opt/poco \
|
||||||
|
&& \
|
||||||
|
make install && \
|
||||||
|
\
|
||||||
### Build Fetch LibreOffice - This will take a while..
|
### Build Fetch LibreOffice - This will take a while..
|
||||||
git clone -b ${LIBREOFFICE_BRANCH} https://github.com/LibreOffice/core.git /usr/src/libreoffice-core && \
|
git clone -b ${LIBREOFFICE_BRANCH} https://github.com/LibreOffice/core.git /usr/src/libreoffice-core && \
|
||||||
cd /usr/src/libreoffice-core && \
|
cd /usr/src/libreoffice-core && \
|
||||||
|
@ -105,6 +111,7 @@ RUN apt-get update && \
|
||||||
--with-system-dicts \n\
|
--with-system-dicts \n\
|
||||||
--with-system-zlib \n\
|
--with-system-zlib \n\
|
||||||
--with-theme=galaxy \n\
|
--with-theme=galaxy \n\
|
||||||
|
#--with-system-xmlsec \n\
|
||||||
--without-branding \n\
|
--without-branding \n\
|
||||||
--without-help \n\
|
--without-help \n\
|
||||||
--without-java \n\
|
--without-java \n\
|
||||||
|
@ -121,7 +128,8 @@ RUN apt-get update && \
|
||||||
--prefix=/opt/libreoffice \n\
|
--prefix=/opt/libreoffice \n\
|
||||||
" > /usr/src/libreoffice-core/distro-configs/LibreOfficeOnline.conf && \
|
" > /usr/src/libreoffice-core/distro-configs/LibreOfficeOnline.conf && \
|
||||||
./autogen.sh --with-distro="LibreOfficeOnline" && \
|
./autogen.sh --with-distro="LibreOfficeOnline" && \
|
||||||
rm -rf /usr/src/libreoffice-core/translations /usr/src/lobreoffice-core/dictionaries && \
|
cd /usr/src/libreoffice-core && \
|
||||||
|
sed -i "s/export XMLSEC_TARBALL := xmlsec1-1.2.26.tar.gz/export XMLSEC_TARBALL := xmlsec1-1.2.25.tar.gz/g" download.lst && \
|
||||||
chown -R lool /usr/src/libreoffice-core && \
|
chown -R lool /usr/src/libreoffice-core && \
|
||||||
sudo -u lool make && \
|
sudo -u lool make && \
|
||||||
cd /usr/src/libreoffice-core && \
|
cd /usr/src/libreoffice-core && \
|
||||||
|
@ -129,7 +137,6 @@ RUN apt-get update && \
|
||||||
chown -R lool /opt/libreoffice && \
|
chown -R lool /opt/libreoffice && \
|
||||||
sudo -u lool make install && \
|
sudo -u lool make install && \
|
||||||
cp -R /usr/src/libreoffice-core/instdir/* /opt/libreoffice/ && \
|
cp -R /usr/src/libreoffice-core/instdir/* /opt/libreoffice/ && \
|
||||||
cd /usr/src && \
|
|
||||||
\
|
\
|
||||||
### Build LibreOffice Online (Not as long as above)
|
### Build LibreOffice Online (Not as long as above)
|
||||||
git clone -b ${LOOL_BRANCH} https://github.com/LibreOffice/online.git /usr/src/libreoffice-online && \
|
git clone -b ${LOOL_BRANCH} https://github.com/LibreOffice/online.git /usr/src/libreoffice-online && \
|
||||||
|
@ -148,13 +155,14 @@ RUN apt-get update && \
|
||||||
uglify-js \
|
uglify-js \
|
||||||
&& \
|
&& \
|
||||||
\
|
\
|
||||||
cd /usr/src/libreoffice-online && \
|
|
||||||
./autogen.sh && \
|
./autogen.sh && \
|
||||||
./configure --enable-silent-rules \
|
./configure --enable-silent-rules \
|
||||||
--with-lokit-path=/usr/src/libreoffice-online/bundled/include \
|
--with-lokit-path=/usr/src/libreoffice-online/bundled/include \
|
||||||
--with-lo-path=/opt/libreoffice \
|
--with-lo-path=/opt/libreoffice \
|
||||||
--with-max-connections=${MAX_CONNECTIONS} \
|
--with-max-connections=${MAX_CONNECTIONS} \
|
||||||
--with-max-documents=${MAX_DOCUMENTS} \
|
--with-max-documents=${MAX_DOCUMENTS} \
|
||||||
|
--with-poco-includes=/opt/poco/include \
|
||||||
|
--with-poco-libs=/opt/poco/lib \
|
||||||
--with-logfile=/var/log/lool/lool.log \
|
--with-logfile=/var/log/lool/lool.log \
|
||||||
--prefix=/opt/lool \
|
--prefix=/opt/lool \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
|
@ -168,8 +176,7 @@ RUN apt-get update && \
|
||||||
cp -R loolwsd.xml /opt/lool/ && \
|
cp -R loolwsd.xml /opt/lool/ && \
|
||||||
cp -R loolkitconfig.xcu /opt/lool && \
|
cp -R loolkitconfig.xcu /opt/lool && \
|
||||||
make install && \
|
make install && \
|
||||||
cd /usr/src && \
|
cd / && \
|
||||||
\
|
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
### Cleanup
|
### Cleanup
|
||||||
|
@ -180,7 +187,7 @@ RUN apt-get update && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /var/log/*
|
rm -rf /var/log/*
|
||||||
|
|
||||||
FROM tiredofit/ubuntu:16.04
|
FROM registry.selfdesign.org/docker/debian/stretch
|
||||||
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
||||||
|
|
||||||
### Set Defaults
|
### Set Defaults
|
||||||
|
@ -195,11 +202,23 @@ ENV ADMIN_USER=admin \
|
||||||
COPY --from=builder /opt/ /opt/
|
COPY --from=builder /opt/ /opt/
|
||||||
|
|
||||||
### Install Dependencies
|
### Install Dependencies
|
||||||
RUN adduser --quiet --system --group --home /opt/lool lool && \
|
RUN set -x && \
|
||||||
|
adduser --quiet --system --group --home /opt/lool lool && \
|
||||||
|
\
|
||||||
|
### Add Repositories
|
||||||
|
echo "deb http://ftp.us.debian.org/debian/ jessie-backports main" >>/etc/apt/sources.list && \
|
||||||
|
echo "deb-src http://ftp.us.debian.org/debian/ jessie-backports main" >>/etc/apt/sources.list && \
|
||||||
|
echo "deb http://deb.debian.org/debian stretch contrib" >> /etc/apt/sources.list && \
|
||||||
|
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
||||||
|
\
|
||||||
|
### Downgrade LibSSL
|
||||||
|
echo "Package: openssl libssl1.0.0 libssl-dev libssl-doc" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
|
echo "Pin: release a=jessie-backports" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
|
echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/00_ssl && \
|
||||||
|
apt-get install openssl libssl-dev locales -y --allow-downgrades && \
|
||||||
\
|
\
|
||||||
apt-get update && \
|
|
||||||
apt-get upgrade -y && \
|
|
||||||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
apt-get install -y\
|
apt-get install -y\
|
||||||
adduser \
|
adduser \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
|
@ -207,12 +226,17 @@ RUN adduser --quiet --system --group --home /opt/lool lool && \
|
||||||
findutils \
|
findutils \
|
||||||
fonts-droid-fallback \
|
fonts-droid-fallback \
|
||||||
fonts-noto-cjk \
|
fonts-noto-cjk \
|
||||||
|
hunspell \
|
||||||
|
hunspell-en-us \
|
||||||
|
hunspell-en-gb \
|
||||||
|
libcap2-bin \
|
||||||
libcups2 \
|
libcups2 \
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
libgl1-mesa-glx \
|
libgl1-mesa-glx \
|
||||||
libpam0g \
|
libpam0g \
|
||||||
libpng12-0 \
|
libpng16-16 \
|
||||||
|
libsm6 \
|
||||||
libxcb-render0 \
|
libxcb-render0 \
|
||||||
libxcb-shm0 \
|
libxcb-shm0 \
|
||||||
libxinerama1 \
|
libxinerama1 \
|
||||||
|
@ -224,22 +248,6 @@ RUN adduser --quiet --system --group --home /opt/lool lool && \
|
||||||
ttf-mscorefonts-installer \
|
ttf-mscorefonts-installer \
|
||||||
&& \
|
&& \
|
||||||
\
|
\
|
||||||
echo "deb https://collaboraoffice.com/repos/Poco/ /" >> /etc/apt/sources.list.d/poco.list && \
|
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get -y install \
|
|
||||||
libpocodata60 \
|
|
||||||
libpocofoundation60 \
|
|
||||||
libpocojson60 \
|
|
||||||
libpocodataodbc60 \
|
|
||||||
libpococrypto60 \
|
|
||||||
libpoconet60 \
|
|
||||||
libpoconetssl60 \
|
|
||||||
libpocoutil60 \
|
|
||||||
libpocoxml60 \
|
|
||||||
libpocozip60 \
|
|
||||||
&& \
|
|
||||||
\
|
|
||||||
### Setup Directories and Permissions
|
### Setup Directories and Permissions
|
||||||
mkdir -p /etc/loolwsd && \
|
mkdir -p /etc/loolwsd && \
|
||||||
mv /opt/lool/loolwsd.xml /etc/loolwsd/ && \
|
mv /opt/lool/loolwsd.xml /etc/loolwsd/ && \
|
||||||
|
@ -250,7 +258,7 @@ RUN adduser --quiet --system --group --home /opt/lool lool && \
|
||||||
mkdir -p /var/cache/loolwsd && \
|
mkdir -p /var/cache/loolwsd && \
|
||||||
chown -R lool /var/cache/loolwsd && \
|
chown -R lool /var/cache/loolwsd && \
|
||||||
setcap cap_fowner,cap_mknod,cap_sys_chroot=ep /opt/lool/bin/loolforkit && \
|
setcap cap_fowner,cap_mknod,cap_sys_chroot=ep /opt/lool/bin/loolforkit && \
|
||||||
setcap cap_sys_admin=ep /opt/lool/bin/loolmount && \
|
# setcap cap_sys_admin=ep /opt/lool/bin/loolmount && \
|
||||||
mkdir -p /usr/share/hunspell && \
|
mkdir -p /usr/share/hunspell && \
|
||||||
mkdir -p /usr/share/hyphen && \
|
mkdir -p /usr/share/hyphen && \
|
||||||
mkdir -p /usr/share/mythes && \
|
mkdir -p /usr/share/mythes && \
|
||||||
|
@ -266,8 +274,9 @@ RUN adduser --quiet --system --group --home /opt/lool lool && \
|
||||||
rm -rf /usr/share/man && \
|
rm -rf /usr/share/man && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /var/log/* && \
|
rm -rf /var/log/* && \
|
||||||
|
rm -rf /tmp/* && \
|
||||||
mkdir -p /var/log/lool && \
|
mkdir -p /var/log/lool && \
|
||||||
touch /var/log/lool/lool.log && \
|
touch /var/log/lool/loolwsd.log && \
|
||||||
chown -R lool /var/log/lool
|
chown -R lool /var/log/lool
|
||||||
|
|
||||||
### Networking Configuration
|
### Networking Configuration
|
||||||
|
@ -275,4 +284,3 @@ EXPOSE 9980
|
||||||
|
|
||||||
### Assets
|
### Assets
|
||||||
ADD install /
|
ADD install /
|
||||||
|
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2018 Dave Conroy
|
Copyright (c) 2019 Dave Conroy
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
13
README.md
13
README.md
|
@ -3,14 +3,13 @@
|
||||||
[![Build Status](https://img.shields.io/docker/build/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
[![Build Status](https://img.shields.io/docker/build/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
||||||
[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/libreoffice-online.svg)](https://hub.docker.com/r/tiredofit/libreoffice-online)
|
||||||
[![Docker
|
[![Docker Layers](https://images.microbadger.com/badges/image/tiredofit/libreoffice-online.svg)](https://microbadger.com/images/tiredofit/libreoffice-online)
|
||||||
Layers](https://images.microbadger.com/badges/image/tiredofit/libreoffice-online.svg)](https://microbadger.com/images/tiredofit/libreoffice-online)
|
|
||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
This will build a container for [LibreOffice Online](https://libreoffice.org/) for editing documents in a browser from supported applications
|
This will build a container for [LibreOffice Online](https://libreoffice.org/) for editing documents in a browser from supported applications
|
||||||
|
|
||||||
* This Container uses a [customized Ubuntu Linux base](https://hub.docker.com/r/tiredofit/ubuntu) which includes [s6 overlay](https://github.com/just-containers/s6-overlay) enabled for PID 1 Init capabilities, [zabbix-agent](https://zabbix.org) for individual container monitoring, Cron also installed along with other tools (bash,curl, less, logrotate, nano, vim) for easier management.
|
* This Container uses a [customized Debian Linux base](https://hub.docker.com/r/tiredofit/debian) which includes [s6 overlay](https://github.com/just-containers/s6-overlay) enabled for PID 1 Init capabilities, [zabbix-agent](https://zabbix.org) for individual container monitoring, Cron also installed along with other tools (bash,curl, less, logrotate, nano, vim) for easier management.
|
||||||
|
|
||||||
* Configurable Concurrent User and Document Limit (set to generarous values by default)
|
* Configurable Concurrent User and Document Limit (set to generarous values by default)
|
||||||
* Zabbix Monitoring of Active Documents, Users, Memory Consumed
|
* Zabbix Monitoring of Active Documents, Users, Memory Consumed
|
||||||
|
@ -56,7 +55,7 @@ docker pull tiredofit/libreoffice-online
|
||||||
|
|
||||||
The following image tags are available:
|
The following image tags are available:
|
||||||
|
|
||||||
* `latest` - Libreoffice 6.0.6.2 with Collabora Office Online 3.2.0.4
|
* `latest` - Collabora Libreoffice 5.3.61 with Collabora Office Online 3.4.2.1
|
||||||
|
|
||||||
# Quick Start
|
# Quick Start
|
||||||
|
|
||||||
|
@ -74,11 +73,11 @@ The following directories should be mapped for persistent storage in order to ut
|
||||||
|
|
||||||
| Folder | Description |
|
| Folder | Description |
|
||||||
|-----------|-------------|
|
|-----------|-------------|
|
||||||
| `/var/log/lool` | Log files
|
| `/var/log/loolwsd` | Log files
|
||||||
|
| `/assets/custom` | If you want to update the theme of LibreOffice online, dropping files in here will overwrite /opt/lool/share on startup |
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
Along with the Environment Variables from the [Base image](https://hub.docker.com/r/tiredofit/ubuntu), below is the complete list of available options that can be used to customize your installation.
|
Along with the Environment Variables from the [Base image](https://hub.docker.com/r/tiredofit/debian), below is the complete list of available options that can be used to customize your installation.
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
|-----------|-------------|
|
|-----------|-------------|
|
||||||
|
|
|
@ -1,12 +1,25 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
### Set Debug Mode
|
||||||
|
if [ "$DEBUG_MODE" = "TRUE" ] || [ "$DEBUG_MODE" = "true" ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
echo "** [libreoffice-online] Setting configuration"
|
||||||
|
|
||||||
mkdir -p /var/log/lool
|
mkdir -p /var/log/lool
|
||||||
touch /var/log/lool/lool.log
|
touch /var/log/lool/loolwsd.log
|
||||||
chown -R lool /var/log/lool
|
chown -R lool /var/log/lool
|
||||||
|
|
||||||
rm /opt/lool/systemplate/etc/resolv.conf
|
rm /opt/lool/systemplate/etc/resolv.conf
|
||||||
ln -s /etc/resolv.conf /opt/lool/systemplate/etc/resolv.conf
|
ln -s /etc/resolv.conf /opt/lool/systemplate/etc/resolv.conf
|
||||||
|
|
||||||
|
### Custom File Support
|
||||||
|
if [ -d /assets/custom ] ; then
|
||||||
|
echo "** [libreoffice-online] Custom Files Found, Copying over top of Master.."
|
||||||
|
cp -R /assets/custom/* /opt/lool/share/
|
||||||
|
chown -R lool. /opt/lool/share/
|
||||||
|
fi
|
||||||
|
|
||||||
if test "${DONT_GEN_SSL_CERT-set}" == set; then
|
if test "${DONT_GEN_SSL_CERT-set}" == set; then
|
||||||
|
|
||||||
# Generate new SSL certificate instead of using the default
|
# Generate new SSL certificate instead of using the default
|
||||||
|
@ -32,7 +45,7 @@ rm -rf /tmp/ssl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace Configureation directives
|
# Replace Configureation directives
|
||||||
perl -pi -e "s/<allowed_languages (.*)>.*<\/allowed_languages>/<allowed_languages \1>${LANGUAGES}<\/allowed_languages>/" /etc/loolwsd/loolwsd.xml
|
perl -pi -e "s/<allowed_languages (.*)>.*<\/allowed_languages>/<allowed_languages \1>${DICTIONARIES}<\/allowed_languages>/" /etc/loolwsd/loolwsd.xml
|
||||||
perl -pi -e "s/<level (.*)>.*<\/level>/<level \1>${LOG_LEVEL}<\/level>/" /etc/loolwsd/loolwsd.xml
|
perl -pi -e "s/<level (.*)>.*<\/level>/<level \1>${LOG_LEVEL}<\/level>/" /etc/loolwsd/loolwsd.xml
|
||||||
perl -pi -e "s/localhost<\/host>/${ALLOWED_HOSTS}<\/host>/g" /etc/loolwsd/loolwsd.xml
|
perl -pi -e "s/localhost<\/host>/${ALLOWED_HOSTS}<\/host>/g" /etc/loolwsd/loolwsd.xml
|
||||||
perl -pi -e "s/localhost<\/host>/${ALLOWED_HOSTS}<\/host>/g" /etc/loolwsd/loolwsd.xml
|
perl -pi -e "s/localhost<\/host>/${ALLOWED_HOSTS}<\/host>/g" /etc/loolwsd/loolwsd.xml
|
||||||
|
|
515
zabbix_templates/zabbix_agent_container.xml
Normal file
515
zabbix_templates/zabbix_agent_container.xml
Normal file
|
@ -0,0 +1,515 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<zabbix_export>
|
||||||
|
<version>3.4</version>
|
||||||
|
<date>2018-02-02T19:04:27Z</date>
|
||||||
|
<groups>
|
||||||
|
<group>
|
||||||
|
<name>Discovered Containers</name>
|
||||||
|
</group>
|
||||||
|
<group>
|
||||||
|
<name>Templates</name>
|
||||||
|
</group>
|
||||||
|
</groups>
|
||||||
|
<templates>
|
||||||
|
<template>
|
||||||
|
<template>Service - ICMP</template>
|
||||||
|
<name>Service - ICMP (Ping)</name>
|
||||||
|
<description/>
|
||||||
|
<groups>
|
||||||
|
<group>
|
||||||
|
<name>Templates</name>
|
||||||
|
</group>
|
||||||
|
</groups>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>ICMP</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<items>
|
||||||
|
<item>
|
||||||
|
<name>ICMP ping</name>
|
||||||
|
<type>3</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>icmpping</key>
|
||||||
|
<delay>1m</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>365d</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>3</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>ICMP</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap>
|
||||||
|
<name>Service state</name>
|
||||||
|
</valuemap>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>ICMP loss</name>
|
||||||
|
<type>3</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>icmppingloss</key>
|
||||||
|
<delay>1m</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>365d</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>0</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units>%</units>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>ICMP</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>ICMP response time</name>
|
||||||
|
<type>3</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>icmppingsec</key>
|
||||||
|
<delay>1m</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>365d</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>0</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units>s</units>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>ICMP</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
</items>
|
||||||
|
<discovery_rules/>
|
||||||
|
<httptests/>
|
||||||
|
<macros/>
|
||||||
|
<templates/>
|
||||||
|
<screens/>
|
||||||
|
</template>
|
||||||
|
<template>
|
||||||
|
<template>Zabbix - Container Agent</template>
|
||||||
|
<name>Zabbix - Container Agent</name>
|
||||||
|
<description/>
|
||||||
|
<groups>
|
||||||
|
<group>
|
||||||
|
<name>Discovered Containers</name>
|
||||||
|
</group>
|
||||||
|
<group>
|
||||||
|
<name>Templates</name>
|
||||||
|
</group>
|
||||||
|
</groups>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Packages</name>
|
||||||
|
</application>
|
||||||
|
<application>
|
||||||
|
<name>Zabbix agent</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<items>
|
||||||
|
<item>
|
||||||
|
<name>Hostname of Container</name>
|
||||||
|
<type>0</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>agent.hostname</key>
|
||||||
|
<delay>1h</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>0</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>1</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>3</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Zabbix agent</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Contaner OS</name>
|
||||||
|
<type>0</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>agent.os</key>
|
||||||
|
<delay>6h</delay>
|
||||||
|
<history>30d</history>
|
||||||
|
<trends>0</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>1</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>5</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Zabbix agent</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Zabbix Agent ping</name>
|
||||||
|
<type>0</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>agent.ping</key>
|
||||||
|
<delay>1m</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>365d</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>3</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description>The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.</description>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Zabbix agent</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap>
|
||||||
|
<name>Zabbix agent ping status</name>
|
||||||
|
</valuemap>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Zabbix Agent Version</name>
|
||||||
|
<type>0</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>agent.version</key>
|
||||||
|
<delay>1h</delay>
|
||||||
|
<history>1w</history>
|
||||||
|
<trends>0</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>1</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Zabbix agent</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Upgradable Packages</name>
|
||||||
|
<type>0</type>
|
||||||
|
<snmp_community/>
|
||||||
|
<snmp_oid/>
|
||||||
|
<key>packages.upgradable</key>
|
||||||
|
<delay>6h</delay>
|
||||||
|
<history>90d</history>
|
||||||
|
<trends>365d</trends>
|
||||||
|
<status>0</status>
|
||||||
|
<value_type>3</value_type>
|
||||||
|
<allowed_hosts/>
|
||||||
|
<units/>
|
||||||
|
<snmpv3_contextname/>
|
||||||
|
<snmpv3_securityname/>
|
||||||
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
||||||
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
||||||
|
<snmpv3_authpassphrase/>
|
||||||
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
||||||
|
<snmpv3_privpassphrase/>
|
||||||
|
<params/>
|
||||||
|
<ipmi_sensor/>
|
||||||
|
<authtype>0</authtype>
|
||||||
|
<username/>
|
||||||
|
<password/>
|
||||||
|
<publickey/>
|
||||||
|
<privatekey/>
|
||||||
|
<port/>
|
||||||
|
<description/>
|
||||||
|
<inventory_link>0</inventory_link>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>Packages</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<valuemap/>
|
||||||
|
<logtimefmt/>
|
||||||
|
<preprocessing/>
|
||||||
|
<jmx_endpoint/>
|
||||||
|
<master_item/>
|
||||||
|
</item>
|
||||||
|
</items>
|
||||||
|
<discovery_rules/>
|
||||||
|
<httptests/>
|
||||||
|
<macros/>
|
||||||
|
<templates/>
|
||||||
|
<screens/>
|
||||||
|
</template>
|
||||||
|
</templates>
|
||||||
|
<triggers>
|
||||||
|
<trigger>
|
||||||
|
<expression>{Service - ICMP:icmpping.max(3m)}=3</expression>
|
||||||
|
<recovery_mode>0</recovery_mode>
|
||||||
|
<recovery_expression/>
|
||||||
|
<name>Cannot be pinged</name>
|
||||||
|
<correlation_mode>0</correlation_mode>
|
||||||
|
<correlation_tag/>
|
||||||
|
<url/>
|
||||||
|
<status>0</status>
|
||||||
|
<priority>5</priority>
|
||||||
|
<description/>
|
||||||
|
<type>0</type>
|
||||||
|
<manual_close>0</manual_close>
|
||||||
|
<dependencies/>
|
||||||
|
<tags/>
|
||||||
|
</trigger>
|
||||||
|
<trigger>
|
||||||
|
<expression>{Service - ICMP:icmppingloss.min(10m)}>50</expression>
|
||||||
|
<recovery_mode>0</recovery_mode>
|
||||||
|
<recovery_expression/>
|
||||||
|
<name>Ping loss is too high</name>
|
||||||
|
<correlation_mode>0</correlation_mode>
|
||||||
|
<correlation_tag/>
|
||||||
|
<url/>
|
||||||
|
<status>0</status>
|
||||||
|
<priority>4</priority>
|
||||||
|
<description/>
|
||||||
|
<type>0</type>
|
||||||
|
<manual_close>0</manual_close>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<name>Cannot be pinged</name>
|
||||||
|
<expression>{Service - ICMP:icmpping.max(3m)}=3</expression>
|
||||||
|
<recovery_expression/>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<tags/>
|
||||||
|
</trigger>
|
||||||
|
<trigger>
|
||||||
|
<expression>{Service - ICMP:icmppingsec.avg(2m)}>100</expression>
|
||||||
|
<recovery_mode>0</recovery_mode>
|
||||||
|
<recovery_expression/>
|
||||||
|
<name>Ping Response time is too high</name>
|
||||||
|
<correlation_mode>0</correlation_mode>
|
||||||
|
<correlation_tag/>
|
||||||
|
<url/>
|
||||||
|
<status>0</status>
|
||||||
|
<priority>4</priority>
|
||||||
|
<description/>
|
||||||
|
<type>1</type>
|
||||||
|
<manual_close>0</manual_close>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<name>Cannot be pinged</name>
|
||||||
|
<expression>{Service - ICMP:icmpping.max(3m)}=3</expression>
|
||||||
|
<recovery_expression/>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<tags/>
|
||||||
|
</trigger>
|
||||||
|
<trigger>
|
||||||
|
<expression>{Zabbix - Container Agent:packages.upgradable.last()}>0</expression>
|
||||||
|
<recovery_mode>0</recovery_mode>
|
||||||
|
<recovery_expression/>
|
||||||
|
<name>Upgraded Packages in Container Available</name>
|
||||||
|
<correlation_mode>0</correlation_mode>
|
||||||
|
<correlation_tag/>
|
||||||
|
<url/>
|
||||||
|
<status>0</status>
|
||||||
|
<priority>1</priority>
|
||||||
|
<description/>
|
||||||
|
<type>0</type>
|
||||||
|
<manual_close>0</manual_close>
|
||||||
|
<dependencies/>
|
||||||
|
<tags/>
|
||||||
|
</trigger>
|
||||||
|
<trigger>
|
||||||
|
<expression>{Zabbix - Container Agent:agent.ping.nodata(3m)}=1</expression>
|
||||||
|
<recovery_mode>0</recovery_mode>
|
||||||
|
<recovery_expression/>
|
||||||
|
<name>Zabbix agent is unreachable</name>
|
||||||
|
<correlation_mode>0</correlation_mode>
|
||||||
|
<correlation_tag/>
|
||||||
|
<url/>
|
||||||
|
<status>0</status>
|
||||||
|
<priority>5</priority>
|
||||||
|
<description/>
|
||||||
|
<type>0</type>
|
||||||
|
<manual_close>0</manual_close>
|
||||||
|
<dependencies/>
|
||||||
|
<tags/>
|
||||||
|
</trigger>
|
||||||
|
</triggers>
|
||||||
|
<value_maps>
|
||||||
|
<value_map>
|
||||||
|
<name>Service state</name>
|
||||||
|
<mappings>
|
||||||
|
<mapping>
|
||||||
|
<value>0</value>
|
||||||
|
<newvalue>Down</newvalue>
|
||||||
|
</mapping>
|
||||||
|
<mapping>
|
||||||
|
<value>1</value>
|
||||||
|
<newvalue>Up</newvalue>
|
||||||
|
</mapping>
|
||||||
|
</mappings>
|
||||||
|
</value_map>
|
||||||
|
<value_map>
|
||||||
|
<name>Zabbix agent ping status</name>
|
||||||
|
<mappings>
|
||||||
|
<mapping>
|
||||||
|
<value>1</value>
|
||||||
|
<newvalue>Up</newvalue>
|
||||||
|
</mapping>
|
||||||
|
</mappings>
|
||||||
|
</value_map>
|
||||||
|
</value_maps>
|
||||||
|
</zabbix_export>
|
Loading…
Reference in a new issue