cloudstack-nagios 0.7.5 → 0.7.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bc876fc7ecb06123f39141d71eb4a393ae3894
|
4
|
+
data.tar.gz: 620ceb57080cc1138251e5cd835884eb797ead3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153c7f53b8d820c4cdcefcbae076392f4c311e121831c5f264f917c4f47b7b5687caf68e0fac073bfbd4989266b051d9f37f21343b4f4c12e3203a493aa02145
|
7
|
+
data.tar.gz: a7b73d07ee00d9a79142afa948604d77318908a4884fdd358f28400828f396a8b41d881cd2df3ab98909adef296fad163eb9a069106d0ea3ddc70ce4bfb58a48
|
@@ -82,6 +82,7 @@ class NagiosConfig < CloudstackNagios::Base
|
|
82
82
|
def capacity_services
|
83
83
|
service_template = load_template(options[:template])
|
84
84
|
puts service_template.result(
|
85
|
+
zones: client.list_zones,
|
85
86
|
capacity_types: Capacity::CAPACITY_TYPES,
|
86
87
|
bin_path: bin_path,
|
87
88
|
config_file: options[:config],
|
@@ -11,25 +11,28 @@
|
|
11
11
|
#
|
12
12
|
###############################################################################
|
13
13
|
|
14
|
+
|
14
15
|
<% capacity_types.each do |cap_type, cap_values| -%>
|
15
16
|
define command {
|
16
|
-
command_name
|
17
|
-
command_line
|
18
|
-
register
|
17
|
+
command_name cs-nagios_check-capacity_<%= cap_values[:method_name] %>
|
18
|
+
command_line <%= bin_path -%>cs-nagios check capacity <%= cap_values[:method_name] %> -w $ARG1$ -c $ARG2$ --config <%= config_file %> --zone $ARG3$
|
19
|
+
register 1
|
19
20
|
}
|
20
21
|
|
21
22
|
<% end -%>
|
22
23
|
|
23
|
-
<%
|
24
|
+
<% zones.each do |zone| -%>
|
25
|
+
<% capacity_types.each do |cap_type, cap_values| -%>
|
24
26
|
define service {
|
25
|
-
hostgroup_name
|
26
|
-
service_description
|
27
|
-
display_name
|
28
|
-
use
|
29
|
-
check_command
|
30
|
-
register
|
27
|
+
hostgroup_name Cloudstack-API
|
28
|
+
service_description Cloudstack <%= zone %> <%= cap_values[:name] %>
|
29
|
+
display_name Cloudstack <%= zone %> <%= cap_values[:method_name] %>
|
30
|
+
use Generic-Service,service-pnp
|
31
|
+
check_command cs-nagios_check-capacity_<%= cap_values[:method_name] -%>!80!90!<%= zone %>
|
32
|
+
register 1
|
31
33
|
}
|
32
34
|
|
35
|
+
<% end -%>
|
33
36
|
<% end -%>
|
34
37
|
###############################################################################
|
35
38
|
#
|