No commit activity in last 3 years
No release in over 3 years
Norikra listener plugin to send performance data for Zabbix.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Norikra::Listener::Zabbix

Build Status Coverage Status

Description

Norikra listener plugin to send performance data for Zabbix.

Installation

gem install norikra-listener-zabbix

Usage

Add your query with group ZABBIX(zabbix_server[:port=10051],zabbix_host[,preifx_item_key]).

Examples

SELECT sum(foo) AS sum, avg(foo) AS avg FROM test_table.win:time_batch(1 min)
-- group ZABBIX(localhost, zabbix host, foo.bar)

Send data sum and avg to item key foo.bar.sum, foo.bar.avg.

SELECT sum(foo) AS `bar$foo$sum`, avg(foo) AS `bar$foo$avg` FROM test_table.win:time_batch(1 min)
-- group ZABBIX(localhost, zabbix host)

Send data sum and avg to item key bar.foo.sum, bar.foo.avg.
Replace $ with ..

Identifiers cannot contain the "." (dot) character, i.e. "vol.price" is not a valid identifier for the rename syntax.

See: 5.3.4. Renaming event properties

SELECT sum(foo) AS sum, avg(foo) AS avg FROM test_table.win:time_batch(1 min)
-- group ZABBIX([::1], zabbix host)

IPv6 syntax [IPADDR]:PORT.

Zabbix Items

  • Key: foo.bar.avg
  • Type: Zabbix trapper
  • Type of information: Numeric (float)

Test

rake [LOGLEVEL=ERROR]
rake LOGLEVEL=DEBUG

Set loglevel as DEBUG.

Misc

Many codes was copied from fujiwara/fluent-plugin-zabbix.

License

GPLv2