Data Aggregator activemqstat command returns 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

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.

Environment

DX NetOps Performance Management releases r20.2.5 and newer.

Resolution

Make the following change to the activemq script.

The current line in the script to edit is:

$amqHome/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:

$amqHome/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.

Additional Information

This is being addressed with engineering via defect ID DE493225. A permanent fix is scheduled for inclusion in the r20.2.8 release. This is an ETA and is subject to change.