All Projects → zensqlmonitor → influxdb-zabbix

zensqlmonitor / influxdb-zabbix

Licence: MIT License
Gather data from Zabbix back-end and load to InfluxDB in near real-time for enhanced performance and easier usage with Grafana.

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to influxdb-zabbix

Awesome Monitoring
INFRASTRUCTURE、OPERATION SYSTEM and APPLICATION monitoring tools for Operations.
Stars: ✭ 356 (+415.94%)
Mutual labels:  influxdb, zabbix
effluence
Zabbix loadable module for real-time export of history to InfluxDB
Stars: ✭ 26 (-62.32%)
Mutual labels:  influxdb, zabbix
monitor system docs
No description or website provided.
Stars: ✭ 30 (-56.52%)
Mutual labels:  influxdb, zabbix
docker-internet-speedtest-dashboard
Docker based Internet Speedtest Dashboard powered by InfluxDB, Chronograf, and Speedtest-CLI
Stars: ✭ 15 (-78.26%)
Mutual labels:  influxdb
terraform-provider-influxdb
Terraform InfluxDB provider
Stars: ✭ 19 (-72.46%)
Mutual labels:  influxdb
darksky2influxdb
Stores wheather forcecast data from darkskyapi into a influxdb database
Stars: ✭ 21 (-69.57%)
Mutual labels:  influxdb
zabbix-module-sockets
A Zabbix loadable module to monitor Linux Sockets
Stars: ✭ 16 (-76.81%)
Mutual labels:  zabbix
tilt-pitch
Simple replacement for the Tilt Hydrometer mobile apps and TiltPi with lots of features
Stars: ✭ 32 (-53.62%)
Mutual labels:  influxdb
webperf-dashboard
Web Performance Dashboard forked from https://github.com/boyney123/garie
Stars: ✭ 51 (-26.09%)
Mutual labels:  influxdb
shell-scripts
my-scripts
Stars: ✭ 87 (+26.09%)
Mutual labels:  zabbix
zabbixapi-php
Zabbix API client for PHP with session cache and SSL management
Stars: ✭ 32 (-53.62%)
Mutual labels:  zabbix
zenit
Zenit is a daemon collector for metrics and log parsers for any MySQL variant and ProxySQL
Stars: ✭ 24 (-65.22%)
Mutual labels:  influxdb
zabbix-review-export-import
Clone of zabbix-review-export with added import object(s) feature
Stars: ✭ 36 (-47.83%)
Mutual labels:  zabbix
hastic
Hastic standalone
Stars: ✭ 37 (-46.38%)
Mutual labels:  influxdb
rtl433 influx
dump everything your rtl-sdr receives on 433MHz into an InfluxDB for easy graphing -- superseded by `rtl433 -F influx`
Stars: ✭ 27 (-60.87%)
Mutual labels:  influxdb
commonpp
Small library helping you with basic stuff like getting metrics out of your code, thread naming, etc.
Stars: ✭ 29 (-57.97%)
Mutual labels:  influxdb
histou
Adds templates to Grafana in combination with nagflux
Stars: ✭ 33 (-52.17%)
Mutual labels:  influxdb
unifiZabbix
Zabbix templates to monitor pretty much all Unifi devices
Stars: ✭ 66 (-4.35%)
Mutual labels:  zabbix
ZbxWallboard
Wallboard with active triggers/problems of Zabbix Monitoring
Stars: ✭ 17 (-75.36%)
Mutual labels:  zabbix
zabbix-monitor
monitor system based on zabbix API pyzaabix grafana
Stars: ✭ 70 (+1.45%)
Mutual labels:  zabbix

influxdb-zabbix

Gather data from Zabbix back-end and load to InfluxDB in near real-time for enhanced performance and easier usage with Grafana.

As InfluxDB provides an excellent compression rate (in our case: 7x), this project could be used also to archive Zabbix data.

Getting Started

  • InfluxDB:

  • Grafana:

  • influxdb-zabbix:

  • PostgreSQL:

    Create user:

     CREATE USER influxdb_zabbix WITH PASSWORD '***';
     GRANT USAGE ON SCHEMA public TO influxdb_zabbix;

    Grants at the database level:

     GRANT SELECT ON public.history, public.history_uint TO influxdb_zabbix;
     GRANT SELECT ON public.trends, public.trends_uint TO influxdb_zabbix;
     GRANT SELECT ON public.applications TO influxdb_zabbix;
     GRANT SELECT ON public.items TO influxdb_zabbix;
     GRANT SELECT ON public.hosts TO influxdb_zabbix;
     GRANT SELECT ON public.hosts_groups TO influxdb_zabbix;
     GRANT SELECT ON public.hstgrp TO influxdb_zabbix;
     GRANT SELECT ON public.items_applications TO influxdb_zabbix;

    Create indexes:

     CREATE UNIQUE INDEX idx_history_clock_ns_itemid
     	ON public.history USING btree (clock)
     	TABLESPACE zabbixindex;
    
     CREATE UNIQUE INDEX idx_history_uint_clock_ns_itemid
     	ON public.history_uint USING btree (clock)
     	TABLESPACE zabbixindex;
    
     CREATE INDEX idx_trends_clock_itemid
     	ON public.trends USING btree (clock)
     	TABLESPACE zabbixindex;
    
     CREATE INDEX idx_trends_uint_clock_itemid
     	ON public.trends_uint USING btree (clock)
     	TABLESPACE zabbixindex;
  • MariaDB / MySQL:

    Create user:

     CREATE USER 'influxdb_zabbix'@'localhost' IDENTIFIED BY '***';

    Grants at the database level:

     GRANT SELECT ON zabbix.trends TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.trends_uint TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.history TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.history_uint TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.applications TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.items TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.hosts TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.hosts_groups TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.hstgrp TO influxdb_zabbix@localhost;
     GRANT SELECT ON zabbix.items_applications TO influxdb_zabbix@localhost;
     
     flush privileges;

    Create indexes:

     CREATE UNIQUE INDEX idx_history_clock_ns_itemid
     	ON history (clock) USING btree;
    
     CREATE UNIQUE INDEX idx_history_uint_clock_ns_itemid
     	ON history_uint (clock) USING btree;
    
     CREATE INDEX idx_trends_clock_itemid
     	ON trends (clock) USING btree;
    
     CREATE INDEX idx_trends_uint_clock_itemid
     	ON trends_uint (clock) USING btree;

    NB: For trends_* tables we can use pt-online-schema-change for online index create without lock, but for history_* tables we can only use create index, because primary key for these tables does not exist.

How to use GO code

  • Run in background: go run influxdb-zabbix.go &
  • Build in the current directory: go build influxdb-zabbix.go
  • Install in $GOPATH/bin: go install influxdb-zabbix.go

Goodies

Have a look to the scripts folder

Dependencies

Configuration: influxdb-zabbix.conf

  • PostgreSQL and MariaDB/MySQL supported.

  • Tables that can be replicated are:

    • history
    • history_uint
    • trends
    • trends_uint
  • Tables like history_log, _text and _str are not replicated.

  • Configurable at table-level:

    • interval: polling interval, minimum of 15 sec
    • hours per batch : number of hours/batch to extract from zabbix backend
    • output rows per batch : allow the destination load to be splitted in multiple batches

License

MIT-LICENSE. See LICENSE file provided in the repository for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].