Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

Machine-agent

SOLVED

Machine-agent

Hello

 

Iám new in Appdynamics, i havetried to install machne-agent on my controller server, it appers in console but it´s not enabled how do i do that, i tried to set <sim-enabled> to true in the controller-info.xml file but it dosen´t work.

 

//Thomas

Machine-agent
8 REPLIES

Re: Machine-agent

Hi Thomas,


Can you share machine agent log and also check in your license screen if Server Monitoring Units are part of the license?

 

Regards,

Saradhi

Re: Machine-agent

here is a picture from lincense view

License.jpg

Logfile

 

[main] 29 Mar 2017 07:58:08,799 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.

[main] 29 Mar 2017 07:58:09,223 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]

[system-thread-0] 29 Mar 2017 07:58:15,127 INFO SecondStageSystem - Starting main system with features Features(features=[basic], reason=Features.Reason(message=, code=))

[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - ####################################################################################

[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - Agent Install Directory [/opt/AppDynamics/machine-agent]

[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - Using Agent Version [Machine Agent v4.2.15.0 GA Build Date 2017-03-01 12:21:46]

[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - JVM Runtime:

java.home=/opt/AppDynamics/machine-agent/jre

java.vm.vendor=Oracle Corporation

java.vm.name=Java HotSpot(TM) 64-Bit Server VM

java.runtime.version=1.8.0_111-b14

java.io.tmpdir=/tmp

user.language=en

user.country=US

user.variant=

Default locale=en_US

[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - OS Runtime:

os.name=Linux

os.arch=amd64

os.version=4.4.38-93-default

user.name=root

user.home=/root

user.dir=/opt/AppDynamics/machine-agent

[system-thread-0] 29 Mar 2017 07:58:15,698 INFO SystemAgent - JVM Args : -Dlog4j.configuration=file:/opt/AppDynamics/machine-agent/conf/logging/log4j.xml |

[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - JVM Runtime Name: 29506@prod-appdyn-01

[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - JVM PID: 29506

[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - Machine Agent is resolving bootstrap info....

[system-thread-0] 29 Mar 2017 07:58:15,836 INFO SystemAgent - Orchestration is disabled - disabling virtualization resolvers by default.

[system-thread-0] 29 Mar 2017 07:58:15,839 INFO SystemAgent - Full Agent Registration Info Resolver found system property [appdynamics.agent.create.agent.info.if.missing] for appdynamics.agent.create.agent.info.if.missing [false]

[system-thread-0] 29 Mar 2017 07:58:15,865 INFO SystemAgent - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]

[system-thread-0] 29 Mar 2017 07:58:15,874 INFO SystemAgent - Default IP Address Resolver found IP addresses [[fe80:0:0:0:250:56ff:feaa:15db%eth0, 172.20.220.197]]

[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using selfService [false]

[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using application name [null]

[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using tier name [null]

[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using node name [null]

[system-thread-0] 29 Mar 2017 07:58:15,884 INFO SystemAgent - XML Controller Info Resolver found controller host [prod-appdyn-01.prod.bolagsverket.se]

[system-thread-0] 29 Mar 2017 07:58:15,884 INFO SystemAgent - XML Controller Info Resolver found controller port [8090]

[system-thread-0] 29 Mar 2017 07:58:15,896 INFO SystemAgent - XML Agent Account Info Resolver using account name [customer1]

[system-thread-0] 29 Mar 2017 07:58:15,897 INFO SystemAgent - XML Agent Account Info Resolver using account access key [17e573a5-af57-4d5d-9c00-94f3a7bab797]

[system-thread-0] 29 Mar 2017 07:58:15,901 INFO SystemAgent - Keystore file /opt/AppDynamics/machine-agent/conf/cacerts.jks was not found

[system-thread-0] 29 Mar 2017 07:58:15,923 INFO SystemAgent - Machine Agent resolved bootstrap info!

[system-thread-0] 29 Mar 2017 07:58:15,923 INFO SystemAgent - Creating machine agent scheduler, pool size: 2

[system-thread-0] 29 Mar 2017 07:58:15,942 INFO SystemAgent - Creating machine agent monitor scheduler, pool size: 4

[system-thread-0] 29 Mar 2017 07:58:15,947 INFO SystemAgent - Started Agent Schedulers

[ConfigExecutor-0] 29 Mar 2017 07:58:15,950 INFO DefaultLegacyAgentRegistrationStateManager - Registered machine with machine ID [Optional.of(6)]

[ConfigExecutor-0] 29 Mar 2017 07:58:15,950 INFO DefaultLegacyAgentRegistrationStateManager - Scheduling System-Agent start...

[system-thread-0] 29 Mar 2017 07:58:16,196 INFO DefaultLegacyAgentRegistrationStateManager - Starting machine agent...

[system-thread-0] 29 Mar 2017 07:58:16,196 INFO SystemAgent - Starting Machine Agent....

[system-thread-0] 29 Mar 2017 07:58:16,197 INFO ControllerTimeSkewHandler - Skew Handler is : [enabled].

[system-thread-0] 29 Mar 2017 07:58:16,331 INFO ManagedMonitorDelegate - Started Agent Metric Generation Service

[system-thread-0] 29 Mar 2017 07:58:16,337 INFO ManagedMonitorDelegate - Event Service is : [enabled].

[system-thread-0] 29 Mar 2017 07:58:16,369 INFO ManagedMonitorDelegate - Metric Service is : [enabled].

[system-thread-0] 29 Mar 2017 07:58:16,383 INFO ManagedMonitorDelegate - Started Agent Env Properties Service

[system-thread-0] 29 Mar 2017 07:58:16,383 INFO ManagedMonitorDelegate - Scheduled Continuous Task Monitor with frequency [30000]ms

[system-thread-0] 29 Mar 2017 07:58:16,391 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/HardwareMonitor/monitor.xml

[system-thread-0] 29 Mar 2017 07:58:16,443 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]

[system-thread-0] 29 Mar 2017 07:58:16,455 INFO NodeMonitorManager - Initializing managed monitor [HardwareMonitor]

[system-thread-0] 29 Mar 2017 07:58:16,455 INFO ManagedMonitorDelegate - Not initializing managed monitor [HardwareMonitor] - Disabled in configuration file.

[system-thread-0] 29 Mar 2017 07:58:16,459 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/JavaHardwareMonitor/monitor.xml

[system-thread-0] 29 Mar 2017 07:58:16,463 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]

[system-thread-0] 29 Mar 2017 07:58:16,470 INFO MonitorConfigReader - Overriding enabled tag. new value = false

[system-thread-0] 29 Mar 2017 07:58:16,471 INFO NodeMonitorManager - Initializing managed monitor [JavaHardwareMonitor]

[system-thread-0] 29 Mar 2017 07:58:16,471 INFO ManagedMonitorDelegate - Not initializing managed monitor [SigarHardwareMonitor] - Disabled in configuration file.

[system-thread-0] 29 Mar 2017 07:58:16,471 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/analytics-agent/monitor.xml

[system-thread-0] 29 Mar 2017 07:58:16,477 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]

[system-thread-0] 29 Mar 2017 07:58:16,477 INFO NodeMonitorManager - Initializing managed monitor [analytics-agent]

[system-thread-0] 29 Mar 2017 07:58:16,477 INFO ManagedMonitorDelegate - Initializing managed monitor [AppDynamics Analytics Agent]

[system-thread-0] 29 Mar 2017 07:58:16,478 INFO ManagedMonitorDelegate - Executing managed monitor [AppDynamics Analytics Agent], task name [null]

[system-thread-0] 29 Mar 2017 07:58:16,478 INFO ManagedMonitorDelegate - Task [null] for monitor [AppDynamics Analytics Agent] is SCHEDULED

[system-thread-0] 29 Mar 2017 07:58:16,512 INFO InProcessLauncherTask - Found a directory [/opt/AppDynamics/machine-agent/monitors/analytics-agent/lib]

[system-thread-0] 29 Mar 2017 07:58:16,514 INFO InProcessLauncherTask - Working directory appears to be [/opt/AppDynamics/machine-agent/monitors/analytics-agent]

[system-thread-0] 29 Mar 2017 07:58:16,514 INFO AnalyticsAgentLauncher - The logs directory property [ad.dw.log.path] has been set to [/opt/AppDynamics/machine-agent/monitors/analytics-agent/../../logs]

[system-thread-0] 29 Mar 2017 07:58:16,514 INFO InProcessLauncherTask - Starting to execute actual task with parameters [{csvMethodArgs=/opt/AppDynamics/machine-agent/monitors/analytics-agent/conf/analytics-agent.properties, methodName=main, className=com.appdynamics.analytics.agent.AnalyticsAgent}]

[system-thread-0] 29 Mar 2017 07:58:23,601 INFO InProcessLauncherTask - Started [com.appdynamics.analytics.agent.AnalyticsAgent]

[system-thread-0] 29 Mar 2017 07:58:23,603 INFO NodeMonitorManager - Directory [/opt/AppDynamics/machine-agent/monitors/unmanaged] not found, continuing.

[system-thread-0] 29 Mar 2017 07:58:23,603 INFO AgentMonitorManager - Initialized System Monitor Manager with directory [/opt/AppDynamics/machine-agent/monitors]

[system-thread-0] 29 Mar 2017 07:58:23,603 INFO SystemAgent - Set up agent monitor manager

[system-thread-0] 29 Mar 2017 07:58:23,622 INFO SystemAgent - Orchestration is disabled - disabling one-way agent transport. The agent will not be able to execute workflow tasks.

[system-thread-0] 29 Mar 2017 07:58:23,662 INFO SystemAgentConfigManager - Scheduling configuration refresh at an interval of 60 seconds

[system-thread-0] 29 Mar 2017 07:58:23,668 INFO SystemAgentConfigManager - Configuration refresh task interval is 60 seconds

[system-thread-0] 29 Mar 2017 07:58:23,668 INFO SystemAgent - Configuration manager successfully configured

[system-thread-0] 29 Mar 2017 07:58:23,669 INFO RunbookHandler - Runbook Operation Execution is : [enabled].

[system-thread-0] 29 Mar 2017 07:58:23,669 INFO SystemAgent - Started AppDynamics Machine Agent Successfully.

[ExtensionStarter-ServerMonitoring] 29 Mar 2017 07:58:47,096 INFO SimAgentRepetitiveLoggingModule - The turnover time for the SIM agent repetitive logger is 5 minutes

[ConfigExecutor-0] 29 Mar 2017 07:58:47,303 INFO CrashGuardRunner - Not starting crash guard extension because it is disabled.To enable, please update the configuration enabled in CrashGuardConfig.yml.

[main] 29 Mar 2017 07:59:47,534 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.

[main] 29 Mar 2017 07:59:48,109 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]

[system-thread-0] 29 Mar 2017 07:59:48,811 INFO SecondStageSystem - Starting main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed))

[Thread-1] 29 Mar 2017 07:59:59,865 INFO SecondStageSystem - Stopping main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed)).

[Thread-2] 29 Mar 2017 08:00:16,086 INFO SystemAgent - Stopping Machine Agent....

[Thread-2] 29 Mar 2017 08:00:16,091 INFO SystemAgent - Shutting down agent scheduler manager

[Thread-2] 29 Mar 2017 08:00:16,095 ERROR SystemAgent - Error stopping agent scheduler manager

java.lang.RuntimeException: Failed to shut down top backends processor scheduler

at com.singularity.ee.agent.configuration.impl.AgentSchedulerManagerInstance.shutdownNow(AgentSchedulerManagerInstance.java:200)

at com.singularity.ee.agent.configuration.impl.AgentSchedulerManager.shutdownNow(AgentSchedulerManager.java:81)

at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:473)

at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)

at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)

Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)

