cloudstack-nagios 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cloudstack-nagios/base.rb +3 -3
- data/lib/cloudstack-nagios/commands/router.rb +2 -0
- data/lib/cloudstack-nagios/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e60f71a3b197496f85fef00bca4e535cfb7105b3
|
4
|
+
data.tar.gz: 4c8d19332857d31098208a4ceade29516cc38f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a60b073f8e4494b492e0ed8e8cb71d5b212cea49631bc4def23424768f7eb55336bb8065288b08c50db1154c104e4eee7c5595308dbef2fc3382a3e20cb7e245
|
7
|
+
data.tar.gz: 5b0e5efdf0eb610b8f51e76f9e337f792abf464ca5af3adf5533b4dc09052de250ffa524fe29438cd62a1ca82a6a40f883b8d2fd44019c9b90f2bf942deb837f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudstack-nagios (0.
|
4
|
+
cloudstack-nagios (0.14.0)
|
5
5
|
cloudstack_client (~> 0.5, >= 0.5.0)
|
6
6
|
erubis (~> 2.7.0)
|
7
7
|
highline (~> 1.6.20)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
term-ansicolor (1.3.0)
|
29
29
|
tins (~> 1.0)
|
30
30
|
thor (0.19.1)
|
31
|
-
tins (1.3.
|
31
|
+
tins (1.3.2)
|
32
32
|
|
33
33
|
PLATFORMS
|
34
34
|
ruby
|
@@ -2,11 +2,11 @@ require "thor"
|
|
2
2
|
require "yaml"
|
3
3
|
require 'cloudstack_client'
|
4
4
|
|
5
|
-
module CloudstackNagios
|
5
|
+
module CloudstackNagios
|
6
6
|
class Base < Thor
|
7
7
|
include Thor::Actions
|
8
8
|
include CloudstackNagios::Helper
|
9
|
-
|
9
|
+
|
10
10
|
attr_reader :config
|
11
11
|
|
12
12
|
# catch control-c and exit
|
@@ -20,7 +20,7 @@ module CloudstackNagios
|
|
20
20
|
true
|
21
21
|
end
|
22
22
|
|
23
|
-
no_commands do
|
23
|
+
no_commands do
|
24
24
|
def client(opts = {})
|
25
25
|
@config ||= load_configuration
|
26
26
|
@client ||= CloudstackClient::Connection.new(
|
@@ -175,6 +175,8 @@ class Router < CloudstackNagios::Base
|
|
175
175
|
say "Error: --host/-H option is required for this check.", :red
|
176
176
|
exit 1
|
177
177
|
end
|
178
|
+
# suppress sshkit output to stdout
|
179
|
+
SSHKit.config.output_verbosity = Logger::FATAL
|
178
180
|
host = SSHKit::Host.new("root@#{options[:host]}")
|
179
181
|
host.ssh_options = sshoptions(options[:ssh_key])
|
180
182
|
host.port = options[:ssh_port]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack-nagios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nik Wolfgramm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|