cloudstack-nagios 0.6.0 → 0.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c0b8e37946dcb6dd032418c6d73ab56d1c40bd0
4
- data.tar.gz: 5f60019260f8410034d62a284ff007d5c08a0529
3
+ metadata.gz: 4dfef0d15a505ec785f1a81b8de68d7656c5f108
4
+ data.tar.gz: 8886ff661b1581c56f67a7d08f349378e3495d24
5
5
  SHA512:
6
- metadata.gz: e0db95dbfa0c23130e7c0783713df8d97fcfd1a4f4ecaaacc3dc91e88b5b7605b660d8740430fec5d8cd3660a7dd809dfa936bd1b828d783b101051d58b31484
7
- data.tar.gz: a32712202e84a342102b256e552c0abe9dd68ed879f185e16d757a0c5b3a108e2df5de89055d125454a7399c3819eb2e7eb33c2fccf80246663be8cd9dcd4064
6
+ metadata.gz: 4fbea4827a0dede42b2cadf9c5aa2bb6c9c07d25d50ca07c8bc8efb64d8f385b350e6157d1f866ed5d182086ef146327c5621d992d8e422479d1c3c7c66e44a6
7
+ data.tar.gz: af59b95251ba561f0e96b4397952cd8cf2b252e9d28b54548c5e940d2f734607b591b863f12038fe19bffea4f47afefbc50828c97bc74c9a569336752630ccdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-nagios (0.6.0)
4
+ cloudstack-nagios (0.6.1)
5
5
  cloudstack_client (~> 0.4, >= 0.4.4)
6
6
  erubis (~> 2.7.0)
7
7
  highline (~> 1.6.20)
@@ -6,7 +6,6 @@ class Check < CloudstackNagios::Base
6
6
 
7
7
  class_option :host,
8
8
  desc: 'hostname or ipaddress',
9
- default: '127.0.0.1',
10
9
  aliases: '-H'
11
10
 
12
11
  class_option :warning,
@@ -37,10 +36,10 @@ class Check < CloudstackNagios::Base
37
36
  desc "capacity SUBCOMMAND ...ARGS", "capacity checks"
38
37
  subcommand :capacity, Capacity
39
38
 
40
- desc "stoarge_pool SUBCOMMAND ...ARGS", "storage_pool checks"
39
+ desc "storage_pool SUBCOMMAND ...ARGS", "storage_pool checks"
41
40
  subcommand :capacity, Capacity
42
41
 
43
- desc "storage_pool", "check capacity of storage_pool"
42
+ desc "capacity", "check capacity of storage_pool"
44
43
  option :pool_name, required: true
45
44
  option :zone
46
45
  def storage_pool
@@ -89,6 +89,10 @@ class Router < CloudstackNagios::Base
89
89
  no_commands do
90
90
 
91
91
  def systemvm_host
92
+ unless options[:host]
93
+ say "Error: --host/-H option is required for this check.", :red
94
+ exit 1
95
+ end
92
96
  host = SSHKit::Host.new("root@#{options[:host]}")
93
97
  host.ssh_options = sshoptions(options[:ssh_key])
94
98
  host.port = options[:port]
@@ -15,7 +15,7 @@
15
15
  <% storage_pools.each do |storage_pool| -%>
16
16
  define command {
17
17
  command_name cs-nagios_check-storage_pool
18
- command_line <%= bin_path -%>/cs-nagios check storage_pool --name <%= storage_pool['name'] -%> --zone <%= storage_pool['zonename'] -%> -w $ARG1$ -c $ARG2$ --config <%= config_file %>
18
+ command_line <%= bin_path -%>/cs-nagios check storage_pool --pool_name <%= storage_pool['name'] -%> --zone <%= storage_pool['zonename'] -%> -w $ARG1$ -c $ARG2$ --config <%= config_file %>
19
19
  register 1
20
20
  }
21
21
 
@@ -1,3 +1,3 @@
1
1
  module CloudstackNagios
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm