When starting Data Aggregator or Data Collector or running activemqstat, it returns "Authentication failed" error
search cancel

When starting Data Aggregator or Data Collector or running activemqstat, it returns "Authentication failed" error

book

Article ID: 208221

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

In the DX NetOps Performance Management Data Aggregator scripts directory there is an activemqstat command.

It's found in (default path) /opt/IMDataAggregator/scripts.

When running it an error is returned about an invalid username or password.

INFO: Failed to execute dstat task.

ERROR: java.lang.SecurityException: Authentication failed! Invalid username or password

java.lang.SecurityException: Authentication failed! Invalid username or password

 

Environment

DX NetOps Performance Management releases r20.2.5 and newer.

Cause

Starting with the r20.2.5 DX NetOps Performance Management release, the ActiveMQ admin password was changed from the default to a new custom password.

This password was not updated in the activemqstat script. It still uses the old default password which now fails.

Resolution

This has been addressed with engineering via defect ID DE493225. A permanent fix is included in the r20.2.8 release. Upgrade to that release or a newer one if available for a permanent fix.

To resolve this in older releases until able to upgrade make the following change to the activemq script.

The current line in the script to edit is:

$AMQ_HOME/bin/activemq dstat --jmxurl service:jmx:rmi:///jndi/rmi://$host:11099/jmxrmi --jmxuser admin --jmxpassword DXN3t0ps | grep -vE "Advisory|Rollup"

Change the line, replacing the 'DXN3t0ps' reference with 'activemq'. The new line should look like this:

$AMQ_HOME/bin/activemq dstat --jmxurl service:jmx:rmi:///jndi/rmi://$host:11099/jmxrmi --jmxuser admin --jmxpassword activemq | grep -vE "Advisory|Rollup"

After saving the script with the change the command should no longer return an error about invalid username or password.