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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ada32353df538d7e72569a50d31b5974adbbe8a9
4
- data.tar.gz: e61a1366946ba68aa44fa829eca02323829c1fbe
3
+ metadata.gz: 12c28cff3b08f8a0d599ae7442e5480b0e5f9207
4
+ data.tar.gz: 449205b5ca33523bc9e860fa47268304de8b7e50
5
5
  SHA512:
6
- metadata.gz: 8b43bb5e42ed3074aba77fa6bab03674f52b5654c33fdb6bc63176c0d71c552c201aaeeaebd63b41c8f951893c18d89ac1a915a9da4389ecbbdda5b699299930
7
- data.tar.gz: 638a56d9681f519a284c70208cbe1f230e4c7959ef7f825eb7aca86d262957d364e4f428202bcff07d647e9198fb15f15fcccf269743f9662e302beec253fd01
6
+ metadata.gz: fac53ad9837c2b033693dd5a4be38c236bcbe98b64a7ef0ce019e834386e409f62c3b723f8a8faddbc84a6dfe731630949034be1c844f11c5f0b9ee81a7aeb4f
7
+ data.tar.gz: 8cd259ad6d2dac0e218b3770fa1c78715159cc1a2a50248e8e4e8270eab98c01e650687495331bcb1ba058179fb5b5516d6940d24c849bd581b393a0434659c0
@@ -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/monitor.conf'
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/monitor.conf
2
+ */1 * * * * root cloudscopes-monitor /etc/cloudscopes-monitoring.yaml
@@ -1,6 +1,4 @@
1
1
  settings:
2
- configdir: /etc/cloudscopes/monitor.d
3
- interval: 60
4
2
  provider: cloudwatch
5
3
  key: AWS_KEY_ID
6
4
  secret: AWS_SECRET_KEY
@@ -27,7 +27,9 @@ module Cloudscopes
27
27
  end
28
28
 
29
29
  def bluepill_ok?(name)
30
- %x(/usr/local/bin/bluepill wfs status).split("\n").
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"}
@@ -1,3 +1,3 @@
1
1
  module Cloudscopes
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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.0
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-08-05 00:00:00.000000000 Z
11
+ date: 2015-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk