cloudstack-nagios 0.18.0 → 0.18.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 +4 -4
- data/Gemfile.lock +16 -20
- data/README.md +14 -14
- data/bin/cloudstack-nagios +5 -0
- data/cloudstack-nagios.gemspec +6 -6
- data/lib/cloudstack-nagios/version.rb +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe9f01af20e3c09613b6233f4cedf28cb7ae18ce
|
|
4
|
+
data.tar.gz: 5ae8a27911672d5c3818aee518b0b1756197e2ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca259e294b88494229c82e20a36135bcf04949624739ed3684da570e417f037ce565825b976b40cfd0f97ee2283f60bf4c7d9dcd36ea3f52e470487ae186bcf1
|
|
7
|
+
data.tar.gz: 112114a2931ea1342fcaf92ee997958680522d4e02d06b794554bf786de7ff824d30feca62028133e1d349bda9fcc047518e259287b155fbcc8596e3fe7af899
|
data/Gemfile.lock
CHANGED
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cloudstack-nagios (0.18.
|
|
5
|
-
cloudstack_client (~> 1.
|
|
6
|
-
erubis (~> 2.7
|
|
7
|
-
highline (~> 1.6
|
|
8
|
-
sshkit (~> 1.3
|
|
9
|
-
thor (~> 0.19
|
|
4
|
+
cloudstack-nagios (0.18.1)
|
|
5
|
+
cloudstack_client (~> 1.2)
|
|
6
|
+
erubis (~> 2.7)
|
|
7
|
+
highline (~> 1.6)
|
|
8
|
+
sshkit (~> 1.3)
|
|
9
|
+
thor (~> 0.19)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
cloudstack_client (1.
|
|
15
|
-
|
|
14
|
+
cloudstack_client (1.2.2)
|
|
15
|
+
multi_json (~> 1.11)
|
|
16
16
|
erubis (2.7.0)
|
|
17
|
-
highline (1.
|
|
17
|
+
highline (1.7.8)
|
|
18
18
|
json (1.8.3)
|
|
19
|
-
|
|
19
|
+
multi_json (1.11.2)
|
|
20
20
|
net-scp (1.2.1)
|
|
21
21
|
net-ssh (>= 2.6.5)
|
|
22
|
-
net-ssh (3.0.
|
|
23
|
-
rake (10.
|
|
24
|
-
rdoc (4.2.
|
|
22
|
+
net-ssh (3.0.2)
|
|
23
|
+
rake (10.4.2)
|
|
24
|
+
rdoc (4.2.1)
|
|
25
25
|
json (~> 1.4)
|
|
26
|
-
sshkit (1.
|
|
26
|
+
sshkit (1.8.1)
|
|
27
27
|
net-scp (>= 1.1.2)
|
|
28
|
-
net-ssh
|
|
29
|
-
term-ansicolor
|
|
30
|
-
term-ansicolor (1.3.2)
|
|
31
|
-
tins (~> 1.0)
|
|
28
|
+
net-ssh (>= 2.8.0)
|
|
32
29
|
thor (0.19.1)
|
|
33
|
-
tins (1.6.0)
|
|
34
30
|
|
|
35
31
|
PLATFORMS
|
|
36
32
|
ruby
|
|
37
33
|
|
|
38
34
|
DEPENDENCIES
|
|
39
35
|
cloudstack-nagios!
|
|
40
|
-
rake (~> 10.3
|
|
36
|
+
rake (~> 10.3)
|
|
41
37
|
rdoc
|
data/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/cloudstack-nagios)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
CloudStack Nagios helps you monitoring your Cloudstack environment with Nagios/Icinga.
|
|
6
|
+
CloudStack Nagios uses the CloudStack API to collect information about system vm's and resources.
|
|
7
7
|
|
|
8
8
|
The following checks are supported:
|
|
9
9
|
* system and network checks for virtual routers
|
|
@@ -12,9 +12,9 @@ The following checks are supported:
|
|
|
12
12
|
|
|
13
13
|
## Prerequisites
|
|
14
14
|
|
|
15
|
-
*
|
|
16
|
-
* In order to connect to system
|
|
17
|
-
* The system
|
|
15
|
+
* CloudStack Root Admin keys have to be used.
|
|
16
|
+
* In order to connect to system vm's the private ssh key found on the CloudStack management server under /var/lib/cloud/management/.ssh/id_rsa are required.
|
|
17
|
+
* The system vm's must be reachable on the Cloudstack Management Network over SSH (default port 3922) from the Nagios server executing the checks (check with 'ssh -i /var/lib/cloud/management/.ssh/id_rsa -p 3922 <router_mgmt_ip>').
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
@@ -32,7 +32,7 @@ Create the initial configuration:
|
|
|
32
32
|
$ cs-nagios setup
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
cloudstack-nagios expects to find a
|
|
35
|
+
cloudstack-nagios expects to find a configuration file with the API URL and your CloudStack credentials in your home directory named .cloudstack-cli.yml. If the file is located elsewhere you can specify the location using the --config option.
|
|
36
36
|
|
|
37
37
|
cloudstack-nagios supports multiple environments using the --environment option.
|
|
38
38
|
|
|
@@ -66,8 +66,8 @@ Generate all configuration files:
|
|
|
66
66
|
```sh
|
|
67
67
|
$ cs-nagios nagios_config generate all
|
|
68
68
|
```
|
|
69
|
-
You can also generate each config file
|
|
70
|
-
The following types are
|
|
69
|
+
You can also generate each config file individually.
|
|
70
|
+
The following types are available:
|
|
71
71
|
|
|
72
72
|
```sh
|
|
73
73
|
$ cs-nagios nagios_config list
|
|
@@ -85,13 +85,13 @@ storage_pools
|
|
|
85
85
|
|
|
86
86
|
### System VM checks
|
|
87
87
|
|
|
88
|
-
For all vm checks access to the
|
|
88
|
+
For all vm checks access to the CloudStack management network is required in order to run the checks via SSH or SNMP.
|
|
89
89
|
|
|
90
90
|
#### Types
|
|
91
91
|
|
|
92
92
|
cloudstack-nagios differentiates between 2 different types of system vm's:
|
|
93
93
|
* routers: `cs-nagios check router`
|
|
94
|
-
* secondary storage
|
|
94
|
+
* secondary storage vm's and console proxies: `cs-nagios check system_vm`
|
|
95
95
|
|
|
96
96
|
#### Checks
|
|
97
97
|
|
|
@@ -103,7 +103,7 @@ General Checks
|
|
|
103
103
|
* network - measure network usage
|
|
104
104
|
* fs_rw - check if the root file system is writeable
|
|
105
105
|
* rootfs_rw - check if the root file system is writeable (wrapper for fs_rw with mount point /)
|
|
106
|
-
* disk_usage - check the
|
|
106
|
+
* disk_usage - check the disks space usage of the root volume
|
|
107
107
|
|
|
108
108
|
Checks for routers
|
|
109
109
|
* conntrack_connections, check the number of conntrack connections and set proper limits if needed
|
|
@@ -118,12 +118,12 @@ $ cs-nagios check router active_ftp --host 10.100.9.177
|
|
|
118
118
|
|
|
119
119
|
#### Enabling snmpd checks for system vms
|
|
120
120
|
|
|
121
|
-
If you want to check your system
|
|
121
|
+
If you want to check your system vm's with standard Nagios SNMP checks instead of checking over SSH, there are commands to configure snmpd on the machines and open the firewall.
|
|
122
122
|
|
|
123
123
|
* snmpd_config enable - goes to all the routers and configure snmpd
|
|
124
124
|
* snmpd_config check - test if port TCP 161 is reachable on routers
|
|
125
125
|
|
|
126
|
-
Note: If you want to use snmp checks, you have to adapt the
|
|
126
|
+
Note: If you want to use snmp checks, you have to adapt the Nagios configuration files accordingly.
|
|
127
127
|
|
|
128
128
|
### Capacity checks
|
|
129
129
|
|
|
@@ -137,7 +137,7 @@ $ cs-nagios check capacity memory --zone ZUERICH_IX
|
|
|
137
137
|
|
|
138
138
|
### Storage pool checks
|
|
139
139
|
|
|
140
|
-
Checks the available disk space on
|
|
140
|
+
Checks the available disk space on CloudStack storage pools.
|
|
141
141
|
|
|
142
142
|
Example:
|
|
143
143
|
|
data/cloudstack-nagios.gemspec
CHANGED
|
@@ -21,11 +21,11 @@ Gem::Specification.new do |gem|
|
|
|
21
21
|
gem.rdoc_options = %w[--line-numbers --inline-source]
|
|
22
22
|
|
|
23
23
|
gem.add_development_dependency('rdoc')
|
|
24
|
-
gem.add_development_dependency('rake', '~> 10.3
|
|
24
|
+
gem.add_development_dependency('rake', '~> 10.3')
|
|
25
25
|
|
|
26
|
-
gem.add_dependency('cloudstack_client', '~> 1.
|
|
27
|
-
gem.add_dependency('thor', '~> 0.19
|
|
28
|
-
gem.add_dependency('erubis', '~> 2.7
|
|
29
|
-
gem.add_dependency('sshkit', '~> 1.3
|
|
30
|
-
gem.add_dependency('highline', '~> 1.6
|
|
26
|
+
gem.add_dependency('cloudstack_client', '~> 1.2')
|
|
27
|
+
gem.add_dependency('thor', '~> 0.19')
|
|
28
|
+
gem.add_dependency('erubis', '~> 2.7')
|
|
29
|
+
gem.add_dependency('sshkit', '~> 1.3')
|
|
30
|
+
gem.add_dependency('highline', '~> 1.6')
|
|
31
31
|
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.18.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nik Wolfgramm
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rdoc
|
|
@@ -31,84 +31,84 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: 10.3
|
|
34
|
+
version: '10.3'
|
|
35
35
|
type: :development
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 10.3
|
|
41
|
+
version: '10.3'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: cloudstack_client
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
46
|
- - "~>"
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: 1.
|
|
48
|
+
version: '1.2'
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
53
|
- - "~>"
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 1.
|
|
55
|
+
version: '1.2'
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: thor
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 0.19
|
|
62
|
+
version: '0.19'
|
|
63
63
|
type: :runtime
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
67
|
- - "~>"
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.19
|
|
69
|
+
version: '0.19'
|
|
70
70
|
- !ruby/object:Gem::Dependency
|
|
71
71
|
name: erubis
|
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
74
|
- - "~>"
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: 2.7
|
|
76
|
+
version: '2.7'
|
|
77
77
|
type: :runtime
|
|
78
78
|
prerelease: false
|
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
|
81
81
|
- - "~>"
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: 2.7
|
|
83
|
+
version: '2.7'
|
|
84
84
|
- !ruby/object:Gem::Dependency
|
|
85
85
|
name: sshkit
|
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
|
88
88
|
- - "~>"
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 1.3
|
|
90
|
+
version: '1.3'
|
|
91
91
|
type: :runtime
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - "~>"
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: 1.3
|
|
97
|
+
version: '1.3'
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: highline
|
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
|
102
102
|
- - "~>"
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
version: 1.6
|
|
104
|
+
version: '1.6'
|
|
105
105
|
type: :runtime
|
|
106
106
|
prerelease: false
|
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements:
|
|
109
109
|
- - "~>"
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
|
-
version: 1.6
|
|
111
|
+
version: '1.6'
|
|
112
112
|
description: cloudstack-nagios generates nagios configuration and checks for monitoring
|
|
113
113
|
CloudStack with nagios.
|
|
114
114
|
email:
|
|
@@ -125,6 +125,7 @@ files:
|
|
|
125
125
|
- LICENSE.txt
|
|
126
126
|
- README.md
|
|
127
127
|
- Rakefile
|
|
128
|
+
- bin/cloudstack-nagios
|
|
128
129
|
- bin/cs-nagios
|
|
129
130
|
- cloudstack-nagios.gemspec
|
|
130
131
|
- lib/cloudstack-nagios/base.rb
|