city-watch 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/city_watch/watchmen/nginx.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
@@ -13,8 +13,8 @@ class Nginx
|
|
13
13
|
acc
|
14
14
|
end
|
15
15
|
|
16
|
-
if `curl -I http://localhost/nginx_status`[/^HTTP\/1.1 200/]
|
17
|
-
active, garbage, nums, open = `curl http://localhost/nginx_status`.split("\n")
|
16
|
+
if `curl -I -silent http://localhost/nginx_status`[/^HTTP\/1.1 200/]
|
17
|
+
active, garbage, nums, open = `curl -silent http://localhost/nginx_status`.split("\n")
|
18
18
|
accepts, handled, requests = nums.split
|
19
19
|
garbage, reading, garbage, writing, garbage, waiting = open.split
|
20
20
|
out = out.merge({:active_connections => active.gsub(/.*:/,'').to_i, :accepted => accepts.to_i, :handled => handled.to_i, :requests => requests.to_i, :reading => reading.to_i, :writing => writing.to_i, :waiting => waiting.to_i})
|
data/lib/version.rb
CHANGED