zabbix-monitor 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 8bae7b9235c377bf9f4d2afefbe1ec6931d93f97
4
- data.tar.gz: 87cd0f3ec5028abfc70bc90f0e818d9fcb87dfb7
3
+ metadata.gz: a34ac18f7d026ea8f45f2e3abc2a089f1e6a7afd
4
+ data.tar.gz: e62f0de7718341dba40eb4c1a27da457e9a4f97d
5
5
  SHA512:
6
- metadata.gz: da101cbd010d4b74674633328432e7c6dc76785745ac24c71df4c65469b913b723cd30238b22c81090be14108ba773df2886f50dcc0882417f708835097ea89d
7
- data.tar.gz: 278e327299e5c08aeb1107754fe0db5876d3d993d411d5dd93a5973fd335fc3f92cfe1754acbfb3ff59fa727743bdfe70628ad45f56248bf45f93fdde5b29faf
6
+ metadata.gz: 4fe4c1309b9a5ba721adcae3aed9f525c18778dfcc850f505ca565922f6f730c5af93ba0962222ca0c556fec84fbb121af77305ab72741d5e0b5acbe849371a9
7
+ data.tar.gz: de489e6bbb4e9abdebee4f27ae63a80ccaf3c11856fcd72e2e04147a4606d1d82c677e67ab350f5282589a4bee5d44100bf49b0ee67b2210a3e097f66a64dc05
@@ -41,7 +41,7 @@ module Zabbix
41
41
  # @return [Yell] creates a new or returns the +Yell+ logger instance
42
42
  def logger
43
43
  @logger ||= Yell.new do |l|
44
- l.adapter :datefile, :filename => self.config.log_file_path, :symlink => false
44
+ l.adapter self.config.log_adapter, :filename => self.config.log_file_path, :symlink => false
45
45
  end
46
46
  end
47
47
  end
@@ -20,14 +20,33 @@ module Zabbix
20
20
 
21
21
  # @return [String] the zabbix agentd config file location
22
22
  attr_accessor :config_file_path
23
+
23
24
  # @note
24
25
  # (optional) Defaults to +./log/#{RACK_ENV}.log+
25
26
  # @return [String] The zabbix-monitor log file location (optional)
26
27
  attr_accessor :log_file_path
28
+
29
+ # @overload log_adapter
30
+ # @return [Symbol] The zabbix-monitor log adapter
31
+ # @overload log_adapter=(value)
32
+ # Sets the yell / zabbix-monitor log adapter
33
+ # See https://github.com/rudionrails/yell#usage for more information (optional)
34
+ #
35
+ # Options:
36
+ # :stdout logs to STDOUT
37
+ # :stderr logs to STDERR
38
+ # :file logs to a file
39
+ # :datefile logs to a timestamped file
40
+ # @param value [Symbol] the log_adapter
41
+ # @return [Symbol] the new log_adapter
42
+ attr_accessor :log_adapter
43
+
27
44
  # @return [String] the zabbix hostname
28
45
  attr_accessor :host_name
46
+
29
47
  # @return [Array<Symbol>] the set of rules to monitor
30
48
  attr_accessor :rules
49
+
31
50
  # @overload mode
32
51
  # @return [Symbol] the mode zabbix-monitor uses to process the results of the rules
33
52
  # @overload mode=(value)
@@ -56,5 +75,9 @@ module Zabbix
56
75
  @log_file_path || nil
57
76
  end
58
77
 
78
+ def log_adapter
79
+ @log_adapter || :file
80
+ end
81
+
59
82
  end
60
83
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'zabbix-monitor'
7
- spec.version = '0.0.7'
7
+ spec.version = '0.0.8'
8
8
  spec.authors = ['Robert Jan de Gelder', 'Manuel van Rijn']
9
9
  spec.email = ['r.degelder@sping.nl', 'm.vanrijn@sping.nl']
10
10
  spec.description = 'Zabbix application monitoring'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Jan de Gelder
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-18 00:00:00.000000000 Z
12
+ date: 2014-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rufus-scheduler