forked from unioslo/zabbix-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzabbix-cli.conf
130 lines (110 loc) · 3.93 KB
/
zabbix-cli.conf
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
;
; Authors:
; [email protected] / http://www.postgresql.org.es/
;
; Copyright (c) 2014-2016 USIT-University of Oslo
;
; This file is part of Zabbix-CLI
; https://github.com/rafaelma/zabbix-cli
;
; Zabbix-cli is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; Zabbix-cli is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Zabbix-CLI. If not, see <http://www.gnu.org/licenses/>.
;
; Zabbix-cli uses a multilevel configuration approach to implement a
; flexible configuration system.
;
; Zabbix-cli will check these configuration files if they exist and
; will merge the information to get the configuration to use.
;
; 1. /usr/share/zabbix-cli/zabbix-cli.fixed.conf
; 2. /etc/zabbix-cli/zabbix-cli.fixed.conf
; 3. Configuration file defined with the parameter -c / --config when executing zabbix-cli
; 4. $HOME/.zabbix-cli/zabbix-cli.conf
; 5. /etc/zabbix-cli/zabbix-cli.conf
; 6. /usr/share/zabbix-cli/zabbix-cli.conf
;
; Check the documentation for full details on how to configurate the
; system.
;
; ######################
; Zabbix API section
; ######################
[zabbix_api]
; Zabbix API URL without /api_jsonrpc.php
; NB: http does not work, and does so in unexpected ways (with json parse error)
;zabbix_api_url=https://zabbix.example.net/zabbix
; ############################
; zabbix_config section
; ############################
[zabbix_config]
; system ID. This ID will be use in the zabbix-cli prompt
; to identify the system we are connected to.
; Default: zabbix-ID
;system_id=Test
; Default hostgroup. We need a default hostgroup when
; creating a host.
; Default: All-hosts
default_hostgroup=All-hosts
; Default admin usergroup/s(root). We need a default Admin usergroup when
; creating a hostgroup to get the right privileges in place.
; Default: Zabbix-root
default_admin_usergroup=Zabbix-root
; Default usergroup. We need a default usergroup/s when
; creating a user to get the default access in place.
; Default: All-users
default_create_user_usergroup=All-users
; Default notification usergroup. We need a default notification usergroup when
; creating a notification user to get the default access in place.
; Default: All-notification-users
default_notification_users_usergroup=All-notification-users
; Default directory to save exported configuration files.
; Default: $HOME/zabbix_exports
; default_directory_exports=
; Default export format.
; default_export_format: JSON, XML
; Default: XML
; default_export_format=XML
;
; We deactivate this parameter until
; https://support.zabbix.com/browse/ZBX-10607 gets fixed.
; We use XML as the export format.
; Include timestamp in export filenames
; include_timestamp_export_filename: ON, OFF
; Default: ON
include_timestamp_export_filename=ON
; Use colors when showing alarm information
; use_colors: ON, OFF
; Default: ON
use_colors=ON
; Generate a file $HOME/.zabbix-cli_auth_token with the API-token
; delivered by the API after the last authentication of a user. If
; this file exists and the token is still active, the user would not
; have to write the username/password to login
; use_auth_token_file: ON,OFF
; Default: OFF
use_auth_token_file=OFF
; ######################
; Logging section
; ######################
[logging]
; The user running zabbix-cli has to have RW access to log_file if
; logging is active
; Logging: ON, OFF
; Default: OFF
logging=OFF
; Log level: DEBUG, INFO, WARN, ERROR, CRITICAL
; Default: ERROR
log_level=INFO
; Log file used by zabbix-cli
; Default: /var/log/zabbix-cli/zabbix-cli.log
;log_file=/var/log/zabbix-cli/zabbix-cli.log