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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4dfef0d15a505ec785f1a81b8de68d7656c5f108
|
|
4
|
+
data.tar.gz: 8886ff661b1581c56f67a7d08f349378e3495d24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fbea4827a0dede42b2cadf9c5aa2bb6c9c07d25d50ca07c8bc8efb64d8f385b350e6157d1f866ed5d182086ef146327c5621d992d8e422479d1c3c7c66e44a6
|
|
7
|
+
data.tar.gz: af59b95251ba561f0e96b4397952cd8cf2b252e9d28b54548c5e940d2f734607b591b863f12038fe19bffea4f47afefbc50828c97bc74c9a569336752630ccdf
|
data/Gemfile.lock
CHANGED
|
@@ -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 "
|
|
39
|
+
desc "storage_pool SUBCOMMAND ...ARGS", "storage_pool checks"
|
|
41
40
|
subcommand :capacity, Capacity
|
|
42
41
|
|
|
43
|
-
desc "
|
|
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 --
|
|
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
|
|