riemann-babbler 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/riemann-babbler CHANGED
@@ -7,6 +7,7 @@ require 'configatron'
7
7
  require 'logger'
8
8
  require 'resolv'
9
9
  require 'sequel'
10
+ require 'socket'
10
11
 
11
12
  require File.expand_path('../../lib/riemann/version', __FILE__)
12
13
  require File.expand_path('../../lib/start_helpers', __FILE__)
data/config.yml CHANGED
@@ -3,6 +3,7 @@ riemann:
3
3
  port: 5555
4
4
  proto: auto # auto use tcp + udp(max size 16384), tcp - tcp only
5
5
  interval: 60 # update interval for all plugins
6
+ use_fqdn: true
6
7
 
7
8
  logger:
8
9
  level: DEBUG
@@ -68,7 +68,7 @@ module Riemann
68
68
  end
69
69
 
70
70
  def get_hostname
71
- hostname = File.read('/proc/sys/kernel/hostname').strip.downcase
71
+ hostname = options.riemann.use_fqdn.nil? ? File.read('/proc/sys/kernel/hostname').strip.downcase : Socket.gethostbyname(Socket.gethostname).first
72
72
  if options.riemann.installation.nil?
73
73
  hostname += options.riemann.suffix unless options.riemann.suffix.nil?
74
74
  else
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-22 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -2461498524286448004
168
+ hash: 2248343837575612410
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: