https://github.com/altinity/clickhouse-zabbix-template
Zabbix template for ClickHouse
https://github.com/altinity/clickhouse-zabbix-template
Last synced: 8 months ago
JSON representation
Zabbix template for ClickHouse
- Host: GitHub
- URL: https://github.com/altinity/clickhouse-zabbix-template
- Owner: Altinity
- License: mit
- Created: 2018-07-16T09:51:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T08:21:03.000Z (almost 4 years ago)
- Last Synced: 2024-04-30T10:26:00.038Z (almost 2 years ago)
- Language: Shell
- Size: 3.72 MB
- Stars: 42
- Watchers: 7
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zabbix template for ClickHouse
Required Zabbix Server version - 3.4+
For zabbix 5.0+ please use [official Zabbix ClickHouse integration used http_agent](https://www.zabbix.com/integrations/clickhouse)
How to set up server with Zabbix agent:
* Ensure `xmllint` is installed
- for Debian\Ubuntu `apt-get install -y libxml2-utils`
- for CentOS / Fedora `yum install -y libxml2`
- for OpenSUSE `yum install -y libxml2-tools`
* Ensure `clickhouse-client` is installed and allow access to monitored ClickHouse server
- https://clickhouse.tech/docs/en/getting_started/install/
* Clone this repo.
* Edit `/etc/zabbix/zabbix_agentd.conf`. Add the following line:
```bash
UserParameter=ch_params[*],bash /PATH/TO/zbx_clickhouse_monitor.sh "$1" "HOST_WHERE_CH_IS_RUNNING" "ADDITIONAL CLICKHOUSE-CLIENT PARAMS"
```
where:
* `/PATH/TO/zbx_clickhouse_monitor.sh` depends on where you've cloned this repo.
* `HOST_WHERE_CH_IS_RUNNING` is optional parameter, in case none specified `localhost` would be used
* `ADDITIONAL CLICKHOUSE-CLIENT PARAMS` is optional string appended to any clickhouse-client call. Useful if authorization or ssl required
And finally
* Import `zbx_clickhouse_template.xml` in zabbix (**zabbix -> Configuration -> Templates -> Import**).