at java.security.AccessController.checkPermission(AccessController.java:884)

at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)

at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)

at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)

at com.singularity.ee.agent.configuration.impl.AgentSchedulerManagerInstance.shutdownNow(AgentSchedulerManagerInstance.java:198)

... 4 more

[Thread-2] 29 Mar 2017 08:00:16,112 INFO SystemAgent - Shutting down agent monitor manager

[Thread-1] 29 Mar 2017 08:00:16,113 INFO SecondStageSystem - Stopping main system with features Features(features=[basic], reason=Features.Reason(message=, code=)).

[Thread-2] 29 Mar 2017 08:00:16,112 INFO InProcessLauncherTask - Stopped

[Thread-2] 29 Mar 2017 08:00:16,113 INFO ManagedMonitorDelegate - Scheduled Task [AppDynamics Analytics Agent] Stopped

[Thread-2] 29 Mar 2017 08:00:16,113 INFO ManagedMonitorDelegate - shutdown metric generation service.

[Thread-2] 29 Mar 2017 08:00:16,113 INFO SystemAgent - Stopped agent monitor manager

[Thread-2] 29 Mar 2017 08:00:16,113 INFO SystemAgent - Shutting down scheduler

[Thread-2] 29 Mar 2017 08:00:16,114 WARN SystemAgent - Error stopping scheduler

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)

