Skip to content

sergiustheblack/clickhouse-zabbix-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix template for ClickHouse

How to set up server with Zabbix agent:

  • Ensure xmllint is installed.
  • Ensure clickhouse-client is installed.
  • Clone this repo.
  • Edit /etc/zabbix/zabbix_agentd.conf. Add the following line:
	UserParameter=ch_params[*],sh /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).

image01 image02 image03 image04 image05 image06 image07 image08 image09 image10 image11

About

Zabbix template for ClickHouse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%