cloudstack-nagios 0.7.1 → 0.7.2

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: 15e5da96d486372d134e32cf65e0ee928704a563
4
- data.tar.gz: 97e5917d4e89e17f42590e68d601d963a86433f6
3
+ metadata.gz: 4cc21cfef1d5e7fcdf03ddb328c2a74bd6f6a07b
4
+ data.tar.gz: 874c8c6196348998b20e84f439ad526937049e06
5
5
  SHA512:
6
- metadata.gz: 910a0b2bec25e5eb26b0a86fbb743b0530b71dfaa13b277f6335a00c6fc4323f5e12eab1712ecbb369379f1cc374a3c2054ad198cc952c8137f4d0c115215b98
7
- data.tar.gz: d5da3d951585491a4cc638a55495fbd4b0be0800f52a887062da423002378e8e13caec81ca5ff3a6535677d72909a708f5406084697fbbf67bf5b77a97c52084
6
+ metadata.gz: 2424b977d995cb8fae760fe35ea230b9566443cf9b3249f713ab56f4a0d3f3df9b06cea88481a20f099ba588cbbb23eea51e44921abb050906f2eddcbc7f3d50
7
+ data.tar.gz: 2add85b2adb5abe48f684c85dd37300d406aa8f99d894206235f172fe609333d70fccb2d6c553450dda2400d885c455b3b4d4906f5cc2ea02a0e2543ee8ab7e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-nagios (0.7.0)
4
+ cloudstack-nagios (0.7.1)
5
5
  cloudstack_client (~> 0.4, >= 0.4.4)
6
6
  erubis (~> 2.7.0)
7
7
  highline (~> 1.6.20)
data/README.md CHANGED
@@ -57,7 +57,15 @@ See the help screen:
57
57
  $ cs-nagios
58
58
  ```
59
59
 
60
- ### Generate Nagios configuration files
60
+ ### Generate all Nagios configuration files at once
61
+
62
+ Generate all configuration files:
63
+
64
+ ```bash
65
+ $ cs-nagios nagios_config generate_all
66
+ ```
67
+
68
+ ### Generate Nagios configuration files of each type
61
69
 
62
70
  Note that you can also use your own ERB templates using the '--template' option to generate the nagios confifuration files.
63
71
 
@@ -2,6 +2,15 @@ class NagiosConfig < CloudstackNagios::Base
2
2
 
3
3
  class_option :bin_path, desc: "absolute path to the nagios-cloudstack binary"
4
4
 
5
+ desc "generate_all", "generate all nagios configs"
6
+ def generate_all
7
+ commands = %w(router_hosts router_services api_hosts storage_pool_services capacity_services asyncjobs_services)
8
+ commands.each do |command|
9
+ invoke "nagios_config:#{command}"
10
+ puts
11
+ end
12
+ end
13
+
5
14
  desc "router_hosts", "generate nagios hosts configuration for virtual routers"
6
15
  option :template,
7
16
  desc: "path of ERB template to use",
@@ -1,3 +1,3 @@
1
1
  module CloudstackNagios
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
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.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm