2424Command: export zabbix-parameters
2525Examples:
2626 {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
2927Options:
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
3230 --add-plugins <directory>
3331 --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
3834
3935
4036Export template for native zabbix agent:
4137Command: export zabbix-template
4238Examples:
4339 {prog} export zabbix-template [options] <file>
4440Options:
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
4945 --add-plugins <directory>
5046 --config <file>
5147 --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
5650By default, mamonsu exports the template for Zabbix 4.4 or higher.
5751To export a template for older Zabbix versions, use the --old-zabbix option.
58- Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
5952
6053
6154Export zabbix template with additional plugins included in config file:
6457 {prog} export template [options] <file>
6558Options:
6659 --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>
6962 --config <file>
7063 --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.
7365To export a template for older Zabbix versions, use the --old-zabbix option.
7466
7567
7668Bootstrap DDL for monitoring:
7769Command: bootstrap
7870Examples:
7971 {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
8173Options:
8274 -p, --port <PGPORT>
8375 -W <PGPASSWORD>
8880
8981Information about working mamonsu:
9082Command: agent
91- Options:
92- -c, --config <file>
9383Examples:
9484 {prog} agent version
9585 {prog} agent metric-list
9686 {prog} agent metric-get <metric key>
87+ Options:
88+ -c, --config <file>
89+
9790
9891
9992Zabbix API toolbox:
10093Command: zabbix
101- Options:
102- --url=http://zabbix/web/face
103- --user=WebUser
104- --password=WebPassword
105- Examples:
94+ Usage:
10695 {prog} zabbix template list
10796 {prog} zabbix template show <template name>
10897 {prog} zabbix template id <template name>
125114 {prog} zabbix item error <host name>
126115 {prog} zabbix item lastvalue <host name>
127116 {prog} zabbix item lastclock <host name>
128-
117+ Options:
118+ --url=http://zabbix/web/face
119+ --user=WebUser
120+ --password=WebPassword
121+
129122Export metrics to zabbix server
130123Command: upload
131124Example:
144137Report about hardware and software:
145138Command: report
146139Options:
147- --run-system
148- --run-postgres
140+ --run-system=Boolean by default True
141+ --run-postgres=Boolean by default True
149142 --host <PGHOST>
150143 --port <PGPORT>
144+ --disable-sudo
151145 -W <PGPASSWORD>
152146 -d, --dbname <DBNAME>
153147 -U, --username <USERNAME>
154148 -r, --print-report
155149 -w, --report-path <path to file>
150+
156151
157152
158153AutoTune config and system:
159154Command: tune
160155Options:
161- -l, --log-level INFO|DEBUG|WARN
156+ -l, --log-level ( INFO|DEBUG|WARN) by default INFO
162157 --dry-run
163158 --disable-sudo
164159 --dont-tune-pgbadger
171166AutoTune config and system:
172167Command: tune
173168Options:
174- -l, --log-level INFO|DEBUG|WARN
169+ -l, --log-level ( INFO|DEBUG|WARN) by default INFO
175170 --dry-run
176171 --dont-tune-pgbadger
177172 --dont-reload-postgresql
@@ -187,17 +182,17 @@ class MissOptsParser(OptionParser):
187182
188183 def print_help (self ):
189184 print ("""
190- Options:
191- -c, --config <file>
192- -p, --pid <pid-file>
193- -t, --template-name <template name>
194- -a, --add-plugins <directory>
185+
195186
196187Export example config with default variables:
197188Command: export
198189Examples:
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>
201196
202197
203198Export zabbix template with additional plugins included in config file:
@@ -206,8 +201,8 @@ def print_help(self):
206201 {prog} export template <file>
207202Options:
208203 --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>
211206 --add-plugins <directory>
212207
213208
@@ -216,18 +211,20 @@ def print_help(self):
216211Examples:
217212 {prog} export zabbix-parameters <file>
218213Options:
219- --pg-version <pg_version>
214+ --pg-version <pg_version> by default 10
220215 --config <file>
221216 --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
222219
223220
224221Export template for native zabbix agent:
225222Command: export zabbix-template
226223Examples:
227224 {prog} export zabbix-template <file>
228225Options:
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>
231228 --config <file>
232229 --add-plugins <directory>
233230
0 commit comments