apminsight 1.8.7 → 1.8.8
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.
|
@@ -24,7 +24,17 @@ module ManageEngine
|
|
|
24
24
|
@alreadyconnected = checkAgentInfo
|
|
25
25
|
@site24x7 = checkLicenseFile
|
|
26
26
|
if (@site24x7)
|
|
27
|
-
@site24x7url =
|
|
27
|
+
@site24x7url = @license_key.start_with?('eu_') ? @obj.constants.site24x7EUurl :
|
|
28
|
+
@license_key.start_with?('cn_') ? @obj.constants.site24x7CNurl :
|
|
29
|
+
@license_key.start_with?('au_') ? @obj.constants.site24x7AUurl :
|
|
30
|
+
@license_key.start_with?('in_') ? @obj.constants.site24x7INurl :
|
|
31
|
+
@license_key.start_with?('gd_') ? @obj.constants.site24x7GDurl :
|
|
32
|
+
@license_key.start_with?('jp_') ? @obj.constants.site24x7JPurl :
|
|
33
|
+
@license_key.start_with?('gd_') ? @obj.constants.site24x7GDurl :
|
|
34
|
+
@license_key.start_with?('ca_') ? @obj.constants.site24x7CAurl :
|
|
35
|
+
@license_key.start_with?('sa_') ? @obj.constants.site24x7SAurl :
|
|
36
|
+
@license_key.start_with?('uk_') ? @obj.constants.site24x7UKurl :
|
|
37
|
+
@license_key.start_with?('in_hd_') ? @obj.constants.site24x7HDFCurl : @obj.constants.site24x7USurl
|
|
28
38
|
end
|
|
29
39
|
@db_operations =["select","insert","update","delete"]
|
|
30
40
|
urlMergePattern
|
|
@@ -300,6 +310,14 @@ module ManageEngine
|
|
|
300
310
|
if (@hostType != nil)
|
|
301
311
|
agentdata["host.type"]=@hostType
|
|
302
312
|
end
|
|
313
|
+
begin
|
|
314
|
+
fqdn = Addrinfo.getaddrinfo(Socket.gethostname, nil).first.getnameinfo.first
|
|
315
|
+
if (fqdn != nil)
|
|
316
|
+
agentdata["fqdn"] = fqdn
|
|
317
|
+
end
|
|
318
|
+
rescue Exception=>e
|
|
319
|
+
@obj.log.warn("Unable to get fqdn value #{e.message}")
|
|
320
|
+
end
|
|
303
321
|
data["agent_info"]=agentdata
|
|
304
322
|
data["environment"]=getEnvData
|
|
305
323
|
data["custom_config_info"]=getAgentConfigData
|
|
@@ -3,7 +3,7 @@ module ManageEngine
|
|
|
3
3
|
class APMConstants
|
|
4
4
|
|
|
5
5
|
attr_reader :conf_location, :apm_gem,:s247_apm_gem,:apm_conf,:agent_conf,:connection_open_timeout,:connection_read_timeout,:connect_uri,:connect_data_uri,:connect_trace_uri,:connect_config_update_uri,:mergepattern_conf
|
|
6
|
-
attr_reader :site24x7USurl, :site24x7EUurl, :site24x7CNurl, :site24x7INurl, :site24x7AUurl, :site24x7GDurl, :site24x7JPurl
|
|
6
|
+
attr_reader :site24x7USurl, :site24x7EUurl, :site24x7CNurl, :site24x7INurl, :site24x7AUurl, :site24x7GDurl, :site24x7JPurl, :site24x7CAurl, :site24x7SAurl, :site24x7UKurl, :site24x7HDFCurl
|
|
7
7
|
attr_reader :licence_exceeds,:licence_expired,:unmanage_agent,:manage_agent,:agent_config_updated,:error_notfound,:error_server,:delete_agent,:response_code,:custom_config_info, :agent_specific_info
|
|
8
8
|
attr_reader :mf_transaction,:mf_separator,:mf_db,:mf_apdex,:mf_namespace,:mf_name,:mf_all,:agent_store,:agent_lock,:mf_overflow
|
|
9
9
|
attr_reader :mf_logmetric, :mf_logmetric_warning, :mf_exception_st, :mf_err_st, :mf_loginfo, :mf_loginfo_time, :mf_loginfo_level, :mf_loginfo_str, :mf_loginfo_err_clz, :mf_loginfo_st, :mf_loginfo_level_warn
|
|
@@ -57,6 +57,10 @@ module ManageEngine
|
|
|
57
57
|
@site24x7INurl = "https://plusinsight.site24x7.in/"
|
|
58
58
|
@site24x7GDurl = "https://gdplusinsight.site24x7.com/"
|
|
59
59
|
@site24x7JPurl = "https://plusinsight.site24x7.jp/"
|
|
60
|
+
@site24x7CAurl = "https://plusinsight.site24x7.ca/"
|
|
61
|
+
@site24x7SAurl = "https://plusinsight.site24x7.sa/"
|
|
62
|
+
@site24x7UKurl = "https://plusinsight.site24x7.uk/"
|
|
63
|
+
@site24x7HDFCurl = "https://hdplusinsight.site24x7.in/"
|
|
60
64
|
|
|
61
65
|
#Response Codes
|
|
62
66
|
@licence_expired = 701
|
data/lib/agent/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
7
|
- 8
|
|
8
|
-
-
|
|
9
|
-
version: 1.8.
|
|
8
|
+
- 8
|
|
9
|
+
version: 1.8.8
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Adithyan P
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date:
|
|
17
|
+
date: 2024-01-31 00:00:00 +05:30
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|