-
Notifications
You must be signed in to change notification settings - Fork 1
/
bareos-zabbix.conf.example
56 lines (39 loc) · 1.34 KB
/
bareos-zabbix.conf.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
### BAREOS CONFIG ###
# see https://github.com/appsinet/bareos-zabbix
# Use 'M' for MySQL
# Use 'P' for PostgreSQL
bareosDbSgdb='P'
# IP address or FQDN of database server
bareosDbAddr='127.0.0.1'
# TCP port of database server
bareosDbPort='5432'
# Name of the database used by Bareos
bareosDbName='bareos'
# User used by Bareos on it's database
bareosDbUser='bareos'
# Password used by Bareos on it's database
bareosDbPass='password'
### ZABBIX CONFIG ###
# Path to zabbix_sender command
zabbixSender="/usr/bin/zabbix_sender"
# uncomment if you want trace arguments
# zabbixSender="$(dirname $0)/zabbix_sender_debug"
# Get connection properies from zabbix_agentd.conf
zabbixSenderCmd="$zabbixSender -c /etc/zabbix/zabbix_agentd.conf"
# Or specify properties manual
# # IP address or FQDN of Zabbix server
# zabbixSrvAddr='127.0.0.1'
#
# # TCP port of Zabbix server
# zabbixSrvPort='10051'
#
# # Name of host in zabbix
# zabbixAgentHostname='bareos-server'
# zabbixSenderCmd="$zabbixSender -z $zabbixSrvAddr -p $zabbixSrvPort -s $zabbixAgentHostname"
case $bareosDbSgdb in
P)
export PGPASSWORD=$bareosDbPass
sql="/usr/bin/psql -h$bareosDbAddr -p$bareosDbPort -U$bareosDbUser -d$bareosDbName -At -c" ;;
M) sql="/usr/bin/mysql -N -B -h$bareosDbAddr -P$bareosDbPort -u$bareosDbUser -p$bareosDbPass -D$bareosDbName -e" ;;
*) exit 7 ;;
esac