site24x7_apminsight 1.8.5 → 1.8.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -308,11 +308,24 @@ module ManageEngine
308
308
  def getEnvData
309
309
  env = Hash.new
310
310
  begin
311
- ENV.to_hash.each do |key, value|
312
- env[key] = value
313
- end
314
- #env["Application Path"]="#{Rails.root}"
311
+ env["OS"] = Gem::Platform.local.os
312
+ env["OS Version"] = Gem::Platform.local.version
313
+ env["OS Arch"] = Gem::Platform.local.cpu
314
+ env["Ruby Version"] = "#{RUBY_VERSION}"
315
+ gemSpecs = Gem.loaded_specs[@obj.constants.s247_apm_gem]
316
+ if (gemSpecs == nil)
317
+ gemSpecs = Gem.loaded_specs[@obj.constants.apm_gem]
318
+ end
319
+ if (gemSpecs != nil)
320
+ env["Agent Installed Path"] = gemSpecs.full_gem_path
321
+ end
322
+
323
+ # ENV.to_hash.each do |key, value|
324
+ # env[key] = value
325
+ # end
326
+ env["Application Path"] = "#{Dir.pwd}"
315
327
  rescue Exception=>e
328
+ @obj.log.warn "Error in capturing env data. #{e.message}"
316
329
  end
317
330
  env
318
331
  end
@@ -12,8 +12,8 @@ module ManageEngine
12
12
  def initialize
13
13
  @conf_location=ENV.has_key?('APMINSIGHT_HOME') ? ENV['APMINSIGHT_HOME']+"/" : "./"
14
14
  #File path for APM Conf file
15
- @apm_gem=@conf_location + "apminsight"
16
- @s247_apm_gem=@conf_location + "site24x7_apminsight"
15
+ @apm_gem="apminsight"
16
+ @s247_apm_gem="site24x7_apminsight"
17
17
 
18
18
  #File path for APM Conf file
19
19
  @apm_conf=@conf_location + "apminsight.conf"
data/lib/agent/version.rb CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  module ManageEngine
8
8
  class APMInsight
9
- VERSION = '1.8.5'
9
+ VERSION = '1.8.5.1'
10
10
  MAJOR_VERSION = '1.8'
11
- MINOR_VERSION = '5'
11
+ MINOR_VERSION = '5.1'
12
12
  end
13
13
  end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 8
8
8
  - 5
9
- version: 1.8.5
9
+ - 1
10
+ version: 1.8.5.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Adithyan P
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2021-06-29 00:00:00 +05:30
18
+ date: 2021-07-06 00:00:00 +05:30
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency