cloudscopes 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cloudscopes-setup +1 -2
- data/config/cron.config +1 -1
- data/config/monitoring.yaml +0 -2
- data/lib/cloudscopes/system.rb +3 -1
- data/lib/cloudscopes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12c28cff3b08f8a0d599ae7442e5480b0e5f9207
|
4
|
+
data.tar.gz: 449205b5ca33523bc9e860fa47268304de8b7e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac53ad9837c2b033693dd5a4be38c236bcbe98b64a7ef0ce019e834386e409f62c3b723f8a8faddbc84a6dfe731630949034be1c844f11c5f0b9ee81a7aeb4f
|
7
|
+
data.tar.gz: 8cd259ad6d2dac0e218b3770fa1c78715159cc1a2a50248e8e4e8270eab98c01e650687495331bcb1ba058179fb5b5516d6940d24c849bd581b393a0434659c0
|
data/bin/cloudscopes-setup
CHANGED
@@ -3,6 +3,5 @@
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
basedir = File.expand_path(File.dirname(__FILE__) + "/..")
|
6
|
-
FileUtils.mkdir_p '/etc/cloudscopes/monitor.d'
|
7
6
|
FileUtils.cp "#{basedir}/config/cron.config", '/etc/cron.d/cloudscopes-monitoring'
|
8
|
-
FileUtils.cp "#{basedir}/config/monitoring.yaml", '/etc/cloudscopes
|
7
|
+
FileUtils.cp "#{basedir}/config/monitoring.yaml", '/etc/cloudscopes-monitoring.yaml'
|
data/config/cron.config
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
PATH=$PATH:/usr/local/bin
|
2
|
-
*/1 * * * * root cloudscopes-monitor /etc/cloudscopes
|
2
|
+
*/1 * * * * root cloudscopes-monitor /etc/cloudscopes-monitoring.yaml
|
data/config/monitoring.yaml
CHANGED
data/lib/cloudscopes/system.rb
CHANGED
@@ -27,7 +27,9 @@ module Cloudscopes
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def bluepill_ok?(name)
|
30
|
-
|
30
|
+
bin = Dir['/usr/local/rvm/gems/ruby-*/bin/bluepill','/usr/local/bin/bluepill'].first
|
31
|
+
return false unless bin
|
32
|
+
%x(#{bin} #{name} status).split("\n").
|
31
33
|
select { |ln| ln =~ /pid:/ }.
|
32
34
|
collect { |ln| ln =~ /pid:(\d+).*:\s*(.*)/ and { pid: $1, status: $2 } }.
|
33
35
|
all? { |proc| proc[:status] == "up"}
|
data/lib/cloudscopes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudscopes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oded Arbel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|