|
53 | 53 | application = App-PostgresPro-<platform name>, pg-version = 10,
|
54 | 54 | Note: default pg-version is vanilla, but with PGPRO or PGEE before version number it can be changed. Supported version
|
55 | 55 | numbers are 10, 11, 9.6, 9.5
|
56 |
| -default template export for currently supported zabbix -server versions, if template for unsupported versions |
57 |
| -is needed use --old zabbix flag |
| 56 | +By default, mamonsu exports the template for Zabbix 4.4 or higher. |
| 57 | +To export a template for older Zabbix versions, use the --old-zabbix option. |
58 | 58 | Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
|
59 | 59 |
|
60 | 60 |
|
|
69 | 69 | --config <file>
|
70 | 70 | --old-zabbix
|
71 | 71 | Default template name = PostgresPro-<platform name>, application = App-PostgresPro-<platform name>
|
72 |
| -Note: default template export for currently supported zabbix -server versions, if template for unsupported versions |
73 |
| -is needed use --old zabbix flag |
| 72 | +By default, mamonsu exports the template for Zabbix 4.4 or higher. |
| 73 | +To export a template for older Zabbix versions, use the --old-zabbix option. |
74 | 74 |
|
75 | 75 |
|
76 | 76 | Bootstrap DDL for monitoring:
|
|
127 | 127 | {prog} zabbix item lastclock <host name>
|
128 | 128 |
|
129 | 129 | Export metrics to zabbix server
|
130 |
| -Command: --send-data-zabbix |
| 130 | +Command: upload |
131 | 131 | Example:
|
132 |
| - {prog} --send-data-zabbix --zabbix-file=localhost.log --zabbix-address=localhost |
| 132 | + {prog} upload --zabbix-address=localhost |
133 | 133 | Options:
|
134 | 134 | --zabbix-address <name of the Zabbix host to send metrics>
|
135 | 135 | --zabbix-port <port of Zabbix server to send metrics> by default 10051
|
136 |
| - --zabbix-file <path to file with metrics to send metrics> |
137 |
| - --zabbix-client <name of the Zabbix host to send metrics> by default localhost |
| 136 | + --zabbix-file <text file that stores the collected metric data to be visualized, such as localhost> |
| 137 | + --zabbix-client <name of the host on Zabbix Server to send metrics> |
138 | 138 | --zabbix-log-level <log level to send metrics> (INFO|DEBUG|WARN) by default INFO
|
139 | 139 | """
|
140 | 140 |
|
@@ -291,7 +291,7 @@ def parse_args():
|
291 | 291 | # name of the Zabbix host to send metrics
|
292 | 292 | parser.add_option('--zabbix-client', dest='zabbix_client', default='localhost')
|
293 | 293 | # path to file with metrics to send metrics
|
294 |
| - parser.add_option('--zabbix-file', dest='zabbix_file', default=None) |
| 294 | + parser.add_option('--zabbix-file', dest='zabbix_file', default='/var/log/mamonsu/localhost') |
295 | 295 | # log level to send metrics
|
296 | 296 | parser.add_option('--zabbix-log-level', dest='zabbix_log_level', default='INFO')
|
297 | 297 | return parser.parse_args()
|
0 commit comments