Browse Source

Moved to official Zabbix images

tags/v2.0.0
Robin Thoni 3 years ago
parent
commit
3aaa63145e
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E

+ 16
- 0
.env View File

@@ -0,0 +1,16 @@
1
+POSTGRES_HOST=postgres.main.internal.docker
2
+POSTGRES_USER=zabbix
3
+POSTGRES_PASSWORD=pg_password
4
+POSTGRES_DB=zabbix
5
+
6
+ZABBIX_HOST=zabbix.main.internal.docker
7
+ZABBIX_NAME=Zabbix
8
+ZABBIX_VERSION=5.2.4
9
+ZBX_DEBUGLEVEL=3
10
+ZABBIX_TLSCAFILE=zabbix-ca.crt
11
+ZABBIX_TLSCERTFILE=zabbix-server.crt
12
+ZABBIX_TLSKEYFILE=zabbix-server.key
13
+ZABBIX_ENABLE_SNMP_TRAPS=true
14
+
15
+ALL_TZ=Europe/Paris
16
+ALL_RESTART_POLICY=no

+ 7
- 1
README.md View File

@@ -2,7 +2,13 @@
2 2
 
3 3
 Admin:zabbix
4 4
 
5
-# TLS
5
+# Installation
6
+
7
+## .env
8
+
9
+- Generate random password for `POSTGRES_PASSWORD`
10
+- Setup `ALL_TZ` to the current timezone
11
+- Set `ALL_RESTART_POLICY` to `unless-stopped`
6 12
 
7 13
 ## Generate CA
8 14
 

+ 90
- 27
docker-compose.yml View File

@@ -1,47 +1,110 @@
1 1
 version: '2'
2 2
 
3 3
 services:
4
-    database:
5
-        build: ./postgresql
6
-        container_name: zabbix-postgresql
7
-#        restart: unless-stopped
4
+    postgres:
5
+        image: postgres:13-alpine
6
+        restart: ${ALL_RESTART_POLICY}
8 7
         networks:
9
-            zabbix.internal.docker:
8
+            main.internal.docker:
10 9
                 aliases:
11
-                    - postgresql.zabbix.internal.docker
10
+                    - postgres.main.internal.docker
12 11
         volumes:
13
-            - ./data/postgresql/data:/var/lib/postgresql/data
14
-            - ./data/postgresql/backup:/var/lib/postgresql/backup
12
+            - ./data/postgres/data:/var/lib/postgresql/data
13
+            - ./prod-2021-02-22:/data
14
+        environment:
15
+            TZ: ${ALL_TZ}
16
+            POSTGRES_USER: ${POSTGRES_USER}
17
+            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
18
+            POSTGRES_DB: ${POSTGRES_DB}
15 19
         ports:
16 20
             - "127.0.0.1:34080:5432"
17
-        env_file:
18
-            - env
21
+
22
+    postgres-backup:
23
+        image: prodrigestivill/postgres-backup-local:13-alpine
24
+        restart: ${ALL_RESTART_POLICY}
25
+        networks:
26
+            main.internal.docker:
27
+                aliases:
28
+                    - postgres-backup.main.internal.docker
29
+        volumes:
30
+            - ./data/postgres-backup/data:/backups
31
+        environment:
32
+            TZ: ${ALL_TZ}
33
+            POSTGRES_USER: ${POSTGRES_USER}
34
+            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
35
+            POSTGRES_DB: ${POSTGRES_DB}
36
+            POSTGRES_HOST: ${POSTGRES_HOST}
37
+            SCHEDULE: 0 17 2 * * * # every day at 02:17:00 AM
38
+            BACKUP_KEEP_DAYS: 7
39
+            BACKUP_KEEP_WEEKS: 4
40
+            BACKUP_KEEP_MONTHS: 12
19 41
 
20 42
     zabbix:
21
-        build: ./zabbix
22
-        container_name: zabbix-zabbix
23
-#        restart: unless-stopped
43
+        image: zabbix/zabbix-server-pgsql:alpine-${ZABBIX_VERSION}
44
+        restart: ${ALL_RESTART_POLICY}
24 45
         networks:
25
-            zabbix.internal.docker:
46
+            main.internal.docker:
26 47
                 aliases:
27
-                    - zabbix.zabbix.internal.docker
48
+                    - zabbix.main.internal.docker
28 49
         ports:
29
-            - "127.0.0.1:10051:10051"
30
-        env_file:
31
-            - env
50
+            - "0.0.0.0:10051:10051"
51
+        volumes:
52
+            - ./data/zabbix/alertscripts:/usr/lib/zabbix/alertscripts
53
+            - ./data/zabbix/externalscripts:/usr/lib/zabbix/externalscripts
54
+            - ./data/zabbix/enc:/var/lib/zabbix/enc
55
+            - ./data/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys
56
+            - ./data/zabbix/ssl/certs:/var/lib/zabbix/ssl/certs
57
+            - ./data/zabbix/ssl/keys:/var/lib/zabbix/ssl/keys
58
+            - ./data/zabbix/ssl/ssl_ca:/var/lib/zabbix/ssl/ssl_ca
59
+            - ./data/zabbix-snmptraps/snmptraps:/var/lib/zabbix/snmptraps
60
+            - ./data/zabbix/mibs:/var/lib/zabbix/mibs
61
+        environment:
62
+            TZ: ${ALL_TZ}
63
+            DB_SERVER_HOST: ${POSTGRES_HOST}
64
+            POSTGRES_USER: ${POSTGRES_USER}
65
+            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
66
+            POSTGRES_DB: ${POSTGRES_DB}
67
+            ZBX_DEBUGLEVEL: ${ZBX_DEBUGLEVEL}
68
+            ZBX_TLSCAFILE: ${ZABBIX_TLSCAFILE}
69
+            ZBX_TLSCERTFILE: ${ZABBIX_TLSCERTFILE}
70
+            ZBX_TLSKEYFILE: ${ZABBIX_TLSKEYFILE}
71
+            ZBX_ENABLE_SNMP_TRAPS: ${ZABBIX_ENABLE_SNMP_TRAPS}
72
+
73
+    snmptraps:
74
+        image: zabbix/zabbix-snmptraps:alpine-${ZABBIX_VERSION}
75
+        restart: ${ALL_RESTART_POLICY}
76
+        networks:
77
+            main.internal.docker:
78
+                aliases:
79
+                    - snmptrap.main.internal.docker
80
+        ports:
81
+            - "0.0.0.0:1162:1162/udp"
82
+        volumes:
83
+            - ./data/zabbix-snmptraps/snmptraps:/var/lib/zabbix/snmptraps
84
+            - ./data/zabbix/mibs:/var/lib/zabbix/mibs
85
+        environment:
86
+            TZ: ${ALL_TZ}
32 87
 
33 88
     frontend:
34
-        build: ./frontend
35
-        container_name: zabbix-frontend
36
-#        restart: unless-stopped
89
+        image: zabbix/zabbix-web-apache-pgsql:alpine-${ZABBIX_VERSION}
90
+        restart: ${ALL_RESTART_POLICY}
37 91
         networks:
38
-            zabbix.internal.docker:
92
+            main.internal.docker:
39 93
                 aliases:
40
-                    - frontend.zabbix.internal.docker
94
+                    - frontend.main.internal.docker
41 95
         ports:
42
-            - "127.0.0.1:34081:80"
43
-        env_file:
44
-            - env
96
+            - "127.0.0.1:34081:8080"
97
+        volumes:
98
+            - ./data/zabbix-frontend/certs:/etc/zabbix/web/certs
99
+        environment:
100
+            TZ: ${ALL_TZ}
101
+            PHP_TZ: ${ALL_TZ}
102
+            DB_SERVER_HOST: ${POSTGRES_HOST}
103
+            POSTGRES_USER: ${POSTGRES_USER}
104
+            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
105
+            POSTGRES_DB: ${POSTGRES_DB}
106
+            ZBX_SERVER_NAME: ${ZABBIX_NAME}
107
+            ZBX_SERVER_HOST: ${ZABBIX_HOST}
45 108
 
46 109
 networks:
47
-    zabbix.internal.docker:
110
+    main.internal.docker:

+ 0
- 7
env View File

@@ -1,7 +0,0 @@
1
-POSTGRES_HOST=postgresql.zabbix.internal.docker
2
-POSTGRES_USER=zabbix
3
-POSTGRES_PASSWORD=pg_password
4
-POSTGRES_DB=zabbix
5
-
6
-ZABBIX_HOST=zabbix.zabbix.internal.docker
7
-ZABBIX_PORT=10051

+ 0
- 57
frontend/Dockerfile View File

@@ -1,57 +0,0 @@
1
-ARG DEBIAN_VERSION=stretch
2
-
3
-FROM debian:${DEBIAN_VERSION}
4
-
5
-# FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
6
-MAINTAINER Robin Thoni <robin@rthoni.com>
7
-
8
-RUN apt-get update && apt-get -y install\
9
-        wget &&\
10
-        apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
11
-
12
-ARG ZABBIX_VERSION=4.0
13
-
14
-RUN if [ "$(uname -m)" = "x86_64" ]; then echo -n "debian"; else echo -n "raspbian"; fi > /tmp/distrib &&\
15
-    wget http://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/$(cat /tmp/distrib)/pool/main/z/zabbix-release/zabbix-release_${ZABBIX_VERSION}-2+stretch_all.deb -O /tmp/zabbix.deb &&\
16
-    rm /tmp/distrib &&\
17
-    dpkg -i /tmp/zabbix.deb
18
-
19
-RUN apt-get update && apt-get -y install\
20
-        zabbix-frontend-php\
21
-        apache2=2.4.*\
22
-        libapache2-mod-php\
23
-        php\
24
-        php-mcrypt\
25
-        php-pgsql\
26
-        php-mysql\
27
-        php-gd\
28
-        php-curl\
29
-        php-imap &&\
30
-        apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
31
-
32
-RUN /usr/sbin/a2enmod rewrite &&\
33
-    rm -rf /var/www/html &&\
34
-    mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
35
-    chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
36
-
37
-RUN rm -rf /var/log/* &&\
38
-    mkdir -p /var/log/apache2 &&\
39
-    ln -s /dev/stderr /var/log/apache2/error.log &&\
40
-    ln -s /dev/stdout /var/log/apache2/access.log &&\
41
-    ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
42
-
43
-COPY apache2.conf /etc/apache2/apache2.conf
44
-
45
-COPY zabbix.conf.php /etc/zabbix/web/zabbix.conf.php
46
-
47
-COPY php.ini /etc/php/7.0/apache2/php.ini
48
-
49
-COPY ./vars-vars /etc/vars-vars
50
-
51
-COPY ./vars-files /etc/vars-files
52
-
53
-COPY ./run.sh /run.sh
54
-
55
-EXPOSE 80
56
-
57
-CMD ["/run.sh"]

+ 0
- 59
frontend/apache2.conf View File

@@ -1,59 +0,0 @@
1
-# see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
2
-
3
-Mutex file:/var/lock/apache2 default
4
-PidFile /var/run/apache2/apache2.pid
5
-Timeout 300
6
-KeepAlive On
7
-MaxKeepAliveRequests 100
8
-KeepAliveTimeout 5
9
-User www-data
10
-Group www-data
11
-HostnameLookups Off
12
-ErrorLog /var/log/apache2/error.log
13
-LogLevel warn
14
-
15
-IncludeOptional mods-enabled/*.load
16
-IncludeOptional mods-enabled/*.conf
17
-
18
-# ports.conf
19
-Listen 80
20
-<IfModule ssl_module>
21
-    Listen 443
22
-</IfModule>
23
-<IfModule mod_gnutls.c>
24
-    Listen 443
25
-</IfModule>
26
-
27
-DocumentRoot "/usr/share/zabbix/"
28
-
29
-<Directory />
30
-    Options FollowSymLinks
31
-    AllowOverride None
32
-    Require all denied
33
-</Directory>
34
-
35
-<Directory /usr/share/zabbix/>
36
-    Options FollowSymLinks
37
-    AllowOverride All
38
-    Require all granted
39
-</Directory>
40
-
41
-
42
-
43
-LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
44
-LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
45
-LogFormat "%h %l %u %t \"%r\" %>s %O" common
46
-LogFormat "%{Referer}i -> %U" referer
47
-LogFormat "%{User-agent}i" agent
48
-
49
-CustomLog /var/log/apache2/access.log combined
50
-
51
-<FilesMatch \.php$>
52
-    SetHandler application/x-httpd-php
53
-</FilesMatch>
54
-
55
-# Multiple DirectoryIndex directives within the same context will add
56
-# to the list of resources to look for rather than replace
57
-# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
58
-DirectoryIndex disabled
59
-DirectoryIndex index.php index.html

+ 0
- 1918
frontend/php.ini
File diff suppressed because it is too large
View File


+ 0
- 30
frontend/run.sh View File

@@ -1,30 +0,0 @@
1
-#! /usr/bin/env bash
2
-
3
-replace_var()
4
-{
5
-  file="${1}"
6
-  var="${2}"
7
-  sed -e "s?${var}?${!var}?g" -i "${file}"
8
-}
9
-
10
-replace_vars()
11
-{
12
-  file="${1}"
13
-  for var in $(cat /etc/vars-vars)
14
-  do
15
-    replace_var "${file}" "${var}"
16
-  done
17
-}
18
-
19
-replace_files()
20
-{
21
-  for file in $(cat /etc/vars-files)
22
-  do
23
-    replace_vars "${file}"
24
-  done
25
-}
26
-
27
-replace_files
28
-
29
-rm -f /run/apache2/apache2.pid
30
-exec /usr/sbin/apache2ctl -D FOREGROUND

+ 0
- 1
frontend/vars-files View File

@@ -1 +0,0 @@
1
-/etc/zabbix/web/zabbix.conf.php

+ 0
- 7
frontend/vars-vars View File

@@ -1,7 +0,0 @@
1
-POSTGRES_HOST
2
-POSTGRES_USER
3
-POSTGRES_PASSWORD
4
-POSTGRES_DB
5
-
6
-ZABBIX_HOST
7
-ZABBIX_PORT

+ 0
- 19
frontend/zabbix.conf.php View File

@@ -1,19 +0,0 @@
1
-<?php
2
-// Zabbix GUI configuration file.
3
-global $DB;
4
-
5
-$DB['TYPE']     = 'POSTGRESQL';
6
-$DB['SERVER']   = 'POSTGRES_HOST';
7
-$DB['PORT']     = '0';
8
-$DB['DATABASE'] = 'POSTGRES_DB';
9
-$DB['USER']     = 'POSTGRES_USER';
10
-$DB['PASSWORD'] = 'POSTGRES_PASSWORD';
11
-
12
-// Schema name. Used for IBM DB2 and PostgreSQL.
13
-$DB['SCHEMA'] = '';
14
-
15
-$ZBX_SERVER      = 'ZABBIX_HOST';
16
-$ZBX_SERVER_PORT = 'ZABBIX_PORT';
17
-$ZBX_SERVER_NAME = '';
18
-
19
-$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

+ 0
- 5
postgresql/Dockerfile View File

@@ -1,5 +0,0 @@
1
-FROM robinthoni/postgres-backup-multiarch:9.6
2
-
3
-RUN rm -rf /var/log/*
4
-
5
-COPY ./docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d

+ 0
- 16510
postgresql/docker-entrypoint-initdb.d/01_init.sql
File diff suppressed because it is too large
View File


+ 0
- 7
update_vars.sh View File

@@ -1,7 +0,0 @@
1
-#! /usr/bin/env sh
2
-
3
-vars=$(cat env | cut -d= -f1)
4
-for docker in zabbix frontend
5
-do
6
-  echo "${vars}" > "./${docker}/vars-vars"
7
-done

+ 0
- 29
zabbix/certs/zabbix-ca.crt View File

@@ -1,29 +0,0 @@
1
------BEGIN CERTIFICATE-----
2
-MIIFCDCCAvCgAwI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-9w0BAQsFAAOCAgEAHxkaPKWgG2qulh/ZsTWdwvU/jqv9Tdcj80ln/vnfZCSefBqp
19
-LBB13NeIXXl+u/yL4MhamwwYrZPWYEKP7zemj10BaVVuSoF8OSwriTrxWBUQ3qoR
20
-fFJmGyA180ghJeuPbXgT0JjAJyxUedTuxYPM/1XfPX4mYxfPEtl/Qz1N+0Huaez0
21
-EszRe3BFgvXois/m0MFvuXpms2ptRZOodmC1Bvosx/awfpp+7LLGSP8CYLfE6bOH
22
-Zvhnu/RG5B+Fed+kvDs6Kn4erruRLZL79pbjfvPSB1hrLyhdfVtmYANppgSXOpFb
23
-C2NB0AsfXK3xGVc+cmF93qN4M1JrL8p1RtJyPnt8ptrMvt0mt2zNuXZQReDP1eYv
24
-PVrhIbpwGZ164CNIbBSE1DhOjd0hzIUGRUcWC3/gMBVXbVRpy5yRavhAsy/AxHYM
25
-G2s29D/4hYYAUa3EQxFv4v7jsgxmY5m1kV4SwF/4X1D+mvWDHo9l77382W3Q4uLL
26
-MYWNyBtjyICicRg6lKCgpt99XKE5AzblJTAGpxUhQbVU27/l1dgBTICDj4xXhh5F
27
-jxoN1LrGCBvMqDhZ7umpQWAa+wJb+nK6wq1TnvHYNvXjuFCbctx75rkHKIiT/H3W
28
-hUPoU/jF23LfgLFTctOFFVIX87ixBfQhfwLRk5i9KD6LFFIH9HTPKk6qDzE=
29
------END CERTIFICATE-----

+ 0
- 28
zabbix/certs/zabbix-server.crt View File

@@ -1,28 +0,0 @@
1
------BEGIN CERTIFICATE-----
2
-MIIErjCCApYCCQDWlhRoK+VAyDANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDDA16
3
-YWJiaXgtc2VydmVyMCAXDTE5MDExMTAwMTkxMFoYDzIxMTgxMjE4MDAxOTEwWjAY
4
-MRYwFAYDVQQDDA16YWJiaXgtc2VydmVyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
5
-MIICCgKCAgEApEWBo4KoT+5wBIAHZZAeOs7fmkxVqRur6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w+kAgCxD
43
-b8PVnAUbG2Zlbhn3sSBkq2veteLWTze2Gug3dwVDSpNHOn3A7kfPLZozLHJkcJYH
44
-iQtkTGubiXEvEwLvYhA6NKMVpnSC5K7cpiwgXQGfDUVrSgUUAMzvX0b9wCzne7Vh
45
-GeTzHoV6n6ABamfMdUpTnEMKIh/32G3nKM7X9Kx9/UX/JkEXoVuY63KM1SOSWc2s
46
-OrECggEBALMBmlLGYnQM5Xlf4FYwCzfIOCE+SzVzy9eHlmSHWbiMvHi9YGLGfO25
47
-aJnKxf/N6EoR7wb9K+v6GN37Mm7TUgoWkD67P+kAwm9uh3Q2p8eDvh9L+iC/BpOl
48
-0UpXYQzoP/9Ncslx6fWROHDMHAPCioDM8eFdR3KoLBh5MZ8di/K9rWC0pfdWvnNI
49
-6Vp/ETru+VhoG17zIlCoWuj5ui/bKGIc4BLy4gey5Gn5IZ1wNBKbGJP/QCrTA2TT
50
-A+Se+pnwkyOU110NBVl5L1Uni67ECYKUHSP6pUhPgO1Z3Ij1sa8C801yCdi8H7pI
51
-fY1TZMXMVBTw0bNZwSV4lXkSr4e4VOk=
52
------END PRIVATE KEY-----

+ 0
- 29
zabbix/run.sh View File

@@ -1,29 +0,0 @@
1
-#! /usr/bin/env bash
2
-
3
-replace_var()
4
-{
5
-  file="${1}"
6
-  var="${2}"
7
-  sed -e "s?${var}?${!var}?g" -i "${file}"
8
-}
9
-
10
-replace_vars()
11
-{
12
-  file="${1}"
13
-  for var in $(cat /etc/vars-vars)
14
-  do
15
-    replace_var "${file}" "${var}"
16
-  done
17
-}
18
-
19
-replace_files()
20
-{
21
-  for file in $(cat /etc/vars-files)
22
-  do
23
-    replace_vars "${file}"
24
-  done
25
-}
26
-
27
-replace_files
28
-
29
-zabbix_server -f -c /etc/zabbix/zabbix_server.conf

+ 0
- 1
zabbix/vars-files View File

@@ -1 +0,0 @@
1
-/etc/zabbix/zabbix_server.conf

+ 0
- 7
zabbix/vars-vars View File

@@ -1,7 +0,0 @@
1
-POSTGRES_HOST
2
-POSTGRES_USER
3
-POSTGRES_PASSWORD
4
-POSTGRES_DB
5
-
6
-ZABBIX_HOST
7
-ZABBIX_PORT

+ 0
- 678
zabbix/zabbix_server.conf View File

@@ -1,678 +0,0 @@
1
-# This is a configuration file for Zabbix server daemon
2
-# To get more information about Zabbix, visit http://www.zabbix.com
3
-
4
-############ GENERAL PARAMETERS #################
5
-
6
-### Option: ListenPort
7
-#	Listen port for trapper.
8
-#
9
-# Mandatory: no
10
-# Range: 1024-32767
11
-# Default:
12
-ListenPort=ZABBIX_PORT
13
-
14
-### Option: SourceIP
15
-#	Source IP address for outgoing connections.
16
-#
17
-# Mandatory: no
18
-# Default:
19
-# SourceIP=
20
-
21
-### Option: LogType
22
-#	Specifies where log messages are written to:
23
-#		system  - syslog
24
-#		file    - file specified with LogFile parameter
25
-#		console - standard output
26
-#
27
-# Mandatory: no
28
-# Default:
29
-# LogType=file
30
-
31
-### Option: LogFile
32
-#	Log file name for LogType 'file' parameter.
33
-#
34
-# Mandatory: no
35
-# Default:
36
-# LogFile=
37
-
38
-LogFile=/var/log/zabbix/zabbix_server.log
39
-
40
-### Option: LogFileSize
41
-#	Maximum size of log file in MB.
42
-#	0 - disable automatic log rotation.
43
-#
44
-# Mandatory: no
45
-# Range: 0-1024
46
-# Default:
47
-# LogFileSize=1
48
-
49
-LogFileSize=0
50
-
51
-### Option: DebugLevel
52
-#	Specifies debug level:
53
-#	0 - basic information about starting and stopping of Zabbix processes
54
-#	1 - critical information
55
-#	2 - error information
56
-#	3 - warnings
57
-#	4 - for debugging (produces lots of information)
58
-#	5 - extended debugging (produces even more information)
59
-#
60
-# Mandatory: no
61
-# Range: 0-5
62
-# Default:
63
-# DebugLevel=3
64
-
65
-### Option: PidFile
66
-#	Name of PID file.
67
-#
68
-# Mandatory: no
69
-# Default:
70
-# PidFile=/tmp/zabbix_server.pid
71
-
72
-PidFile=/var/run/zabbix/zabbix_server.pid
73
-
74
-### Option: SocketDir
75
-#	IPC socket directory.
76
-#       Directory to store IPC sockets used by internal Zabbix services.
77
-#
78
-# Mandatory: no
79
-# Default:
80
-# SocketDir=/tmp
81
-
82
-SocketDir=/var/run/zabbix
83
-
84
-### Option: DBHost
85
-#	Database host name.
86
-#	If set to localhost, socket is used for MySQL.
87
-#	If set to empty string, socket is used for PostgreSQL.
88
-#
89
-# Mandatory: no
90
-# Default:
91
-DBHost=POSTGRES_HOST
92
-
93
-### Option: DBName
94
-#	Database name.
95
-#	For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
96
-#
97
-# Mandatory: yes
98
-# Default:
99
-# DBName=
100
-
101
-DBName=POSTGRES_DB
102
-
103
-### Option: DBSchema
104
-#	Schema name. Used for IBM DB2 and PostgreSQL.
105
-#
106
-# Mandatory: no
107
-# Default:
108
-# DBSchema=
109
-
110
-### Option: DBUser
111
-#	Database user. Ignored for SQLite.
112
-#
113
-# Mandatory: no
114
-# Default:
115
-# DBUser=
116
-
117
-DBUser=POSTGRES_USER
118
-
119
-### Option: DBPassword
120
-#	Database password. Ignored for SQLite.
121
-#	Comment this line if no password is used.
122
-#
123
-# Mandatory: no
124
-# Default:
125
-DBPassword=POSTGRES_PASSWORD
126
-
127
-### Option: DBSocket
128
-#	Path to MySQL socket.
129
-#
130
-# Mandatory: no
131
-# Default:
132
-# DBSocket=/tmp/mysql.sock
133
-
134
-### Option: DBPort
135
-#	Database port when not using local socket. Ignored for SQLite.
136
-#
137
-# Mandatory: no
138
-# Range: 1024-65535
139
-# Default (for MySQL):
140
-# DBPort=3306
141
-
142
-### Option: HistoryStorageURL
143
-#	History storage HTTP[S] URL.
144
-#
145
-# Mandatory: no
146
-# Default:
147
-# HistoryStorageURL=
148
-
149
-### Option: HistoryStorageTypes
150
-#	Comma separated list of value types to be sent to the history storage.
151
-#
152
-# Mandatory: no
153
-# Default:
154
-# HistoryStorageTypes=uint,dbl,str,log,text
155
-
156
-############ ADVANCED PARAMETERS ################
157
-
158
-### Option: StartPollers
159
-#	Number of pre-forked instances of pollers.
160
-#
161
-# Mandatory: no
162
-# Range: 0-1000
163
-# Default:
164
-StartPollers=20
165
-
166
-### Option: StartIPMIPollers
167
-#	Number of pre-forked instances of IPMI pollers.
168
-#       The IPMI manager process is automatically started when at least one IPMI poller is started.
169
-#
170
-# Mandatory: no
171
-# Range: 0-1000
172
-# Default:
173
-# StartIPMIPollers=0
174
-
175
-### Option: StartPreprocessors
176
-#	Number of pre-forked instances of preprocessing workers.
177
-#       The preprocessing manager process is automatically started when preprocessor worker is started.
178
-#
179
-# Mandatory: no
180
-# Range: 1-1000
181
-# Default:
182
-# StartPreprocessors=3
183
-
184
-### Option: StartPollersUnreachable
185
-#	Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java).
186
-#	At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers
187
-#	are started.
188
-#
189
-# Mandatory: no
190
-# Range: 0-1000
191
-# Default:
192
-# StartPollersUnreachable=1
193
-
194
-### Option: StartTrappers
195
-#	Number of pre-forked instances of trappers.
196
-#	Trappers accept incoming connections from Zabbix sender, active agents and active proxies.
197
-#	At least one trapper process must be running to display server availability and view queue
198
-#	in the frontend.
199
-#
200
-# Mandatory: no
201
-# Range: 0-1000
202
-# Default:
203
-# StartTrappers=5
204
-
205
-### Option: StartPingers
206
-#	Number of pre-forked instances of ICMP pingers.
207
-#
208
-# Mandatory: no
209
-# Range: 0-1000
210
-# Default:
211
-# StartPingers=1
212
-
213
-### Option: StartDiscoverers
214
-#	Number of pre-forked instances of discoverers.
215
-#
216
-# Mandatory: no
217
-# Range: 0-250
218
-# Default:
219
-# StartDiscoverers=1
220
-
221
-### Option: StartHTTPPollers
222
-#	Number of pre-forked instances of HTTP pollers.
223
-#
224
-# Mandatory: no
225
-# Range: 0-1000
226
-# Default:
227
-# StartHTTPPollers=1
228
-
229
-### Option: StartTimers
230
-#	Number of pre-forked instances of timers.
231
-#	Timers process time-based trigger functions and maintenance periods.
232
-#	Only the first timer process handles the maintenance periods.
233
-#
234
-# Mandatory: no
235
-# Range: 1-1000
236
-# Default:
237
-# StartTimers=1
238
-
239
-### Option: StartEscalators
240
-#	Number of pre-forked instances of escalators.
241
-#
242
-# Mandatory: no
243
-# Range: 0-100
244
-# Default:
245
-# StartEscalators=1
246
-
247
-### Option: StartAlerters
248
-#	Number of pre-forked instances of alerters.
249
-#	Alerters send the notifications created by action operations.
250
-#
251
-# Mandatory: no
252
-# Range: 0-100
253
-# Default:
254
-# StartAlerters=3
255
-
256
-### Option: JavaGateway
257
-#	IP address (or hostname) of Zabbix Java gateway.
258
-#	Only required if Java pollers are started.
259
-#
260
-# Mandatory: no
261
-# Default:
262
-# JavaGateway=
263
-
264
-### Option: JavaGatewayPort
265
-#	Port that Zabbix Java gateway listens on.
266
-#
267
-# Mandatory: no
268
-# Range: 1024-32767
269
-# Default:
270
-# JavaGatewayPort=10052
271
-
272
-### Option: StartJavaPollers
273
-#	Number of pre-forked instances of Java pollers.
274
-#
275
-# Mandatory: no
276
-# Range: 0-1000
277
-# Default:
278
-# StartJavaPollers=0
279
-
280
-### Option: StartVMwareCollectors
281
-#	Number of pre-forked vmware collector instances.
282
-#
283
-# Mandatory: no
284
-# Range: 0-250
285
-# Default:
286
-# StartVMwareCollectors=0
287
-
288
-### Option: VMwareFrequency
289
-#	How often Zabbix will connect to VMware service to obtain a new data.
290
-#
291
-# Mandatory: no
292
-# Range: 10-86400
293
-# Default:
294
-# VMwareFrequency=60
295
-
296
-### Option: VMwarePerfFrequency
297
-#	How often Zabbix will connect to VMware service to obtain performance data.
298
-#
299
-# Mandatory: no
300
-# Range: 10-86400
301
-# Default:
302
-# VMwarePerfFrequency=60
303
-
304
-### Option: VMwareCacheSize
305
-#	Size of VMware cache, in bytes.
306
-#	Shared memory size for storing VMware data.
307
-#	Only used if VMware collectors are started.
308
-#
309
-# Mandatory: no
310
-# Range: 256K-2G
311
-# Default:
312
-# VMwareCacheSize=8M
313
-
314
-### Option: VMwareTimeout
315
-#	Specifies how many seconds vmware collector waits for response from VMware service.
316
-#
317
-# Mandatory: no
318
-# Range: 1-300
319
-# Default:
320
-# VMwareTimeout=10
321
-
322
-### Option: SNMPTrapperFile
323
-#	Temporary file used for passing data from SNMP trap daemon to the server.
324
-#	Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
325
-#
326
-# Mandatory: no
327
-# Default:
328
-# SNMPTrapperFile=/tmp/zabbix_traps.tmp
329
-
330
-SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
331
-
332
-### Option: StartSNMPTrapper
333
-#	If 1, SNMP trapper process is started.
334
-#
335
-# Mandatory: no
336
-# Range: 0-1
337
-# Default:
338
-StartSNMPTrapper=1
339
-
340
-### Option: ListenIP
341
-#	List of comma delimited IP addresses that the trapper should listen on.
342
-#	Trapper will listen on all network interfaces if this parameter is missing.
343
-#
344
-# Mandatory: no
345
-# Default:
346
-ListenIP=0.0.0.0
347
-
348
-### Option: HousekeepingFrequency
349
-#	How often Zabbix will perform housekeeping procedure (in hours).
350
-#	Housekeeping is removing outdated information from the database.
351
-#	To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency
352
-#	hours of outdated information are deleted in one housekeeping cycle, for each item.
353
-#	To lower load on server startup housekeeping is postponed for 30 minutes after server start.
354
-#	With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.
355
-#	In this case the period of outdated information deleted in one housekeeping cycle is 4 times the
356
-#	period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.
357
-#
358
-# Mandatory: no
359
-# Range: 0-24
360
-# Default:
361
-# HousekeepingFrequency=1
362
-
363
-### Option: MaxHousekeeperDelete
364
-#	The table "housekeeper" contains "tasks" for housekeeping procedure in the format:
365
-#	[housekeeperid], [tablename], [field], [value].
366
-#	No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])
367
-#	will be deleted per one task in one housekeeping cycle.
368
-#	SQLite3 does not use this parameter, deletes all corresponding rows without a limit.
369
-#	If set to 0 then no limit is used at all. In this case you must know what you are doing!
370
-#
371
-# Mandatory: no
372
-# Range: 0-1000000
373
-# Default:
374
-# MaxHousekeeperDelete=5000
375
-
376
-### Option: CacheSize
377
-#	Size of configuration cache, in bytes.
378
-#	Shared memory size for storing host, item and trigger data.
379
-#
380
-# Mandatory: no
381
-# Range: 128K-8G
382
-# Default:
383
-# CacheSize=8M
384
-
385
-### Option: CacheUpdateFrequency
386
-#	How often Zabbix will perform update of configuration cache, in seconds.
387
-#
388
-# Mandatory: no
389
-# Range: 1-3600
390
-# Default:
391
-# CacheUpdateFrequency=60
392
-
393
-### Option: StartDBSyncers
394
-#	Number of pre-forked instances of DB Syncers.
395
-#
396
-# Mandatory: no
397
-# Range: 1-100
398
-# Default:
399
-# StartDBSyncers=4
400
-
401
-### Option: HistoryCacheSize
402
-#	Size of history cache, in bytes.
403
-#	Shared memory size for storing history data.
404
-#
405
-# Mandatory: no
406
-# Range: 128K-2G
407
-# Default:
408
-# HistoryCacheSize=16M
409
-
410
-### Option: HistoryIndexCacheSize
411
-#	Size of history index cache, in bytes.
412
-#	Shared memory size for indexing history cache.
413
-#
414
-# Mandatory: no
415
-# Range: 128K-2G
416
-# Default:
417
-# HistoryIndexCacheSize=4M
418
-
419
-### Option: TrendCacheSize
420
-#	Size of trend cache, in bytes.
421
-#	Shared memory size for storing trends data.
422
-#
423
-# Mandatory: no
424
-# Range: 128K-2G
425
-# Default:
426
-# TrendCacheSize=4M
427
-
428
-### Option: ValueCacheSize
429
-#	Size of history value cache, in bytes.
430
-#	Shared memory size for caching item history data requests.
431
-#	Setting to 0 disables value cache.
432
-#
433
-# Mandatory: no
434
-# Range: 0,128K-64G
435
-# Default:
436
-# ValueCacheSize=8M
437
-
438
-### Option: Timeout
439
-#	Specifies how long we wait for agent, SNMP device or external check (in seconds).
440
-#
441
-# Mandatory: no
442
-# Range: 1-30
443
-# Default:
444
-# Timeout=3
445
-
446
-Timeout=10
447
-
448
-### Option: TrapperTimeout
449
-#	Specifies how many seconds trapper may spend processing new data.
450
-#
451
-# Mandatory: no
452
-# Range: 1-300
453
-# Default:
454
-# TrapperTimeout=300
455
-
456
-### Option: UnreachablePeriod
457
-#	After how many seconds of unreachability treat a host as unavailable.
458
-#
459
-# Mandatory: no
460
-# Range: 1-3600
461
-# Default:
462
-# UnreachablePeriod=45
463
-
464
-### Option: UnavailableDelay
465
-#	How often host is checked for availability during the unavailability period, in seconds.
466
-#
467
-# Mandatory: no
468
-# Range: 1-3600
469
-# Default:
470
-# UnavailableDelay=60
471
-
472
-### Option: UnreachableDelay
473
-#	How often host is checked for availability during the unreachability period, in seconds.
474
-#
475
-# Mandatory: no
476
-# Range: 1-3600
477
-# Default:
478
-# UnreachableDelay=15
479
-
480
-### Option: AlertScriptsPath
481
-#	Full path to location of custom alert scripts.
482
-#	Default depends on compilation options.
483
-#
484
-# Mandatory: no
485
-# Default:
486
-# AlertScriptsPath=${datadir}/zabbix/alertscripts
487
-
488
-AlertScriptsPath=/usr/lib/zabbix/alertscripts
489
-
490
-### Option: ExternalScripts
491
-#	Full path to location of external scripts.
492
-#	Default depends on compilation options.
493
-#
494
-# Mandatory: no
495
-# Default:
496
-# ExternalScripts=${datadir}/zabbix/externalscripts
497
-
498
-ExternalScripts=/usr/lib/zabbix/externalscripts
499
-
500
-### Option: FpingLocation
501
-#	Location of fping.
502
-#	Make sure that fping binary has root ownership and SUID flag set.
503
-#
504
-# Mandatory: no
505
-# Default:
506
-# FpingLocation=/usr/sbin/fping
507
-
508
-FpingLocation=/usr/bin/fping
509
-
510
-### Option: Fping6Location
511
-#	Location of fping6.
512
-#	Make sure that fping6 binary has root ownership and SUID flag set.
513
-#	Make empty if your fping utility is capable to process IPv6 addresses.
514
-#
515
-# Mandatory: no
516
-# Default:
517
-# Fping6Location=/usr/sbin/fping6
518
-
519
-Fping6Location=/usr/bin/fping6
520
-
521
-### Option: SSHKeyLocation
522
-#	Location of public and private keys for SSH checks and actions.
523
-#
524
-# Mandatory: no
525
-# Default:
526
-# SSHKeyLocation=
527
-
528
-### Option: LogSlowQueries
529
-#	How long a database query may take before being logged (in milliseconds).
530
-#	Only works if DebugLevel set to 3, 4 or 5.
531
-#	0 - don't log slow queries.
532
-#
533
-# Mandatory: no
534
-# Range: 1-3600000
535
-# Default:
536
-# LogSlowQueries=0
537
-
538
-LogSlowQueries=3000
539
-
540
-### Option: TmpDir
541
-#	Temporary directory.
542
-#
543
-# Mandatory: no
544
-# Default:
545
-# TmpDir=/tmp
546
-
547
-### Option: StartProxyPollers
548
-#	Number of pre-forked instances of pollers for passive proxies.
549
-#
550
-# Mandatory: no
551
-# Range: 0-250
552
-# Default:
553
-# StartProxyPollers=1
554
-
555
-### Option: ProxyConfigFrequency
556
-#	How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.
557
-#	This parameter is used only for proxies in the passive mode.
558
-#
559
-# Mandatory: no
560
-# Range: 1-3600*24*7
561
-# Default:
562
-# ProxyConfigFrequency=3600
563
-
564
-### Option: ProxyDataFrequency
565
-#	How often Zabbix Server requests history data from a Zabbix Proxy in seconds.
566
-#	This parameter is used only for proxies in the passive mode.
567
-#
568
-# Mandatory: no
569
-# Range: 1-3600
570
-# Default:
571
-# ProxyDataFrequency=1
572
-
573
-### Option: AllowRoot
574
-#	Allow the server to run as 'root'. If disabled and the server is started by 'root', the server
575
-#	will try to switch to the user specified by the User configuration option instead.
576
-#	Has no effect if started under a regular user.
577
-#	0 - do not allow
578
-#	1 - allow
579
-#
580
-# Mandatory: no
581
-# Default:
582
-# AllowRoot=0
583
-
584
-### Option: User
585
-#	Drop privileges to a specific, existing user on the system.
586
-#	Only has effect if run as 'root' and AllowRoot is disabled.
587
-#
588
-# Mandatory: no
589
-# Default:
590
-# User=zabbix
591
-
592
-### Option: Include
593
-#	You may include individual files or all files in a directory in the configuration file.
594
-#	Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
595
-#
596
-# Mandatory: no
597
-# Default:
598
-# Include=
599
-
600
-# Include=/usr/local/etc/zabbix_server.general.conf
601
-# Include=/usr/local/etc/zabbix_server.conf.d/
602
-# Include=/usr/local/etc/zabbix_server.conf.d/*.conf
603
-
604
-### Option: SSLCertLocation
605
-#	Location of SSL client certificates.
606
-#	This parameter is used only in web monitoring.
607
-#
608
-# Mandatory: no
609
-# Default:
610
-# SSLCertLocation=${datadir}/zabbix/ssl/certs
611
-
612
-### Option: SSLKeyLocation
613
-#	Location of private keys for SSL client certificates.
614
-#	This parameter is used only in web monitoring.
615
-#
616
-# Mandatory: no
617
-# Default:
618
-# SSLKeyLocation=${datadir}/zabbix/ssl/keys
619
-
620
-### Option: SSLCALocation
621
-#	Override the location of certificate authority (CA) files for SSL server certificate verification.
622
-#	If not set, system-wide directory will be used.
623
-#	This parameter is used only in web monitoring and SMTP authentication.
624
-#
625
-# Mandatory: no
626
-# Default:
627
-# SSLCALocation=
628
-
629
-####### LOADABLE MODULES #######
630
-
631
-### Option: LoadModulePath
632
-#	Full path to location of server modules.
633
-#	Default depends on compilation options.
634
-#
635
-# Mandatory: no
636
-# Default:
637
-# LoadModulePath=${libdir}/modules
638
-
639
-### Option: LoadModule
640
-#	Module to load at server startup. Modules are used to extend functionality of the server.
641
-#	Format: LoadModule=<module.so>
642
-#	The modules must be located in directory specified by LoadModulePath.
643
-#	It is allowed to include multiple LoadModule parameters.
644
-#
645
-# Mandatory: no
646
-# Default:
647
-# LoadModule=
648
-
649
-####### TLS-RELATED PARAMETERS #######
650
-
651
-### Option: TLSCAFile
652
-#	Full pathname of a file containing the top-level CA(s) certificates for
653
-#	peer certificate verification.
654
-#
655
-# Mandatory: no
656
-# Default:
657
-TLSCAFile=/etc/zabbix/certs/zabbix-ca.crt
658
-
659
-### Option: TLSCRLFile
660
-#	Full pathname of a file containing revoked certificates.
661
-#
662
-# Mandatory: no
663
-# Default:
664
-# TLSCRLFile=
665
-
666
-### Option: TLSCertFile
667
-#	Full pathname of a file containing the server certificate or certificate chain.
668
-#
669
-# Mandatory: no
670
-# Default:
671
-TLSCertFile=/etc/zabbix/certs/zabbix-server.crt
672
-
673
-### Option: TLSKeyFile
674
-#	Full pathname of a file containing the server private key.
675
-#
676
-# Mandatory: no
677
-# Default:
678
-TLSKeyFile=/etc/zabbix/certs/zabbix-server.key

Loading…
Cancel
Save