nagiosplugin 0.0.7 → 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.
- data/.gitignore +1 -0
- data/README.md +19 -26
- data/Rakefile +5 -5
- data/features/plugin_output.feature +48 -44
- data/features/steps/dev_steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/nagiosplugin.rb +2 -2
- data/lib/nagiosplugin/plugin.rb +60 -54
- data/lib/nagiosplugin/version.rb +1 -1
- data/nagiosplugin.gemspec +14 -14
- data/spec/nagiosplugin/plugin_spec.rb +109 -57
- data/spec/spec_helper.rb +1 -1
- metadata +108 -79
- data/.rvmrc +0 -1
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# NagiosPlugin
|
2
2
|
|
3
|
-
|
3
|
+
A simple framework for writing [Nagios](http://www.nagios.org/) Plugins.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -8,42 +8,35 @@ NagiosPlugin is a simple framework for writing [Nagios](http://www.nagios.org/)
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
Create your executable
|
12
|
-
|
11
|
+
Create your executable file (which will be called by nagios), `require
|
12
|
+
'nagiosplugin'` and subclass from `NagiosPlugin::Plugin`.
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
Then define a check method in your class which figures out the status
|
15
|
+
for what you want to check and calls the corresponding status method
|
16
|
+
(`ok`, `warning`, `critical` or `unknown`) to display a status message
|
17
|
+
and exit imediately.
|
18
18
|
|
19
19
|
Here's a simple example plugin named `check_u2d`:
|
20
20
|
|
21
|
-
|
21
|
+
```Ruby
|
22
22
|
#!/usr/bin/env ruby
|
23
23
|
require 'nagiosplugin'
|
24
24
|
|
25
25
|
class UnicornToDwarfRatio < NagiosPlugin::Plugin
|
26
|
-
def
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
def warning?
|
35
|
-
@unicorns == @dwarves
|
36
|
-
end
|
37
|
-
|
38
|
-
def output
|
39
|
-
"#{unicorns.to_f/@dwarves.to_f} unicorns/dwarves"
|
40
|
-
end
|
26
|
+
def check
|
27
|
+
unicorn_to_dwarf_ratio = ... # We still need an alogrithm for this.
|
28
|
+
msg = "#{unicorn_to_dwarf_ratio} unicorns/dwarves"
|
29
|
+
|
30
|
+
critical(msg) if unicorn_to_dwarf_ratio < 0.0
|
31
|
+
warning(msg) if unicorn_to_dwarf_ratio == 0.0
|
32
|
+
ok(msg)
|
33
|
+
end
|
41
34
|
end
|
42
35
|
|
43
|
-
UnicornToDwarfRatio.
|
36
|
+
UnicornToDwarfRatio.run
|
44
37
|
```
|
45
38
|
|
46
|
-
|
39
|
+
Take a look below `features` to see what's going on...
|
47
40
|
|
48
41
|
## Note on Patches/Pull Requests
|
49
42
|
|
@@ -56,4 +49,4 @@ Please also take a look at features to see what's going on...
|
|
56
49
|
|
57
50
|
## Copyright
|
58
51
|
|
59
|
-
Copyright (c) 2011 Björn Albers. See LICENSE for details.
|
52
|
+
Copyright (c) 2011-2012 Björn Albers. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'cucumber/rake/task'
|
4
4
|
Cucumber::Rake::Task.new(:features) do |t|
|
5
|
-
t.cucumber_opts =
|
5
|
+
t.cucumber_opts = '--format pretty'
|
6
6
|
end
|
7
7
|
|
8
|
-
require
|
8
|
+
require 'rspec/core/rake_task'
|
9
9
|
RSpec::Core::RakeTask.new do |t|
|
10
10
|
t.rspec_opts = %w[--color]
|
11
|
-
t.pattern =
|
11
|
+
t.pattern = './spec/**/*_spec.rb'
|
12
12
|
end
|
13
13
|
|
14
14
|
task :default => :features
|
@@ -1,46 +1,50 @@
|
|
1
1
|
Feature: Plugin Output
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
3
|
+
In order to comply with official nagios plugin development guidelines
|
4
|
+
As a sysadmin building my own nagios plugins
|
5
|
+
I want to return a nagios compatible plugin output
|
6
|
+
|
7
|
+
Scenario Outline: UNKNOWN, CRITICAL, WARNING and OK
|
8
|
+
Given a file named "check_foo.rb" with:
|
9
|
+
"""
|
10
|
+
require 'nagiosplugin'
|
11
|
+
|
12
|
+
class Foo < NagiosPlugin::Plugin
|
13
|
+
def check
|
14
|
+
case ARGV.first
|
15
|
+
when 'UNKNOWN' then unknown 'no clue, sorry'
|
16
|
+
when 'CRITICAL' then critical 'booooom!'
|
17
|
+
when 'WARNING' then warning 'it could be worse'
|
18
|
+
when 'OK' then ok 'all is fine'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
Foo.run
|
24
|
+
"""
|
25
|
+
When I run `ruby check_foo.rb <status>`
|
26
|
+
Then the exit status should be <code>
|
27
|
+
And the stdout should contain "<status>"
|
28
|
+
|
29
|
+
Examples:
|
30
|
+
| status | code |
|
31
|
+
| UNKNOWN | 3 |
|
32
|
+
| CRITICAL | 2 |
|
33
|
+
| WARNING | 1 |
|
34
|
+
| OK | 0 |
|
35
|
+
|
36
|
+
Scenario: UNKNOWN when no status method was called
|
37
|
+
Given a file named "check_foo" with:
|
38
|
+
"""
|
39
|
+
require 'nagiosplugin'
|
40
|
+
|
41
|
+
class Foo < NagiosPlugin::Plugin
|
42
|
+
def check
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
Foo.run
|
47
|
+
"""
|
48
|
+
When I run `ruby check_foo`
|
49
|
+
Then the exit status should be 3
|
50
|
+
And the stdout should contain "UNKNOWN"
|
data/features/steps/dev_steps.rb
CHANGED
data/features/support/env.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'aruba/cucumber'
|
data/lib/nagiosplugin.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'nagiosplugin/version'
|
2
|
+
require 'nagiosplugin/plugin'
|
data/lib/nagiosplugin/plugin.rb
CHANGED
@@ -1,61 +1,67 @@
|
|
1
1
|
module NagiosPlugin
|
2
|
-
EXIT_CODES = {
|
3
|
-
:ok => 0,
|
4
|
-
:warning => 1,
|
5
|
-
:critical => 2,
|
6
|
-
:unknown => 3,
|
7
|
-
}
|
8
|
-
|
9
|
-
PluginError = Class.new(StandardError)
|
10
|
-
|
11
2
|
class Plugin
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
3
|
+
# All allowed statuses sorted by their corresponding exit status.
|
4
|
+
STATUS = [:ok, :warning, :critical, :unknown]
|
5
|
+
|
6
|
+
# A custom status error which will be raised through the status methods.
|
7
|
+
class StatusError < StandardError
|
8
|
+
# @param [Symbol] status the status (must be {NagiosPlugin::Plugin::STATUS a valid status})
|
9
|
+
# @param [String] message the message you want to display
|
10
|
+
def initialize(status, message)
|
11
|
+
@status, @message = status.to_sym, message
|
12
|
+
end
|
13
|
+
|
14
|
+
# @return [Symbol] the status
|
15
|
+
def status
|
16
|
+
(STATUS.include?(@status) && @status) || STATUS.last
|
17
|
+
end
|
18
|
+
|
19
|
+
# @return [String] the status and message
|
20
|
+
def to_s
|
21
|
+
"#{status.to_s.upcase}: #{@message}"
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [Fixnum] the status converted into an exit code
|
25
|
+
def to_i
|
26
|
+
STATUS.find_index(status)
|
27
|
+
end
|
21
28
|
end
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
raise
|
29
|
+
|
30
|
+
class << self
|
31
|
+
# Create new instance and run it.
|
32
|
+
def run(*args)
|
33
|
+
self.new(*args).run
|
34
|
+
end
|
29
35
|
end
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
def status
|
44
|
-
@status || :unknown
|
45
|
-
end
|
46
|
-
|
47
|
-
alias_method :to_s, :message
|
48
|
-
alias_method :to_i, :code
|
49
|
-
|
50
|
-
protected
|
51
|
-
|
52
|
-
def set_status
|
53
|
-
@status = [:critical, :warning, :ok].select { |s| send("#{s}?") }.first
|
54
|
-
raise PluginError, "All status checks returned false!" if @status.nil?
|
55
|
-
end
|
56
|
-
|
57
|
-
def ok?
|
58
|
-
true
|
36
|
+
|
37
|
+
# The methods for each status.
|
38
|
+
#
|
39
|
+
# They should be called in your check method and will raise an appropriate
|
40
|
+
# StatusError.
|
41
|
+
#
|
42
|
+
# @param [String] message
|
43
|
+
STATUS.each do |status|
|
44
|
+
define_method(status) do |message|
|
45
|
+
raise StatusError.new(status, message)
|
46
|
+
end
|
59
47
|
end
|
48
|
+
|
49
|
+
# Run check and return result in a nagios-compatible format.
|
50
|
+
#
|
51
|
+
# It will...
|
52
|
+
# - execute your check method
|
53
|
+
# - output the result in a nagios-compatible format (SERVICE STATUS: Message)
|
54
|
+
# - exit according to the status
|
55
|
+
def run
|
56
|
+
check
|
57
|
+
rescue StatusError => e
|
58
|
+
rescue => e
|
59
|
+
e = StatusError.new(:unknown, ([e.to_s, nil] + e.backtrace).join("\n"))
|
60
|
+
else
|
61
|
+
e = StatusError.new(:unknown, 'no status method was called')
|
62
|
+
ensure
|
63
|
+
puts [self.class.name.upcase, e.to_s].join(' ')
|
64
|
+
exit e.to_i
|
65
|
+
end
|
60
66
|
end
|
61
67
|
end
|
data/lib/nagiosplugin/version.rb
CHANGED
data/nagiosplugin.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'nagiosplugin/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'nagiosplugin'
|
7
7
|
s.version = NagiosPlugin::VERSION
|
8
|
-
s.authors = [
|
9
|
-
s.email = [
|
10
|
-
s.homepage =
|
8
|
+
s.authors = ['Björn Albers']
|
9
|
+
s.email = ['bjoernalbers@googlemail.com']
|
10
|
+
s.homepage = 'https://github.com/bjoernalbers/nagiosplugin'
|
11
11
|
s.summary = "#{s.name}-#{s.version}"
|
12
|
-
s.description =
|
12
|
+
s.description = 'A simple framework for writing Nagios Plugins'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
-
s.require_paths = [
|
17
|
+
s.require_paths = ['lib']
|
18
18
|
|
19
|
-
s.add_development_dependency
|
20
|
-
s.add_development_dependency
|
21
|
-
s.add_development_dependency
|
22
|
-
s.add_development_dependency
|
23
|
-
s.add_development_dependency
|
24
|
-
s.add_development_dependency
|
19
|
+
s.add_development_dependency 'rake'
|
20
|
+
s.add_development_dependency 'cucumber'
|
21
|
+
s.add_development_dependency 'aruba'
|
22
|
+
s.add_development_dependency 'guard-cucumber'
|
23
|
+
s.add_development_dependency 'rspec'
|
24
|
+
s.add_development_dependency 'guard-rspec'
|
25
25
|
end
|
@@ -1,68 +1,120 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe NagiosPlugin::Plugin do
|
4
|
-
before
|
5
|
-
|
4
|
+
before do
|
5
|
+
class MyPlugin < NagiosPlugin::Plugin; end
|
6
|
+
@plugin = MyPlugin.new
|
6
7
|
end
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
[
|
13
|
-
{:critical? => false, :warning? => false, :status => :ok },
|
14
|
-
{:critical? => false, :warning? => true, :status => :warning },
|
15
|
-
{:critical? => true, :warning? => false, :status => :critical},
|
16
|
-
{:critical? => true, :warning? => true, :status => :critical}
|
17
|
-
].each do |result|
|
18
|
-
it "should be #{result[:status].to_s} if checked so" do
|
19
|
-
@plugin.stub(:critical?).and_return(result[:critical?])
|
20
|
-
@plugin.stub(:warning?).and_return(result[:warning?])
|
21
|
-
@plugin.check
|
22
|
-
@plugin.status.should eql(result[:status])
|
8
|
+
|
9
|
+
describe '#run' do
|
10
|
+
before do
|
11
|
+
@plugin.stub(:puts)
|
12
|
+
@plugin.stub(:exit)
|
23
13
|
end
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
14
|
+
|
15
|
+
it 'should run the check method' do
|
16
|
+
@plugin.should_receive(:check).with(no_args)
|
17
|
+
@plugin.run
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'should output the class name' do
|
21
|
+
def @plugin.check; end
|
22
|
+
@plugin.should_receive(:puts).with(/MYPLUGIN/)
|
23
|
+
@plugin.run
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'when an unknown exception was raised' do
|
27
|
+
before do
|
28
|
+
StandardError.any_instance.stub(:backtrace).and_return(%w[foo bar baz])
|
29
|
+
def @plugin.check
|
30
|
+
raise StandardError, 'Oops!'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should output the execptions message' do
|
35
|
+
@plugin.should_receive(:puts).with(/Oops!/)
|
36
|
+
@plugin.run
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should output the exceptions backtrace' do
|
40
|
+
@plugin.should_receive(:puts).with(/foo\nbar\nbaz/)
|
41
|
+
@plugin.run
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'should exit unknown' do
|
45
|
+
@plugin.should_receive(:exit).with(3)
|
46
|
+
@plugin.run
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
context 'when no exception was raised' do
|
51
|
+
before { def @plugin.check; end }
|
52
|
+
|
53
|
+
it 'should display a hint for the developer' do
|
54
|
+
@plugin.should_receive(:puts).with(/no status method was called/i)
|
55
|
+
@plugin.run
|
56
|
+
end
|
57
|
+
|
58
|
+
it 'should exit unknown' do
|
59
|
+
@plugin.should_receive(:exit).with(3)
|
60
|
+
@plugin.run
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
context 'when a status error was raised' do
|
65
|
+
before do
|
66
|
+
def @plugin.check
|
67
|
+
raise NagiosPlugin::Plugin::StatusError.new(:ok, 'hello, world.')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'should output the status type' do
|
72
|
+
@plugin.should_receive(:puts).with(/OK/)
|
73
|
+
@plugin.run
|
74
|
+
end
|
75
|
+
|
76
|
+
it 'should output the status message' do
|
77
|
+
@plugin.should_receive(:puts).with(/hello, world\./)
|
78
|
+
@plugin.run
|
79
|
+
end
|
80
|
+
|
81
|
+
it 'should exit with the exit status from status error' do
|
82
|
+
@plugin.should_receive(:exit).with(0)
|
83
|
+
@plugin.run
|
84
|
+
end
|
29
85
|
end
|
30
|
-
lambda { @plugin.check }.should raise_error(NagiosPlugin::PluginError)
|
31
|
-
@plugin.status.should eql(:unknown)
|
32
86
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
@plugin.instance_exec { def critical?; false end }
|
40
|
-
lambda { @plugin.check }.should raise_error(NoMethodError)
|
41
|
-
@plugin.status.should eql(:unknown)
|
42
|
-
|
43
|
-
@plugin.instance_exec { def warning?; false end }
|
44
|
-
lambda { @plugin.check }.should_not raise_error(NoMethodError)
|
45
|
-
@plugin.status.should_not eql(:unknown)
|
87
|
+
end
|
88
|
+
|
89
|
+
|
90
|
+
describe NagiosPlugin::Plugin::StatusError do
|
91
|
+
def create_status(status, msg = '')
|
92
|
+
NagiosPlugin::Plugin::StatusError.new(status, msg)
|
46
93
|
end
|
47
|
-
|
48
|
-
|
49
|
-
{
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
94
|
+
|
95
|
+
%w[ok warning critical unknown].each_with_index do |s,i|
|
96
|
+
context "when #{s}" do
|
97
|
+
before { @status = create_status(s.to_sym) }
|
98
|
+
|
99
|
+
it 'should include status in the exception message' do
|
100
|
+
@status.to_s.should include(s.upcase)
|
101
|
+
end
|
102
|
+
|
103
|
+
it "should convert to #{i}" do
|
104
|
+
@status.to_i.should eql(i)
|
105
|
+
end
|
57
106
|
end
|
58
107
|
end
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
108
|
+
|
109
|
+
context 'when initialized with invalid status' do
|
110
|
+
before { @status = create_status(:invalid) }
|
111
|
+
|
112
|
+
it 'should include unknown status in the exception message' do
|
113
|
+
@status.to_s.should include('UNKNOWN')
|
114
|
+
end
|
115
|
+
|
116
|
+
it 'should convert to 3' do
|
117
|
+
@status.to_i.should eql(3)
|
118
|
+
end
|
67
119
|
end
|
68
120
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'nagiosplugin'
|
metadata
CHANGED
@@ -1,91 +1,117 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: nagiosplugin
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
-
|
12
|
+
authors:
|
13
|
+
- "Bj\xC3\xB6rn Albers"
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
|
18
|
+
date: 2012-03-29 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
type: :development
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
23
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
prerelease: false
|
32
|
+
name: rake
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
22
35
|
type: :development
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 3
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
23
45
|
prerelease: false
|
24
|
-
version_requirements: *70198850133720
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
46
|
name: cucumber
|
27
|
-
|
28
|
-
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
33
49
|
type: :development
|
50
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: 3
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
34
59
|
prerelease: false
|
35
|
-
version_requirements: *70198850131720
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
60
|
name: aruba
|
38
|
-
|
39
|
-
|
40
|
-
requirements:
|
41
|
-
- - ! '>='
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
44
63
|
type: :development
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
hash: 3
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
version: "0"
|
45
73
|
prerelease: false
|
46
|
-
version_requirements: *70198850130120
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
74
|
name: guard-cucumber
|
49
|
-
|
50
|
-
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
55
77
|
type: :development
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
56
87
|
prerelease: false
|
57
|
-
version_requirements: *70198850129120
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
88
|
name: rspec
|
60
|
-
|
61
|
-
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
66
91
|
type: :development
|
67
|
-
|
68
|
-
version_requirements: *70198850128200
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: guard-rspec
|
71
|
-
requirement: &70198850127260 !ruby/object:Gem::Requirement
|
92
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
93
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
version: "0"
|
78
101
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
102
|
+
name: guard-rspec
|
103
|
+
version_requirements: *id006
|
104
|
+
description: A simple framework for writing Nagios Plugins
|
105
|
+
email:
|
82
106
|
- bjoernalbers@googlemail.com
|
83
107
|
executables: []
|
108
|
+
|
84
109
|
extensions: []
|
110
|
+
|
85
111
|
extra_rdoc_files: []
|
86
|
-
|
112
|
+
|
113
|
+
files:
|
87
114
|
- .gitignore
|
88
|
-
- .rvmrc
|
89
115
|
- Gemfile
|
90
116
|
- Guardfile
|
91
117
|
- LICENSE
|
@@ -102,35 +128,38 @@ files:
|
|
102
128
|
- spec/spec_helper.rb
|
103
129
|
homepage: https://github.com/bjoernalbers/nagiosplugin
|
104
130
|
licenses: []
|
131
|
+
|
105
132
|
post_install_message:
|
106
133
|
rdoc_options: []
|
107
|
-
|
134
|
+
|
135
|
+
require_paths:
|
108
136
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
138
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
|
115
|
-
segments:
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
hash: 3
|
143
|
+
segments:
|
116
144
|
- 0
|
117
|
-
|
118
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
version: "0"
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
147
|
none: false
|
120
|
-
requirements:
|
121
|
-
- -
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
|
124
|
-
segments:
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
hash: 3
|
152
|
+
segments:
|
125
153
|
- 0
|
126
|
-
|
154
|
+
version: "0"
|
127
155
|
requirements: []
|
156
|
+
|
128
157
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.11
|
130
159
|
signing_key:
|
131
160
|
specification_version: 3
|
132
|
-
summary: nagiosplugin-0.0
|
133
|
-
test_files:
|
161
|
+
summary: nagiosplugin-1.0.0
|
162
|
+
test_files:
|
134
163
|
- features/plugin_output.feature
|
135
164
|
- features/steps/dev_steps.rb
|
136
165
|
- features/support/env.rb
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use 1.9.2@nagiosplugin --create
|