fluent-plugin-nsca 0.0.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
7
+
8
+ script: bundle exec rake test
data/README.md CHANGED
@@ -53,7 +53,7 @@ Specify `type nsca` in the `match` section.
53
53
  ### Check payload
54
54
 
55
55
  A service check for the NSCA server
56
- comprises the following four fields.
56
+ comprises the following fields.
57
57
 
58
58
  * Host name
59
59
  * The name of the monitored host.
@@ -72,9 +72,6 @@ comprises the following four fields.
72
72
  * A description of the service status.
73
73
  * Limited to the maximum 512 bytes.
74
74
 
75
- The destination of checks
76
- are identified by the pair of the host name and the service description.
77
-
78
75
  #### Host name
79
76
 
80
77
  The host name is determined as below.
@@ -229,7 +226,7 @@ For example:
229
226
  type nsca
230
227
  ...snip...
231
228
  buffer_type file
232
- buffer_path /var/lib/td-agent/buffer/ddos
229
+ buffer_path /var/lib/fluentd/buffer/ddos
233
230
  flush_interval 0.1
234
231
  try_flush_interval 0.1
235
232
  </match>
@@ -289,7 +286,7 @@ https://github.com/tagomoris/fluent-plugin-datacounter),
289
286
  [fluent-plugin-record-reformer](
290
287
  https://github.com/sonots/fluent-plugin-record-reformer),
291
288
  and of course `fluent-plugin-nsca`.
292
- So, first of all, install those gems.
289
+ So, first of all, install the gems of those plugins.
293
290
 
294
291
  Next, add these lines to the Fluentd configuration file.
295
292
 
@@ -302,7 +299,7 @@ Next, add these lines to the Fluentd configuration file.
302
299
 
303
300
  # The paths vary by setup
304
301
  path /var/log/httpd/access_log
305
- pos_file /var/log/fluentd/httpd-access_log.pos
302
+ pos_file /var/lib/fluentd/pos/httpd-access_log.pos
306
303
  </source>
307
304
 
308
305
  # Count 5xx errors per minute
@@ -330,7 +327,7 @@ Next, add these lines to the Fluentd configuration file.
330
327
  type nsca
331
328
  server 192.168.42.210
332
329
  port 5667
333
- # Empty password!
330
+ password peng!
334
331
 
335
332
  host_name web
336
333
  service_description server_errors
@@ -342,22 +339,21 @@ You can use `record_transformer` filter
342
339
  instead of `fluent-plugin-record-reformer`
343
340
  on Fluentd 0.12.0 and above.
344
341
 
342
+ If you are concerned with scalability,
343
+ [fluent-plugin-norikra](https://github.com/norikra/fluent-plugin-norikra)
344
+ may be a better option than datacounter and record\_reformer.
345
+
345
346
  ## Installation
346
347
 
347
- 1. Install fluent-plugin-nsca gem from rubygems.org.
348
- 2. Add `match` sections to your fluentd configuration file.
348
+ Install `fluent-plugin-nsca` gem.
349
349
 
350
- ## Contributing
350
+ You don't have to install `send_nsca` command,
351
+ because this plugin uses a pure ruby NSCA client library.
351
352
 
352
- Create an [issue](https://github.com/miyakawataku/fluent-plugin-nsca/issues).
353
-
354
- Or ask questions on Twitter to
355
- [@miyakawa\_taku](https://twitter.com/miyakawa_taku).
353
+ ## Contributing
356
354
 
357
- Or submit a pull request as follows:
355
+ Submit an [issue](https://github.com/miyakawataku/fluent-plugin-nsca/issues)
356
+ or a [pull request](https://github.com/miyakawataku/fluent-plugin-nsca/pulls).
358
357
 
359
- 1. Fork it
360
- 2. Create your feature branch (`git checkout -b my-new-feature`)
361
- 3. Commit your changes (`git commit -am 'Add some feature'`)
362
- 4. Push to the branch (`git push origin my-new-feature`)
363
- 5. Create new Pull Request
358
+ Feedback to [@miyakawa\_taku on Twitter](https://twitter.com/miyakawa_taku)
359
+ is also welcome.
@@ -5,11 +5,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fluent-plugin-nsca"
8
- spec.version = '0.0.4'
8
+ spec.version = '1.0.0'
9
9
  spec.authors = ["MIYAKAWA Taku"]
10
10
  spec.email = ["miyakawa.taku@gmail.com"]
11
11
  spec.description = 'Fluentd output plugin to send service checks' +
12
- ' to an NSCA / Nagios monitoring server'
12
+ ' to an NSCA / Nagios monitoring server'
13
13
  spec.summary = spec.description
14
14
  spec.homepage = "https://github.com/miyakawataku/fluent-plugin-nsca"
15
15
  spec.license = "Apache License, v2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nsca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-01 00:00:00.000000000 Z
12
+ date: 2015-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -100,6 +100,7 @@ extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
102
  - .gitignore
103
+ - .travis.yml
103
104
  - Gemfile
104
105
  - LICENSE.txt
105
106
  - README.md
@@ -123,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
124
  version: '0'
124
125
  segments:
125
126
  - 0
126
- hash: 2216937057751646696
127
+ hash: 2118153429955703464
127
128
  required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  none: false
129
130
  requirements:
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  version: '0'
133
134
  segments:
134
135
  - 0
135
- hash: 2216937057751646696
136
+ hash: 2118153429955703464
136
137
  requirements: []
137
138
  rubyforge_project:
138
139
  rubygems_version: 1.8.23