Repository is archived
No commit activity in last 3 years
No release in over 3 years
Fluentd input plugin for Zabbix agent.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
>= 3.0.0
>= 3.1.0

Runtime

 Project Readme

fluent-plugin-zabbix-agent

Fluentd input plugin for Zabbix agent.

It gets items of zabbix using passive check.

Gem Version Build Status

Installation

Add this line to your application's Gemfile:

gem 'fluent-plugin-zabbix-agent'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fluent-plugin-zabbix-agent

Configuration

<source>
  type zabbix_agent

  #agent_host 127.0.0.1
  #agent_port 10050
  #interval 60
  #tag zabbix.item
  #item_key_key key
  #item_value_key value
  #extra {}
  #bulk false
  #allow_items_empty false
  #include_hostname false
  #hostname_key hostname

  items {
    "system.cpu.load[all,avg1]": "load_avg1",
    "system.cpu.load[all,avg5]": "load_avg5",
    ...
  }
  # or
  #items_file /path/to/items.json
  # or
  #items_file /path/to/conf.d/items-*.json
  # or
  #items_file http://path/to/items.json
</source>

Usage

Get zabbix items as multiple records

<source>
  type zabbix_agent
  extra {"hostname", "my-host"}
  items {
    "system.cpu.load[all,avg1]": "load_avg1",
    "system.cpu.load[all,avg5]": null
  }
</source>
2015-01-02 12:30:40 +0000 zabbix.item: {"key":"load_avg1","value":0.0,"hostname":"my-host"}
2015-01-02 12:30:40 +0000 zabbix.item: {"key":"system.cpu.load[all,avg5]","value":0.01,"hostname":"my-host"}

Get zabbix items as a single record

<source>
  type zabbix_agent
  extra {"hostname", "my-host"}
  bulk true
  items {
    "system.cpu.load[all,avg1]": "load_avg1",
    "system.cpu.load[all,avg5]": null
  }
</source>
2015-01-02 12:30:40 +0000 zabbix.item: {"load_avg1":0.06,"system.cpu.load[all,avg5]":0.03,"hostname":"my-server"}

Hash record key

<source>
  type zabbix_agent
  extra {"hostname", "my-host"}
  items {
    "system.cpu.load[all,avg1]": {"name": "load_avg1", "source": "all"}
  }
</source>
2015-01-02 12:30:40 +0000 zabbix.item: {"name":"load_avg1","source":"all","value":0.0,"hostname":"my-host"}