Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fluentd out plugin to zabbix

branch: master

v0.0.2

latest commit 8a4df9af0f
FUJIWARA Shunichiro authored January 21, 2014
Octocat-spinner-32 lib add config_param 'host_key' January 21, 2014
Octocat-spinner-32 test add config_param 'host_key' January 21, 2014
Octocat-spinner-32 .gitignore remove backup files April 14, 2012
Octocat-spinner-32 Gemfile initial setup April 14, 2012
Octocat-spinner-32 LICENSE initial setup April 14, 2012
Octocat-spinner-32 README.rdoc add config_param 'host_key' January 21, 2014
Octocat-spinner-32 Rakefile working now April 14, 2012
Octocat-spinner-32 fluent-plugin-zabbix.gemspec v0.0.2 January 21, 2014
README.rdoc

fluent-plugin-zabbix

Component

ZabbixOutput

Plugin to output values to Zabbix server.

Configuration

ZabbixOutput

Zabbix configuration of Item:

Key: metrics.field1
Type: Zabbix trapper

Key: metrics.field2
Type: Zabbix trapper

For messages such as:

tag:metrics {"metrics.field1":300, "metrics.field2":20}

<match metrics>
  type zabbix
  zabbix_server 192.168.0.1
  port          10051
  host          client-hostname
  name_keys     metrics.field1,metrics.field2
</match>

or, use “add_keys_prefix”

tag:metrics {"field1":300, "field2":20}

<match metrics>
  type zabbix
  zabbix_server     192.168.0.1
  port              10051
  host              client-hostname
  add_key_prefix    metrics
  name_key_pattern  ^field
</match>

If you want to specify the host(on zabbix) from record's value, use “host_key” directive.

tag:metrics {"zabbix_host":"myhostname", "metrics.field1":300, "metrics.field2":20}

<match metrics>
  type zabbix
  zabbix_server 192.168.0.1
  host_key      zabbix_host
  name_keys     metrics.field1,metrics.field2
</match>

TODO

  • patches welcome!

Copyright

Copyright

Copyright © 2012- FUJIWARA Shunichiro

License

Apache License, Version 2.0

Something went wrong with that request. Please try again.