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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -1
- data/lib/cloudstack-nagios/commands/nagios_config.rb +9 -0
- data/lib/cloudstack-nagios/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cc21cfef1d5e7fcdf03ddb328c2a74bd6f6a07b
|
4
|
+
data.tar.gz: 874c8c6196348998b20e84f439ad526937049e06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2424b977d995cb8fae760fe35ea230b9566443cf9b3249f713ab56f4a0d3f3df9b06cea88481a20f099ba588cbbb23eea51e44921abb050906f2eddcbc7f3d50
|
7
|
+
data.tar.gz: 2add85b2adb5abe48f684c85dd37300d406aa8f99d894206235f172fe609333d70fccb2d6c553450dda2400d885c455b3b4d4906f5cc2ea02a0e2543ee8ab7e2
|
data/Gemfile.lock
CHANGED
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",
|