forked from saltstack-formulas/zabbix-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
115 lines (106 loc) · 2.88 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
zabbix:
# Overrides map.jinja
#lookup:
# agent:
# version: xxx
# frontend:
# version: xxx
# server:
# version: xxx
# The files_switch key serves as a selector for alternative directories under
# the formula files directory. See TOFS pattern doc for more info.
files_switch:
- id
- os_family
# Zabbix user has to be member of some groups in order to have permissions to
# execute or read some things
user_groups:
- adm
zabbix-agent:
server:
- localhost
serveractive:
- localhost
listenip: 0.0.0.0
listenport: 10050
hostmetadata: c9767034-22c6-4d3d-a886-5fcaf1386b77
# For zabbix-agent below version 3 if you want to use syslog instead of file specify
# logfile: syslog
logfile: /var/log/zabbix/zabbix_agentd.log
logfilesize: 0
include: /etc/zabbix/zabbix_agentd.d/
# Or multiple "Include" options
includes:
- /etc/zabbix/zabbix_agentd.d/
- /some/custom/location/
userparameters:
- net.ping[*],/usr/bin/fping -q -c3 $1 2>&1 | sed 's,.*/\([0-9.]*\)/.*,\1,'
- custom.vfs.dev.discovery,/usr/local/bin/dev-discovery.sh
extra_conf: |
# Here we can set extra agent configuration lines
zabbix-server:
listenip: 0.0.0.0
listenport: 10051
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpass: zabbixpass
extra_conf: |
# Here we can set extra server configuration lines
zabbix-mysql:
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpassword: zabbixpass
dbuser_host: '%'
# Optionally specify this for a non-local dbhost
#dbroot_user: 'root'
#dbroot_pass: 'rootpass'
zabbix-frontend:
dbtype: MYSQL
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpassword: zabbixpass
zbxserver: localhost
zbxserverport: 10051
zbxservername: 'Zabbix installed with saltstack'
zabbix-proxy:
proxymode: 0
server: localhost
serverport: 10051
hostname: localhost
hostnameitem: system.hostname
listenport: 10051
sourceip: 127.0.0.1
logfile: syslog
logfilesize: 0
debugelevel: 3
pidfile: /tmp/zabbix_proxy.pid
dbhost: localhost
dbname: /var/lib/zabbix/zabbix_proxy.db
dbuser: zabbix
include: /etc/zabbix/zabbix_proxy.d/
# Example with PostgreSQL on Debian 9
# Installation with PostgreSQL will likely not work with Zabbix version below 3.0
zabbix:
lookup:
version_repo: 3.4
agent:
version: '1:3.4.*'
frontend:
version: '1:3.4.*'
dbtype: POSTGRESQL
# you need to override default package list
server:
version: '1:3.4.*'
pkgs:
- zabbix-server-pgsql
- zabbix-get
# unset dbsocket, it's not used with PostgreSQL
dbsocket: ""
zabbix-pgsql:
# By default SQL dump provided by Zabbix package will be used, but you can
# put your own dump in corresponding directory (consult with TOFS_pattern.md)
# and specify path in sql_file param
sql_file: /usr/share/doc/zabbix-server-pgsql/custom.sql.gz