at java.security.AccessController.checkPermission(AccessController.java:884)

at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)

at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)

at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)

at com.singularity.ee.agent.systemagent.Agent.stopScheduler(Agent.java:522)

at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:490)

at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)

at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)

[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Stopped scheduler

[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Shutting down monitor scheduler

[Thread-2] 29 Mar 2017 08:00:16,114 WARN SystemAgent - Failed to shut down monitor scheduler.

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)

at java.security.AccessController.checkPermission(AccessController.java:884)

at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)

at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)

at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)

at com.singularity.ee.agent.systemagent.Agent.stopMonitorScheduler(Agent.java:509)

at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:491)

at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)

at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)

[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Machine Agent Stopped!

[Thread-1] 29 Mar 2017 08:00:16,141 INFO ManagedScheduledThreadPool - Shutting down extensions thread pool

[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Stopping Machine Agent....

[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Shutting down agent scheduler manager

[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Shutting down agent scheduler manager

[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Machine Agent Stopped!

[main] 29 Mar 2017 08:00:37,783 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.

[main] 29 Mar 2017 08:00:38,157 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]

[system-thread-0] 29 Mar 2017 08:00:38,490 INFO SecondStageSystem - Starting main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed))

 

 

 

Re: Machine-agent

Hello here is the logfile.

[main] 29 Mar 2017 07:58:08,799 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.
[main] 29 Mar 2017 07:58:09,223 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]
[system-thread-0] 29 Mar 2017 07:58:15,127 INFO SecondStageSystem - Starting main system with features Features(features=[basic], reason=Features.Reason(message=, code=))
[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - ####################################################################################
[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - Agent Install Directory [/opt/AppDynamics/machine-agent]
[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - Using Agent Version [Machine Agent v4.2.15.0 GA Build Date 2017-03-01 12:21:46]
[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - JVM Runtime:
java.home=/opt/AppDynamics/machine-agent/jre
java.vm.vendor=Oracle Corporation
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.runtime.version=1.8.0_111-b14
java.io.tmpdir=/tmp
user.language=en
user.country=US
user.variant=
Default locale=en_US
[system-thread-0] 29 Mar 2017 07:58:15,670 INFO SystemAgent - OS Runtime:
os.name=Linux
os.arch=amd64
os.version=4.4.38-93-default
user.name=root
user.home=/root
user.dir=/opt/AppDynamics/machine-agent
[system-thread-0] 29 Mar 2017 07:58:15,698 INFO SystemAgent - JVM Args : -Dlog4j.configuration=file:/opt/AppDynamics/machine-agent/conf/logging/log4j.xml |
[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - JVM Runtime Name: 29506@prod-appdyn-01
[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - JVM PID: 29506
[system-thread-0] 29 Mar 2017 07:58:15,699 INFO SystemAgent - Machine Agent is resolving bootstrap info....
[system-thread-0] 29 Mar 2017 07:58:15,836 INFO SystemAgent - Orchestration is disabled - disabling virtualization resolvers by default.
[system-thread-0] 29 Mar 2017 07:58:15,839 INFO SystemAgent - Full Agent Registration Info Resolver found system property [appdynamics.agent.create.agent.info.if.missing] for appdynamics.agent.create.agent.info.if.missing [false]
[system-thread-0] 29 Mar 2017 07:58:15,865 INFO SystemAgent - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]
[system-thread-0] 29 Mar 2017 07:58:15,874 INFO SystemAgent - Default IP Address Resolver found IP addresses [[fe80:0:0:0:250:56ff:feaa:15db%eth0, 172.20.220.197]]
[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using selfService [false]
[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using application name [null]
[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using tier name [null]
[system-thread-0] 29 Mar 2017 07:58:15,881 INFO SystemAgent - Full Agent Registration Info Resolver using node name [null]
[system-thread-0] 29 Mar 2017 07:58:15,884 INFO SystemAgent - XML Controller Info Resolver found controller host [prod-appdyn-01.prod.bolagsverket.se]
[system-thread-0] 29 Mar 2017 07:58:15,884 INFO SystemAgent - XML Controller Info Resolver found controller port [8090]
[system-thread-0] 29 Mar 2017 07:58:15,896 INFO SystemAgent - XML Agent Account Info Resolver using account name [customer1]
[system-thread-0] 29 Mar 2017 07:58:15,897 INFO SystemAgent - XML Agent Account Info Resolver using account access key [17e573a5-af57-4d5d-9c00-94f3a7bab797]
[system-thread-0] 29 Mar 2017 07:58:15,901 INFO SystemAgent - Keystore file /opt/AppDynamics/machine-agent/conf/cacerts.jks was not found
[system-thread-0] 29 Mar 2017 07:58:15,923 INFO SystemAgent - Machine Agent resolved bootstrap info!
[system-thread-0] 29 Mar 2017 07:58:15,923 INFO SystemAgent - Creating machine agent scheduler, pool size: 2
[system-thread-0] 29 Mar 2017 07:58:15,942 INFO SystemAgent - Creating machine agent monitor scheduler, pool size: 4
[system-thread-0] 29 Mar 2017 07:58:15,947 INFO SystemAgent - Started Agent Schedulers
[ConfigExecutor-0] 29 Mar 2017 07:58:15,950 INFO DefaultLegacyAgentRegistrationStateManager - Registered machine with machine ID [Optional.of(6)]
[ConfigExecutor-0] 29 Mar 2017 07:58:15,950 INFO DefaultLegacyAgentRegistrationStateManager - Scheduling System-Agent start...
[system-thread-0] 29 Mar 2017 07:58:16,196 INFO DefaultLegacyAgentRegistrationStateManager - Starting machine agent...
[system-thread-0] 29 Mar 2017 07:58:16,196 INFO SystemAgent - Starting Machine Agent....
[system-thread-0] 29 Mar 2017 07:58:16,197 INFO ControllerTimeSkewHandler - Skew Handler is : [enabled].
[system-thread-0] 29 Mar 2017 07:58:16,331 INFO ManagedMonitorDelegate - Started Agent Metric Generation Service
[system-thread-0] 29 Mar 2017 07:58:16,337 INFO ManagedMonitorDelegate - Event Service is : [enabled].
[system-thread-0] 29 Mar 2017 07:58:16,369 INFO ManagedMonitorDelegate - Metric Service is : [enabled].
[system-thread-0] 29 Mar 2017 07:58:16,383 INFO ManagedMonitorDelegate - Started Agent Env Properties Service
[system-thread-0] 29 Mar 2017 07:58:16,383 INFO ManagedMonitorDelegate - Scheduled Continuous Task Monitor with frequency [30000]ms
[system-thread-0] 29 Mar 2017 07:58:16,391 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/HardwareMonitor/monitor.xml
[system-thread-0] 29 Mar 2017 07:58:16,443 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]
[system-thread-0] 29 Mar 2017 07:58:16,455 INFO NodeMonitorManager - Initializing managed monitor [HardwareMonitor]
[system-thread-0] 29 Mar 2017 07:58:16,455 INFO ManagedMonitorDelegate - Not initializing managed monitor [HardwareMonitor] - Disabled in configuration file.
[system-thread-0] 29 Mar 2017 07:58:16,459 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/JavaHardwareMonitor/monitor.xml
[system-thread-0] 29 Mar 2017 07:58:16,463 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]
[system-thread-0] 29 Mar 2017 07:58:16,470 INFO MonitorConfigReader - Overriding enabled tag. new value = false
[system-thread-0] 29 Mar 2017 07:58:16,471 INFO NodeMonitorManager - Initializing managed monitor [JavaHardwareMonitor]
[system-thread-0] 29 Mar 2017 07:58:16,471 INFO ManagedMonitorDelegate - Not initializing managed monitor [SigarHardwareMonitor] - Disabled in configuration file.
[system-thread-0] 29 Mar 2017 07:58:16,471 INFO MonitorConfigReader - Reading monitor config file:/opt/AppDynamics/machine-agent/monitors/analytics-agent/monitor.xml
[system-thread-0] 29 Mar 2017 07:58:16,477 INFO MonitorConfigReader - os name [linux] version [4.4.38-93-default]
[system-thread-0] 29 Mar 2017 07:58:16,477 INFO NodeMonitorManager - Initializing managed monitor [analytics-agent]
[system-thread-0] 29 Mar 2017 07:58:16,477 INFO ManagedMonitorDelegate - Initializing managed monitor [AppDynamics Analytics Agent]
[system-thread-0] 29 Mar 2017 07:58:16,478 INFO ManagedMonitorDelegate - Executing managed monitor [AppDynamics Analytics Agent], task name [null]
[system-thread-0] 29 Mar 2017 07:58:16,478 INFO ManagedMonitorDelegate - Task [null] for monitor [AppDynamics Analytics Agent] is SCHEDULED
[system-thread-0] 29 Mar 2017 07:58:16,512 INFO InProcessLauncherTask - Found a directory [/opt/AppDynamics/machine-agent/monitors/analytics-agent/lib]
[system-thread-0] 29 Mar 2017 07:58:16,514 INFO InProcessLauncherTask - Working directory appears to be [/opt/AppDynamics/machine-agent/monitors/analytics-agent]
[system-thread-0] 29 Mar 2017 07:58:16,514 INFO AnalyticsAgentLauncher - The logs directory property [ad.dw.log.path] has been set to [/opt/AppDynamics/machine-agent/monitors/analytics-agent/../../logs]
[system-thread-0] 29 Mar 2017 07:58:16,514 INFO InProcessLauncherTask - Starting to execute actual task with parameters [{csvMethodArgs=/opt/AppDynamics/machine-agent/monitors/analytics-agent/conf/analytics-agent.properties, methodName=main, className=com.appdynamics.analytics.agent.AnalyticsAgent}]
[system-thread-0] 29 Mar 2017 07:58:23,601 INFO InProcessLauncherTask - Started [com.appdynamics.analytics.agent.AnalyticsAgent]
[system-thread-0] 29 Mar 2017 07:58:23,603 INFO NodeMonitorManager - Directory [/opt/AppDynamics/machine-agent/monitors/unmanaged] not found, continuing.
[system-thread-0] 29 Mar 2017 07:58:23,603 INFO AgentMonitorManager - Initialized System Monitor Manager with directory [/opt/AppDynamics/machine-agent/monitors]
[system-thread-0] 29 Mar 2017 07:58:23,603 INFO SystemAgent - Set up agent monitor manager
[system-thread-0] 29 Mar 2017 07:58:23,622 INFO SystemAgent - Orchestration is disabled - disabling one-way agent transport. The agent will not be able to execute workflow tasks.
[system-thread-0] 29 Mar 2017 07:58:23,662 INFO SystemAgentConfigManager - Scheduling configuration refresh at an interval of 60 seconds
[system-thread-0] 29 Mar 2017 07:58:23,668 INFO SystemAgentConfigManager - Configuration refresh task interval is 60 seconds
[system-thread-0] 29 Mar 2017 07:58:23,668 INFO SystemAgent - Configuration manager successfully configured
[system-thread-0] 29 Mar 2017 07:58:23,669 INFO RunbookHandler - Runbook Operation Execution is : [enabled].
[system-thread-0] 29 Mar 2017 07:58:23,669 INFO SystemAgent - Started AppDynamics Machine Agent Successfully.
[ExtensionStarter-ServerMonitoring] 29 Mar 2017 07:58:47,096 INFO SimAgentRepetitiveLoggingModule - The turnover time for the SIM agent repetitive logger is 5 minutes
[ConfigExecutor-0] 29 Mar 2017 07:58:47,303 INFO CrashGuardRunner - Not starting crash guard extension because it is disabled.To enable, please update the configuration enabled in CrashGuardConfig.yml.
[main] 29 Mar 2017 07:59:47,534 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.
[main] 29 Mar 2017 07:59:48,109 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]
[system-thread-0] 29 Mar 2017 07:59:48,811 INFO SecondStageSystem - Starting main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed))
[Thread-1] 29 Mar 2017 07:59:59,865 INFO SecondStageSystem - Stopping main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed)).
[Thread-2] 29 Mar 2017 08:00:16,086 INFO SystemAgent - Stopping Machine Agent....
[Thread-2] 29 Mar 2017 08:00:16,091 INFO SystemAgent - Shutting down agent scheduler manager
[Thread-2] 29 Mar 2017 08:00:16,095 ERROR SystemAgent - Error stopping agent scheduler manager
java.lang.RuntimeException: Failed to shut down top backends processor scheduler
at com.singularity.ee.agent.configuration.impl.AgentSchedulerManagerInstance.shutdownNow(AgentSchedulerManagerInstance.java:200)
at com.singularity.ee.agent.configuration.impl.AgentSchedulerManager.shutdownNow(AgentSchedulerManager.java:81)
at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:473)
at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)
at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)
at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)
at com.singularity.ee.agent.configuration.impl.AgentSchedulerManagerInstance.shutdownNow(AgentSchedulerManagerInstance.java:198)
... 4 more
[Thread-2] 29 Mar 2017 08:00:16,112 INFO SystemAgent - Shutting down agent monitor manager
[Thread-1] 29 Mar 2017 08:00:16,113 INFO SecondStageSystem - Stopping main system with features Features(features=[basic], reason=Features.Reason(message=, code=)).
[Thread-2] 29 Mar 2017 08:00:16,112 INFO InProcessLauncherTask - Stopped
[Thread-2] 29 Mar 2017 08:00:16,113 INFO ManagedMonitorDelegate - Scheduled Task [AppDynamics Analytics Agent] Stopped
[Thread-2] 29 Mar 2017 08:00:16,113 INFO ManagedMonitorDelegate - shutdown metric generation service.
[Thread-2] 29 Mar 2017 08:00:16,113 INFO SystemAgent - Stopped agent monitor manager
[Thread-2] 29 Mar 2017 08:00:16,113 INFO SystemAgent - Shutting down scheduler
[Thread-2] 29 Mar 2017 08:00:16,114 WARN SystemAgent - Error stopping scheduler
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)
at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)
at com.singularity.ee.agent.systemagent.Agent.stopScheduler(Agent.java:522)
at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:490)
at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)
at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)
[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Stopped scheduler
[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Shutting down monitor scheduler
[Thread-2] 29 Mar 2017 08:00:16,114 WARN SystemAgent - Failed to shut down monitor scheduler.
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor.shutdownNow(ADThreadPoolExecutor.java:1003)
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor.shutdownNow(ADScheduledThreadPoolExecutor.java:599)
at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl.shutdownNow(AgentScheduledExecutorServiceImpl.java:69)
at com.singularity.ee.agent.systemagent.Agent.stopMonitorScheduler(Agent.java:509)
at com.singularity.ee.agent.systemagent.Agent.stop(Agent.java:491)
at com.singularity.ee.agent.systemagent.SystemAgent.stop(SystemAgent.java:81)
at com.singularity.ee.agent.systemagent.Agent$1.run(Agent.java:637)
[Thread-2] 29 Mar 2017 08:00:16,114 INFO SystemAgent - Machine Agent Stopped!
[Thread-1] 29 Mar 2017 08:00:16,141 INFO ManagedScheduledThreadPool - Shutting down extensions thread pool
[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Stopping Machine Agent....
[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Shutting down agent scheduler manager
[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Shutting down agent scheduler manager
[Thread-1] 29 Mar 2017 08:00:16,152 INFO SystemAgent - Machine Agent Stopped!
[main] 29 Mar 2017 08:00:37,783 INFO FlexibleX509TrustManager - Using default keystore for SSL certificate validation.
[main] 29 Mar 2017 08:00:38,157 INFO HostIdProvider - Default Host Identifier Resolver using host name for unique host identifier [prod-appdyn-01]
[system-thread-0] 29 Mar 2017 08:00:38,490 INFO SecondStageSystem - Starting main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed))
[Thread-1] 29 Mar 2017 15:41:40,655 INFO SecondStageSystem - Stopping main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed)).

Re: Machine-agent

Hi

 

Not sure if you are still experiencing this error, but I am facing the same issue as well.

 

Log File Extract:

[system-thread-0] 16 May 2018 14:35:22,094  INFO SecondStageSystem - Starting main system with features Features(features=[], reason=Features.Reason(message=Unsuccessful leasing a Server Monitoring license, code=License Lease Failed))

 

There are sufficient server monitoring licensese available.

Re: Machine-agent

Hi

 

No we don´t have this problem now.

 

//Thomas

Re: Machine-agent

Hi Thomas

 

Can you please share what you did to eventually resolve the problem?


Regards

 

Dietrich 

Re: Machine-agent

Hi

 

For whoever is reading this, my issue was that there was a custom License rule being used and the Server Visibility was not assigned to the rule that we were using.
Updated this rule and then SIM worked.

Dietrich 

Producer

Re: Machine-agent

I am also facing the same issue eventhough I have sufficient server monitoring license. Please help me to solve this issue

 

Thanks

Soorya Mohan