24
24
Command: export zabbix-parameters
25
25
Examples:
26
26
{prog} export zabbix-parameters <file>
27
- NOTE: <file> can be stated with a path, along which it will be exported
28
- EXAMPLE: /etc/zabbix/zabbix_agent.d/conf_file_name.conf
29
27
Options:
30
- --plugin-type <plugin_type> (pg, sys, all)
31
- --pg-version <pg_version>
28
+ --plugin-type <plugin_type> (pg| sys| all) by default all
29
+ --pg-version <pg_version> by default 10
32
30
--add-plugins <directory>
33
31
--config <file>
34
- Default plugin_type = all, pg-version = 10
35
- Note: default pg-version is vanilla, but with PGPRO or PGEE before version number it can be changed. Supported version
36
- numbers are 10, 11, 9.6, 9.5
37
- Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
32
+ HINT: default pg-version is vanilla, but with PGEE or PGPRO before version number it can be changed (PGEE_10). Supported version
33
+ numbers are 12, 10, 11, 9.6, 9.5
38
34
39
35
40
36
Export template for native zabbix agent:
41
37
Command: export zabbix-template
42
38
Examples:
43
39
{prog} export zabbix-template [options] <file>
44
40
Options:
45
- --template-name <template name>
46
- --plugin-type <plugin_type> (pg, sys, all)
47
- --application <application name in template>
48
- --pg-version <pg_version>
41
+ --template-name <template name> by default PostgresPro-<platform name>
42
+ --plugin-type <plugin_type> (pg| sys| all) by default all
43
+ --application <application name in template> by default App-PostgresPro-<platform name>
44
+ --pg-version <pg_version> by default 10
49
45
--add-plugins <directory>
50
46
--config <file>
51
47
--old-zabbix
52
- Default plugin_type = all, template name = PostgresPro-<platform name>,
53
- application = App-PostgresPro-<platform name>, pg-version = 10,
54
- Note: default pg-version is vanilla, but with PGPRO or PGEE before version number it can be changed. Supported version
55
- numbers are 10, 11, 9.6, 9.5
48
+ HINT: default pg-version is vanilla, but with PGEE or PGPRO before version number it can be changed (PGEE_10). Supported version
49
+ numbers are 12, 10, 11, 9.6, 9.5
56
50
By default, mamonsu exports the template for Zabbix 4.4 or higher.
57
51
To export a template for older Zabbix versions, use the --old-zabbix option.
58
- Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
59
52
60
53
61
54
Export zabbix template with additional plugins included in config file:
64
57
{prog} export template [options] <file>
65
58
Options:
66
59
--add-plugins <directory>
67
- --template-name <template name>
68
- --application <application name in template>
60
+ --template-name <template name> by default PostgresPro-<platform name>
61
+ --application <application name in template> by default App-PostgresPro-<platform name>
69
62
--config <file>
70
63
--old-zabbix
71
- Default template name = PostgresPro-<platform name>, application = App-PostgresPro-<platform name>
72
- By default, mamonsu exports the template for Zabbix 4.4 or higher.
64
+ HINT: By default, mamonsu exports the template for Zabbix 4.4 or higher.
73
65
To export a template for older Zabbix versions, use the --old-zabbix option.
74
66
75
67
76
68
Bootstrap DDL for monitoring:
77
69
Command: bootstrap
78
70
Examples:
79
71
{prog} bootstrap -M <mamonsu_username>
80
- HINT: -M <mamonsu_username> is used to assign ownership of bootstap queries
72
+ HINT: -M <mamonsu_username> is used to assign ownership of bootstrap queries
81
73
Options:
82
74
-p, --port <PGPORT>
83
75
-W <PGPASSWORD>
88
80
89
81
Information about working mamonsu:
90
82
Command: agent
91
- Options:
92
- -c, --config <file>
93
83
Examples:
94
84
{prog} agent version
95
85
{prog} agent metric-list
96
86
{prog} agent metric-get <metric key>
87
+ Options:
88
+ -c, --config <file>
89
+
97
90
98
91
99
92
Zabbix API toolbox:
100
93
Command: zabbix
101
- Options:
102
- --url=http://zabbix/web/face
103
- --user=WebUser
104
- --password=WebPassword
105
- Examples:
94
+ Usage:
106
95
{prog} zabbix template list
107
96
{prog} zabbix template show <template name>
108
97
{prog} zabbix template id <template name>
125
114
{prog} zabbix item error <host name>
126
115
{prog} zabbix item lastvalue <host name>
127
116
{prog} zabbix item lastclock <host name>
128
-
117
+ Options:
118
+ --url=http://zabbix/web/face
119
+ --user=WebUser
120
+ --password=WebPassword
121
+
129
122
Export metrics to zabbix server
130
123
Command: upload
131
124
Example:
144
137
Report about hardware and software:
145
138
Command: report
146
139
Options:
147
- --run-system
148
- --run-postgres
140
+ --run-system=Boolean by default True
141
+ --run-postgres=Boolean by default True
149
142
--host <PGHOST>
150
143
--port <PGPORT>
144
+ --disable-sudo
151
145
-W <PGPASSWORD>
152
146
-d, --dbname <DBNAME>
153
147
-U, --username <USERNAME>
154
148
-r, --print-report
155
149
-w, --report-path <path to file>
150
+
156
151
157
152
158
153
AutoTune config and system:
159
154
Command: tune
160
155
Options:
161
- -l, --log-level INFO|DEBUG|WARN
156
+ -l, --log-level ( INFO|DEBUG|WARN) by default INFO
162
157
--dry-run
163
158
--disable-sudo
164
159
--dont-tune-pgbadger
171
166
AutoTune config and system:
172
167
Command: tune
173
168
Options:
174
- -l, --log-level INFO|DEBUG|WARN
169
+ -l, --log-level ( INFO|DEBUG|WARN) by default INFO
175
170
--dry-run
176
171
--dont-tune-pgbadger
177
172
--dont-reload-postgresql
@@ -187,17 +182,17 @@ class MissOptsParser(OptionParser):
187
182
188
183
def print_help (self ):
189
184
print ("""
190
- Options:
191
- -c, --config <file>
192
- -p, --pid <pid-file>
193
- -t, --template-name <template name>
194
- -a, --add-plugins <directory>
185
+
195
186
196
187
Export example config with default variables:
197
188
Command: export
198
189
Examples:
199
- {prog} export config <file>
200
- --add-plugins <directory>
190
+ {prog} export config <file> --add-plugins <directory>
191
+ Options:
192
+ -c, --config <file>
193
+ -p, --pid <pid-file>
194
+ -t, --template-name <template name> by default PostgresPro-<platform name>
195
+ -a, --add-plugins <directory>
201
196
202
197
203
198
Export zabbix template with additional plugins included in config file:
@@ -206,8 +201,8 @@ def print_help(self):
206
201
{prog} export template <file>
207
202
Options:
208
203
--config <file>
209
- --template-name <template name>
210
- --application <application name in template>
204
+ --template-name <template name> by default PostgresPro-<platform name>
205
+ --application <application name in template> by default App-PostgresPro-<platform name>
211
206
--add-plugins <directory>
212
207
213
208
@@ -216,18 +211,20 @@ def print_help(self):
216
211
Examples:
217
212
{prog} export zabbix-parameters <file>
218
213
Options:
219
- --pg-version <pg_version>
214
+ --pg-version <pg_version> by default 10
220
215
--config <file>
221
216
--add-plugins <directory>
217
+ HINT: default pg-version is vanilla, but with PGEE or PGPRO before version number it can be changed (PGEE_10). Supported version
218
+ numbers are 12, 10, 11, 9.6, 9.5
222
219
223
220
224
221
Export template for native zabbix agent:
225
222
Command: export zabbix-template
226
223
Examples:
227
224
{prog} export zabbix-template <file>
228
225
Options:
229
- --template-name <template name>
230
- --application <application name in template>
226
+ --template-name <template name> by default PostgresPro-<platform name>
227
+ --application <application name in template> by default App-PostgresPro-<platform name>
231
228
--config <file>
232
229
--add-plugins <directory>
233
230
0 commit comments