monitoring-client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/monitoringd CHANGED
@@ -18,7 +18,7 @@ module Monitoring
18
18
 
19
19
  def initialize()
20
20
  @udp_port = 57475
21
- @daemon_mode = false
21
+ @daemon_mode = true
22
22
  @monitoring_endpoint = "http://metrics.trim.za.net"
23
23
  @pid_file_fn = "/var/run/monitoringd.pid"
24
24
  @sleep_period = 60
@@ -123,6 +123,7 @@ module Monitoring
123
123
 
124
124
  Process.setsid
125
125
  pid_file_fd.puts(Process.pid)
126
+ pid_file_fd.flush()
126
127
 
127
128
  Dir.chdir("/")
128
129
  File.umask(0000)
@@ -32,6 +32,7 @@ module Monitoring
32
32
  "metric_name" => metric_name,
33
33
  "metric_units" => metric.units,
34
34
  "sample_value" => metric.value,
35
+ "sampled_at" => Time.now(),
35
36
  })
36
37
  end
37
38
  end
@@ -1,5 +1,5 @@
1
1
  module Monitoring
2
2
  module Client
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monitoring-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marc Bowes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-06 00:00:00 +02:00
18
+ date: 2011-04-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency