recmon 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/recmon/monitor.rb +3 -0
  3. metadata +20 -5
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == Version 1.0.5
2
+ - daemonize the process
3
+
1
4
  == Version 1.0.4
2
5
  - Added DiskfreeSensor
3
6
 
@@ -1,4 +1,6 @@
1
1
  require 'time'
2
+ require 'rubygems'
3
+ require 'daemons'
2
4
 
3
5
  module Recmon
4
6
 
@@ -32,6 +34,7 @@ class Monitor
32
34
  }
33
35
  open_log()
34
36
  log("Recmon is monitoring.")
37
+ Daemons.daemonize()
35
38
  monitor()
36
39
  while sleep(@freq)
37
40
  monitor()
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recmon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan
@@ -16,8 +16,23 @@ bindir: bin
16
16
  cert_chain: []
17
17
 
18
18
  date: 2012-09-29 00:00:00 Z
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: daemons
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 1
29
+ segments:
30
+ - 1
31
+ - 1
32
+ - 9
33
+ version: 1.1.9
34
+ type: :runtime
35
+ version_requirements: *id001
21
36
  description: "\tRecmon generates log entries for a range of events that are not typically logged.\n Once they are logged, they can be analysed to generate alerts.\n\n REC (Ruby Event Correlation) is the tool that correlates events across time to determine\n if a situation is abnormal, and so generates fewer, more meaningful alerts\n by email or instant message.\n\n So Recmon + REC = lightweight Nagios\n"
22
37
  email: dev.recmon@finalstep.com.au
23
38
  executables: []