bloopletech-webstats 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ All the client applications depend on the server application being run to work.
32
32
 
33
33
  h2. Clients
34
34
 
35
- If all you want to do is be able to view the performance statistics for your server in a web browser, then you don't need to use any of these clients; going to http://<server's hostname>:9970/ will do just fine. But if you want to have Growl or email notification when something goes wrong, without having to look at a web page all the time, then you'll want one of the client applications that come with Webstats.
35
+ If all you want to do is be able to view the performance statistics for your server in a web browser, then you don't need to use any of these clients; going to http://&lt;server's hostname&gt;:9970/ will do just fine. But if you want to have Growl or email notification when something goes wrong, without having to look at a web page all the time, then you'll want one of the client applications that come with Webstats.
36
36
 
37
37
  There are currently two client applications available:
38
38
 
@@ -40,6 +40,7 @@ There are currently two client applications available:
40
40
  * A Growl notifier; documentation is available in clients/growl_notifier/README.textile
41
41
 
42
42
  The notifiers that ship with Webstats can be started in 2 ways; if you have installed webstats via rubygems, run:
43
+
43
44
  <pre><code>~$ webstats_<notifier_name></code></pre>
44
45
 
45
46
  For example, to run the email notifier, you can run webstats_email_notifier. If you installed webstats outside of rubygems, first change directory into the directory containing webstats, then run:
@@ -73,7 +74,6 @@ To run the server app, ssh into the computer you want to monitor. then run:
73
74
 
74
75
  h2. Todo
75
76
 
76
- * Add email notifier to client applications.
77
77
  * More client applications.
78
78
  * Extend server to work on *BSD (including OS X).
79
79
  * Make webstats server optionally install itself to run at boot.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 10
4
- :patch: 4
4
+ :patch: 5
@@ -11,7 +11,7 @@ class DataProviders::DiskActivity
11
11
  while(true)
12
12
  time = (Time.new.to_f * 1000).to_i
13
13
 
14
- reads, writes = IO.readlines("/proc/diskstats").map { |l| parts = l.split; [parts[5].to_i, parts[7].to_i] }.inject([0, 0]) { |sum, vals| [sum[0] + vals[0], sum[1] + vals[1]] }
14
+ reads, writes = IO.readlines("/proc/diskstats").map { |l| parts = l.split; [parts[5].to_i, parts[9].to_i] }.inject([0, 0]) { |sum, vals| [sum[0] + vals[0], sum[1] + vals[1]] }
15
15
 
16
16
  if first_time
17
17
  first_time = false
@@ -28,7 +28,7 @@ class DataProviders::DiskActivity
28
28
  end
29
29
 
30
30
  def get
31
- { :reads => @reads_sec / 1024.0, :writes => @writes_sec / 1024.0 }
31
+ { :reads => @reads_sec / 1024.0 / 1024.0, :writes => @writes_sec / 1024.0 / 1024.0 }
32
32
  end
33
33
 
34
34
  def renderer
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{webstats}
5
- s.version = "0.10.4"
5
+ s.version = "0.10.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Brenton Fletcher"]
9
- s.date = %q{2009-05-15}
9
+ s.date = %q{2009-06-27}
10
10
  s.description = %q{Monitor server CPU/Memory/Disk Usage/URL Loading, so that you can view those statistics on a web page, as well as providing an interface to client prorams to read those statistics.}
11
11
  s.email = %q{i@bloople.net}
12
12
  s.executables = ["webstats", "webstats_growl_notifier", "webstats_email_notifier"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloopletech-webstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brenton Fletcher
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-15 00:00:00 -07:00
12
+ date: 2009-06-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15