Skip to main content

Package Manager Installation

This guide provides instructions for installing the WhaTap database monitoring agent using a package manager.

Tip

Choosing an Installation Method

  • Refer to this document for Debian/Ubuntu-based systems that use the apt package manager.
  • For Docker environments, refer to Docker Installation.
  • For other environments, refer to Manual Installation.
Note

Supported Databases

MySQL, PostgreSQL, SQL Server

To use the WhaTap monitoring service, after Sign in, create a project and install the agent to the target server. For more information about registration as a member, see the following.

Creating a project

Create a project before installing the agent.

  1. Log in to the WhaTap Monitoring Service.

  2. In the left side menu, click All Projects > + Project.

  3. On the Select product screen, select the product you want to install.

  4. Enter or select the following items:

    • Project name: Enter the project name.

    • Data server region: Select the data server region. A region is a group of data centers that provide cloud services. Your data will be stored in the selected region.

    • Time zone: Set the time zone to be used for alerts and report generation.

    • Notification language setting: Set the language for alert notifications. (Supports Korean and English)

    • Project groups: Group multiple projects for easier management. Select a group if applicable.

    • Project description: Add additional details or a description for your project.

  5. After completing all settings, click the Creating a project button.

Note

If you add a project while an organization is selected, you must set the Groups of organization field.

For more information about groups, see the related document.

Checking the configuration diagram

The DBX agent can be installed on a separate server or on the DB server. Select a method how to install the agent and check its configuration and firewall.

Install on a separate serverInstall on the DB server

Account creation

Create an account with roles required for database monitoring. Log in with the root account and then create accounts.

create login DB_User with password='DB Password';
create user DB_User for login DB_User;
grant connect any database to DB_User;
grant view server state to DB_User;
grant view any definition to DB_User;
  • Additional roles when using the Kill session

    grant alter any connection to DB_User;
  • Additional roles when using the Kill session in the Azure SQL Database environment

    grant kill database connection to DB_User;
  • Roles required for use of Job Information and Backup/Recovery History menus

    Grant roles to access the msdb database.

    USE msdb;
    CREATE USER DB_User FOR LOGIN DB_User;
    GRANT SELECT to DB_User;
  • Required roles when viewing object information

    For the versions below 2014, connect to each DB to be monitored and grant roles.

    grant view any definition to DB_User;
  • Required roles when viewing plans

    Connect to each DB and perform required tasks.

    grant showplan to DB_User;
  • Required roles when viewing deadlocks

    USE master;
    GRANT EXECUTE ON xp_readerrorlog TO whatap;
Note
  • If you have an account with roles, skip this step and then proceed to Next Step.

  • In the example code, DB_User is the DB user account name. Change it to your account name.

  • Enter your password in DB_Password in the example code.

Checking the access key

The access key is the unique ID to enable the WhaTap service.

In the installation guide section, select Getting the access key. After the access key has been issued automatically, proceed to the next step.

Note

After a project has been created, the Agent installation page appears automatically. If the Agent installation does not appear, select Management > Agent installation on the left of the screen.

Installing the Agent

Adding the WhaTap Repository

Run the following commands to add the official WhaTap repository to your system.

curl -s https://repo.whatap.io/debian/release.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/whatap-release.gpg > /dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/whatap-release.gpg] https://repo.whatap.io/debian unstable/" | sudo tee /etc/apt/sources.list.d/whatap.list
sudo apt-get update

Installing the Package

Install the WhaTap database monitoring agent with the following command.

sudo apt-get install whatap-db

Configuring and Starting the Agent

Create the configuration file and start the agent.

sudo bash -c 'cat > /usr/whatap/db/whatap.conf <<EOF
license=license_key
whatap.server.host=13.124.11.223/13.209.172.35
dbms=mysql
db_ip=127.0.0.1
db_port=3306
EOF'
cd /usr/whatap/db && sudo /usr/whatap/db/uid.sh whatap whatap && cd -
sudo service whatap-db restart
Note
  • You can add additional database options to the whatap.conf file.
  • Modify the parameter values (database account ID and password) of the uid.sh script to match your actual environment.

Managing the Agent

Updating the Agent

To update the agent to the latest version, run the following commands.

sudo apt-get update
sudo apt-get install whatap-db
sudo service whatap-db restart

Stopping the Agent and Removing the Package

To remove the WhaTap database monitoring agent, run the following commands.

sudo service whatap-db stop
sudo apt-get remove whatap-db

Checking Agent Logs

To check the agent logs, use the following command.

sudo service whatap-db log