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: 43e0494052a94a877fe3093a37c8cacc67f304e8
4
- data.tar.gz: f2b08fa3aacf875ab2739c3bc1b273518df22966
3
+ metadata.gz: 59bc876fc7ecb06123f39141d71eb4a393ae3894
4
+ data.tar.gz: 620ceb57080cc1138251e5cd835884eb797ead3e
5
5
  SHA512:
6
- metadata.gz: 04733f21a90d816f2614fb38af6117b044f2885f6ebfd7e54d574c9fd3d6e4cff72d71b4cc1d9f2f407a8a43eb835feff900bd5d7335cb454ce2a209cc935ef7
7
- data.tar.gz: 0c3ab434608fdb024b61dc1a7ef89861a1e266ed90996d6a4a225c1ac5030ba65d07adef67455d4004180d5c40f4ce99d9c61eb9af2d6a7ce9629d24b8e3bca5
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 cs-nagios_check-capacity_<%= cap_values[:method_name] %>
17
- command_line <%= bin_path -%>cs-nagios check capacity <%= cap_values[:method_name] %> -w $ARG1$ -c $ARG2$ --config <%= config_file %>
18
- register 1
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
- <% capacity_types.each do |cap_type, cap_values| -%>
24
+ <% zones.each do |zone| -%>
25
+ <% capacity_types.each do |cap_type, cap_values| -%>
24
26
  define service {
25
- hostgroup_name Cloudstack-API
26
- service_description <%= cap_values[:name] %>
27
- display_name <%= cap_values[:method_name] %>
28
- use Generic-Service,service-pnp
29
- check_command cs-nagios_check-capacity_<%= cap_values[:method_name] -%>!80!90
30
- register 1
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
  #
@@ -1,3 +1,3 @@
1
1
  module CloudstackNagios
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
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.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm