logstash-output-nagios 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3e930888aebbac60d0f4b160011ca4eaf972d6a
4
- data.tar.gz: b87838548d8f4606378d4dcad177b4c6363943d0
3
+ metadata.gz: ae5e514e0116c4bbc0d97d195e66601ca9464358
4
+ data.tar.gz: e6f642389f40855457635d536feb06d7aec26ab6
5
5
  SHA512:
6
- metadata.gz: ba22e36c7cb4af99c3f29cf80885d0b1f2af43bfb208bb4791049af8a3017af179770db7283578f6875d679b967c7f8db9c342fbdb3c674601bbb06c6ea11e2b
7
- data.tar.gz: 4ae6fb010ae0c86a05e1743cac83ad27a2a2028ff2e44522b26b41f1261d3a2750b8adee943b77658d548810921329634704bb7bc26f148c819b0a8cbfd231c4
6
+ metadata.gz: 8f494643d83638c2ae95d49c6cfcd661f88529f70d595563c7ca04fd8f856359c053effc9dcfc643b93998390b33fa7783a7e3ead6a04580001584d4c8e80b3a
7
+ data.tar.gz: 465638b0249718f91a84627083125411c9c9981773d0284605cb680d209bd2fa26bc00304580a781f069b83a646b7877f657022308abd155e8fdd66dfb79b6f1
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
3
  gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,90 @@
1
+ :plugin: nagios
2
+ :type: output
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Nagios output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ The Nagios output is used for sending passive check results to Nagios via the
24
+ Nagios command file. This output currently supports Nagios 3.
25
+
26
+ For this output to work, your event _must_ have the following Logstash event fields:
27
+
28
+ * `nagios_host`
29
+ * `nagios_service`
30
+
31
+ These Logstash event fields are supported, but optional:
32
+
33
+ * `nagios_annotation`
34
+ * `nagios_level` (overrides `nagios_level` configuration option)
35
+
36
+ There are two configuration options:
37
+
38
+ * `commandfile` - The location of the Nagios external command file. Defaults
39
+ to '/var/lib/nagios3/rw/nagios.cmd'
40
+ * `nagios_level` - Specifies the level of the check to be sent. Defaults to
41
+ CRITICAL and can be overriden by setting the "nagios_level" field to one
42
+ of "OK", "WARNING", "CRITICAL", or "UNKNOWN"
43
+ [source,ruby]
44
+ output{
45
+ if [message] =~ /(error|ERROR|CRITICAL)/ {
46
+ nagios {
47
+ # your config here
48
+ }
49
+ }
50
+ }
51
+
52
+
53
+ [id="plugins-{type}s-{plugin}-options"]
54
+ ==== Nagios Output Configuration Options
55
+
56
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
57
+
58
+ [cols="<,<,<",options="header",]
59
+ |=======================================================================
60
+ |Setting |Input type|Required
61
+ | <<plugins-{type}s-{plugin}-commandfile>> |<<,>>|No
62
+ | <<plugins-{type}s-{plugin}-nagios_level>> |<<string,string>>, one of `["0", "1", "2", "3"]`|No
63
+ |=======================================================================
64
+
65
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
66
+ output plugins.
67
+
68
+ &nbsp;
69
+
70
+ [id="plugins-{type}s-{plugin}-commandfile"]
71
+ ===== `commandfile`
72
+
73
+ * Value type is <<string,string>>
74
+ * Default value is `"/var/lib/nagios3/rw/nagios.cmd"`
75
+
76
+ The full path to your Nagios command file.
77
+
78
+ [id="plugins-{type}s-{plugin}-nagios_level"]
79
+ ===== `nagios_level`
80
+
81
+ * Value can be any of: `0`, `1`, `2`, `3`
82
+ * Default value is `"2"`
83
+
84
+ The Nagios check level. Should be one of 0=OK, 1=WARNING, 2=CRITICAL,
85
+ 3=UNKNOWN. Defaults to 2 - CRITICAL.
86
+
87
+
88
+
89
+ [id="plugins-{type}s-{plugin}-common-options"]
90
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-nagios'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The Nagios output is used for sending passive check results to Nagios via the Nagios command file"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -70,6 +70,7 @@ files:
70
70
  - LICENSE
71
71
  - NOTICE.TXT
72
72
  - README.md
73
+ - docs/index.asciidoc
73
74
  - lib/logstash/outputs/nagios.rb
74
75
  - logstash-output-nagios.gemspec
75
76
  - spec/outputs/nagios_spec.rb
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  version: '0'
97
98
  requirements: []
98
99
  rubyforge_project:
99
- rubygems_version: 2.6.3
100
+ rubygems_version: 2.4.8
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: The Nagios output is used for sending passive check results to Nagios via the Nagios command file