No data available for Linux Server attributes even if all necessary commands are present in the remote server

No data available for Linux Server attributes even if all necessary commands are present in the remote server

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.

  1. 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:

    Command : grep ^$(whoami): /etc/passwd | cut -d: -f7

    Sample Output: /bin/sh or /usr/bin/zsh

  2. 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:

    Command : which bash

    (Usually this returns /bin/bash or /usr/bin/bash)

  3. 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:

    Command : chsh -s /bin/bash
  4. 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.

  5. Verify the update: Confirm that your new default shell is active by executing:

    Command : echo $SHELL

    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.

                  New to ADSelfService Plus?