mtr_monitor 0.5.0 → 0.5.1
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/lib/mtr_monitor.rb +2 -2
- data/lib/mtr_monitor/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: 3d142d1340651cfbff92f5025f77d7d676074f7e
|
4
|
+
data.tar.gz: c76308cee28bc3e09c63980b4d8e71ce73067011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b166329ca5de218c0e3c1641c1c759feb0f50d58511229e373102d47498f1088c811f6b1bb5dfc0b5a349e1f0ae792ef07657723595738799b1176fdfd6bca8
|
7
|
+
data.tar.gz: fa79972410e2e683bdd7dd60c8ba5409e54e035b0d2623121a86bec95d82a4c12d20a9c35853c0168dfd810204c1064407df0430861195422f5e92d7975f1f6c
|
data/Gemfile.lock
CHANGED
data/lib/mtr_monitor.rb
CHANGED
@@ -26,8 +26,8 @@ module MtrMonitor
|
|
26
26
|
puts "S3 Path : #{@s3_path}"
|
27
27
|
|
28
28
|
run "sudo mkdir -p /var/log/mtr"
|
29
|
-
run "sudo
|
30
|
-
run "AWS_ACCESS_KEY_ID='#{@aws_access_key_id}' AWS_SECRET_ACCESS_KEY='#{@aws_secret_access_key}' aws s3 cp #{@log_path} #{@s3_path}"
|
29
|
+
run "sudo bash -c 'mtr --report #{@mtr_options} #{@domain} > #{@log_path}'"
|
30
|
+
run "AWS_ACCESS_KEY_ID='#{@aws_access_key_id}' AWS_SECRET_ACCESS_KEY='#{@aws_secret_access_key}' bash -c 'aws s3 cp #{@log_path} #{@s3_path}'"
|
31
31
|
end
|
32
32
|
|
33
33
|
def submit_metrics
|
data/lib/mtr_monitor/version.rb
CHANGED