lib/riemann/babbler/plugin.rb in riemann-babbler-0.8.2 vs lib/riemann/babbler/plugin.rb in riemann-babbler-0.8.3

- old
+ new

@@ -66,14 +66,16 @@ event.delete(:as_diff) report(event) end def get_hostname + # разбор fqdn if options.riemann.use_fqdn.nil? || options.riemann.use_fqdn == false hostname = File.read('/proc/sys/kernel/hostname').strip.downcase else hostname = Socket.gethostbyname(Socket.gethostname).first end + # разбор инсталяции if options.riemann.installation.nil? hostname += options.riemann.suffix unless options.riemann.suffix.nil? else hostname += ( "." + options.riemann.installation ) end