Repository is archived
No commit activity in last 3 years
No release in over 3 years
Fluentd output plugin to post message to xymon
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
>= 0

Runtime

 Project Readme

fluent-plugin-xymon

Fluentd output plugin to post message to xymon

Installation

Install gem

fluent-gem install fluent-plugin-xymon

config

    config_param :xymon_server, :string
    config_param :xymon_port, :string, :default => '1984'
    config_param :color, :string, :default => 'green'
    config_param :hostname, :string
    config_param :testname, :string
    config_param :name_key, :string
    config_param :custom_determine_color_code, :string, :default => nil

example

<store>
  type xymon
  xymon_server                127.0.0.1
  xymon_port                  1984
  color                       green
  hostname                    web-server-01
  testname                    CPU
  name_key                    CPUUtilization
  custom_determine_color_code if value.to_i > 90; 'red'; else 'green'; end
</store>

config_param :custom_determine_color_code

set ruby code of determinate color to custom_determine_color_code.

Parameter

time, record, value

Example

everytime 'green'

custom_determine_color_code return 'green'

if value > 90 then 'red' else 'green'

custom_determine_color_code if  value > 90; 'red'; else 'green'; end

config_param :color

ignore :color if custom_determine_color_code is exist and valid. use :color if custom_determine_color_code is noting or invalid

If raise some exception

server didn't respond

  • use config color value
  • write warn log

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

releases

  • 2013/08/09 0.0.0 1st release
  • 2013/08/10 0.0.1 #1