{"action":"closed","issue":{"url":"https://api.github.com/repos/Appdynamics/mongo-monitoring-extension/issues/2","labels_url":"https://api.github.com/repos/Appdynamics/mongo-monitoring-extension/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Appdynamics/mongo-monitoring-extension/issues/2/comments","events_url":"https://api.github.com/repos/Appdynamics/mongo-monitoring-extension/issues/2/events","html_url":"https://github.com/Appdynamics/mongo-monitoring-extension/issues/2","id":95456062,"number":2,"title":"Authentication failed","user":{"login":"gigallo","id":13367732,"avatar_url":"https://avatars.githubusercontent.com/u/13367732?v=3","gravatar_id":"","url":"https://api.github.com/users/gigallo","html_url":"https://github.com/gigallo","followers_url":"https://api.github.com/users/gigallo/followers","following_url":"https://api.github.com/users/gigallo/following{/other_user}","gists_url":"https://api.github.com/users/gigallo/gists{/gist_id}","starred_url":"https://api.github.com/users/gigallo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigallo/subscriptions","organizations_url":"https://api.github.com/users/gigallo/orgs","repos_url":"https://api.github.com/users/gigallo/repos","events_url":"https://api.github.com/users/gigallo/events{/privacy}","received_events_url":"https://api.github.com/users/gigallo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-16T15:12:52Z","updated_at":"2015-08-14T13:10:43Z","closed_at":"2015-08-14T13:10:43Z","body":"Hi\r\n \r\nI'm using mongodb 3.0.2 and I've got authentication error when I run the machine agent.\r\nHere is the stacktrace:\r\n[Agent-Monitor-Scheduler-4] 16 lug 2015 15:07:39,887 ERROR MongoDBMonitor - Metrics Collection Failed: \r\njava.lang.RuntimeException: Unable to authenticate with the db admin, user=admin, using password ****\r\nat com.appdynamics.monitors.mongo.MongoDBMonitor.connectToAdminDB(MongoDBMonitor.java:184)\r\nat com.appdynamics.monitors.mongo.MongoDBMonitor.execute(MongoDBMonitor.java:107)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.MonitorTaskRunner.runTask(MonitorTaskRunner.java:146)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.PeriodicTaskRunner.runTask(PeriodicTaskRunner.java:86)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.PeriodicTaskRunner.run(PeriodicTaskRunner.java:47)\r\nat com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl$SafeRunnable.run(AgentScheduledExecutorServiceImpl.java:107)\r\nat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADFutureTask$Sync.innerRunAndReset(ADFutureTask.java:335)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADFutureTask.runAndReset(ADFutureTask.java:152)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.access$101(ADScheduledThreadPoolExecutor.java:119)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.runPeriodic(ADScheduledThreadPoolExecutor.java:206)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.run(ADScheduledThreadPoolExecutor.java:236)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.runTask(ADThreadPoolExecutor.java:694)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.run(ADThreadPoolExecutor.java:726)\r\nat java.lang.Thread.run(Thread.java:745)\r\n[Agent-Monitor-Scheduler-4] 16 lug 2015 15:07:39,928 ERROR PeriodicTaskRunner - Error creating environment task \r\ncom.singularity.ee.agent.systemagent.api.exception.TaskExecutionException: Mongo Monitoring Task completed with failures.\r\nat com.appdynamics.monitors.mongo.MongoDBMonitor.execute(MongoDBMonitor.java:128)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.MonitorTaskRunner.runTask(MonitorTaskRunner.java:146)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.PeriodicTaskRunner.runTask(PeriodicTaskRunner.java:86)\r\nat com.singularity.ee.agent.systemagent.components.monitormanager.managed.PeriodicTaskRunner.run(PeriodicTaskRunner.java:47)\r\nat com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl$SafeRunnable.run(AgentScheduledExecutorServiceImpl.java:107)\r\nat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADFutureTask$Sync.innerRunAndReset(ADFutureTask.java:335)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADFutureTask.runAndReset(ADFutureTask.java:152)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.access$101(ADScheduledThreadPoolExecutor.java:119)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.runPeriodic(ADScheduledThreadPoolExecutor.java:206)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.run(ADScheduledThreadPoolExecutor.java:236)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.runTask(ADThreadPoolExecutor.java:694)\r\nat com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.run(ADThreadPoolExecutor.java:726)\r\n \r\nIn config.yml I set both adminDBUsername and adminDBPassword. It seems that mongomonitor doesn't send the correct document to mongo"}}