To ensure that APM data collection commands work properly, the user account used for monitor addition must have bash set as its default login shell. Follow the numbered steps below to verify and update your settings.
Check the current default shell: Log in to the server with the APM user account and execute the following command to see the shell assigned to your user in the system records:
Sample Output: /bin/sh or /usr/bin/zsh
Confirm the Bash executable path: If the output in the previous step is not bash, run the following command to find the correct full path to the Bash binary on your system:
(Usually this returns /bin/bash or /usr/bin/bash)
Change the default shell:
Execute the chsh command with the -s flag followed by the path found in Step 2. Enter your password when prompted:
Apply the changes: Log out of your current terminal session and log back in. This step is mandatory because the default shell is only loaded at the start of a new login session.
Verify the update: Confirm that your new default shell is active by executing:
The output should now display /bin/bash.
Note: If you receive a "Permission Denied" or "Command not found" error when running chsh, please contact your System Administrator to update your shell via the usermod command.