mission_control-servers 0.1.0 → 0.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e260e5cc3de9e7b0faf2f5a3c07caddfc398802dbdc95a695e667639c39c394
|
4
|
+
data.tar.gz: 4092d62a7d16bc73d69f504b6c72df2f9360193dd6aec8fd5cd12862c1951d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55073a06bcfb54e72896f64b1633b9983e394d2cf4f727eb95fa6131b9c32c42f78bd683c1ce27cb81d04f3af956e9e6dab5dd58c0b2ef5b780ef51356714e3c
|
7
|
+
data.tar.gz: 0ce16cfdce72db053874a5cfa6bed60e785f1a1fb49a8b7ab75dd6facdc9b648ad9765370392b5788aa5d52c2335dc914dd9cb2b6f1ead8fc5f68fcf5bc3b98d
|
@@ -25,7 +25,7 @@ module MissionControl::Servers
|
|
25
25
|
cpu_usage=$(vmstat 1 5 | awk 'NR==4 {print 100 - $15}')
|
26
26
|
mem_used=$(free -m | awk '/^Mem:/ {print $3}')
|
27
27
|
mem_free=$(free -m | awk '/^Mem:/ {print $7}')
|
28
|
-
disk_free=$(df -h | awk 'NF=="/"{print $4}')
|
28
|
+
disk_free=$(df -h | awk '$NF=="/"{print $4}')
|
29
29
|
hostname=$(hostname)
|
30
30
|
|
31
31
|
data="service[cpu]=$cpu_usage"
|