logstash-output-nagios_nsca 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: 502741a98ed2f40df70275d463331097aba2a1ca
4
- data.tar.gz: dce3d7fd17eed2f921badb66ee2379e0bd40c411
3
+ metadata.gz: d8f9a04b9ef4873f3b56878e1bb9d99b2253ff77
4
+ data.tar.gz: 599256053d368a3d85b706127c892dc8e10ad38d
5
5
  SHA512:
6
- metadata.gz: 574920d6bf7b5b41acf61a6226f946d80932ca9a2651a402aef8c00e11dd20e1e3bce1caaf8a8723ea91bcd8e9a64460533d92337f4f5aa673ba09b5ddc6776a
7
- data.tar.gz: c61f7f5fa034c6aba18a6ec92fe71863f77500b61639f4decb1d4b1380f599c289ac4696ffd797c812ccc884cbb02d87939498459fb9b5ae16df428c81e25947
6
+ metadata.gz: 0f39ebd4d531e8a4e73dd2aa6dbb3ec445791ac4f92b943a37cd7dd88054bbc7b02ed21bee1131703ef2cf5a7f7bee88d32ccb14693a76d2de9d7a62bc28749e
7
+ data.tar.gz: 15f31aa9b4af9c767de10ad4aa6a388ff76c969f5eb9ef4e925be3aeae4960bf54fbccb0d993391f99c128cdf5fbc835e7bca6965b96332b52ceba06b96f09d4
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,141 @@
1
+ :plugin: nagios_nsca
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_nsca output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ The nagios_nsca output is used for sending passive check results to Nagios
24
+ through the NSCA protocol.
25
+
26
+ This is useful if your Nagios server is not the same as the source host from
27
+ where you want to send logs or alerts. If you only have one server, this
28
+ output is probably overkill # for you, take a look at the 'nagios' output
29
+ instead.
30
+
31
+ Here is a sample config using the nagios_nsca output:
32
+ [source,ruby]
33
+ output {
34
+ nagios_nsca {
35
+ # specify the hostname or ip of your nagios server
36
+ host => "nagios.example.com"
37
+
38
+ # specify the port to connect to
39
+ port => 5667
40
+ }
41
+ }
42
+
43
+ [id="plugins-{type}s-{plugin}-options"]
44
+ ==== Nagios_nsca Output Configuration Options
45
+
46
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
47
+
48
+ [cols="<,<,<",options="header",]
49
+ |=======================================================================
50
+ |Setting |Input type|Required
51
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
52
+ | <<plugins-{type}s-{plugin}-message_format>> |<<string,string>>|No
53
+ | <<plugins-{type}s-{plugin}-nagios_host>> |<<string,string>>|No
54
+ | <<plugins-{type}s-{plugin}-nagios_service>> |<<string,string>>|No
55
+ | <<plugins-{type}s-{plugin}-nagios_status>> |<<string,string>>|Yes
56
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
57
+ | <<plugins-{type}s-{plugin}-send_nsca_bin>> |<<string,string>>|No
58
+ | <<plugins-{type}s-{plugin}-send_nsca_config>> |a valid filesystem path|No
59
+ |=======================================================================
60
+
61
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
62
+ output plugins.
63
+
64
+ &nbsp;
65
+
66
+ [id="plugins-{type}s-{plugin}-host"]
67
+ ===== `host`
68
+
69
+ * Value type is <<string,string>>
70
+ * Default value is `"localhost"`
71
+
72
+ The nagios host or IP to send logs to. It should have a NSCA daemon running.
73
+
74
+ [id="plugins-{type}s-{plugin}-message_format"]
75
+ ===== `message_format`
76
+
77
+ * Value type is <<string,string>>
78
+ * Default value is `"%{@timestamp} %{host}: %{message}"`
79
+
80
+ The format to use when writing events to nagios. This value
81
+ supports any string and can include `%{name}` and other dynamic
82
+ strings.
83
+
84
+ [id="plugins-{type}s-{plugin}-nagios_host"]
85
+ ===== `nagios_host`
86
+
87
+ * Value type is <<string,string>>
88
+ * Default value is `"%{host}"`
89
+
90
+ The nagios 'host' you want to submit a passive check result to. This
91
+ parameter accepts interpolation, e.g. you can use `@source_host` or other
92
+ logstash internal variables.
93
+
94
+ [id="plugins-{type}s-{plugin}-nagios_service"]
95
+ ===== `nagios_service`
96
+
97
+ * Value type is <<string,string>>
98
+ * Default value is `"LOGSTASH"`
99
+
100
+ The nagios 'service' you want to submit a passive check result to. This
101
+ parameter accepts interpolation, e.g. you can use `@source_host` or other
102
+ logstash internal variables.
103
+
104
+ [id="plugins-{type}s-{plugin}-nagios_status"]
105
+ ===== `nagios_status`
106
+
107
+ * This is a required setting.
108
+ * Value type is <<string,string>>
109
+ * There is no default value for this setting.
110
+
111
+ The status to send to nagios. Should be 0 = OK, 1 = WARNING, 2 = CRITICAL, 3 = UNKNOWN
112
+
113
+ [id="plugins-{type}s-{plugin}-port"]
114
+ ===== `port`
115
+
116
+ * Value type is <<number,number>>
117
+ * Default value is `5667`
118
+
119
+ The port where the NSCA daemon on the nagios host listens.
120
+
121
+ [id="plugins-{type}s-{plugin}-send_nsca_bin"]
122
+ ===== `send_nsca_bin`
123
+
124
+ * Value type is <<string,string>>
125
+ * Default value is `"/usr/sbin/send_nsca"`
126
+
127
+ The path to the 'send_nsca' binary on the local host.
128
+
129
+ [id="plugins-{type}s-{plugin}-send_nsca_config"]
130
+ ===== `send_nsca_config`
131
+
132
+ * Value type is <<path,path>>
133
+ * There is no default value for this setting.
134
+
135
+ The path to the send_nsca config file on the local host.
136
+ Leave blank if you don't want to provide a config file.
137
+
138
+
139
+
140
+ [id="plugins-{type}s-{plugin}-common-options"]
141
+ 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_nsca'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output is used for sending passive check results to Nagios through the NSCA protocol."
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_nsca
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_nsca.rb
74
75
  - logstash-output-nagios_nsca.gemspec
75
76
  - spec/outputs/nagios_nsca_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: This output is used for sending passive check results to Nagios through the NSCA protocol.