Configure gMSA Permissions for Secure SQL Monitoring in Site24x7
The Site24x7 App Monitoring Agent can be configured to monitor a Microsoft SQL Server instance. During setup via the Agent Manager command-line interface, the agent's Windows service logon account must have the appropriate domain credentials to authenticate against the remote SQL Server host.
This document details every permission and privilege required when a Group Managed Service Account (gMSA) is used as the service logon identity for the Site24x7 App Monitoring Agent.
What is a gMSA and why use it?
A Group Managed Service Account (gMSA) is a managed domain account in Active Directory that provides automatic password management, eliminating the need to manually rotate service account passwords. Using a gMSA for the Site24x7 agent service offers the following security benefits:
- Passwords are managed automatically by Active Directory (rotated every 30 days by default).
- The account cannot be used for interactive logon, reducing the attack surface.
- Access can be restricted to specific hosts in Active Directory.
- Auditing and privilege assignment are centrally managed via Group Policy.
Agent setup workflow
The following steps describes the setup flow as captured in the developer reference. Each step identifies where the service account credential is required.
- Open Agent Manager: Right-click the Site24x7 Agent Tray Icon and select Open Agent Manager. This launches the command-line management interface at:
C:\Program Files (x86)\Site24x7\WinAgent\monitoring\bin\AgentManager.exe - Run the add_instance command: Type sqlserver add_instance to initiate the remote SQL Server instance configuration wizard.
- Select SQL Server type: Choose option 2: Remote SQL — SQL Server installed in another machine.
- Select authentication type: Choose option 1: Windows Authentication. The agent uses the service logon account's domain credentials to authenticate.
- Change service logon user: When prompted "Do you need to change the service Log On user to a domain account with access to SQL Server instance? (Y/N)", enter Y and provide the gMSA credentials.
- Confirm instance details: Provide the Host Name and Instance Name (enter SQLSERVER for the default instance). The agent validates and adds the SQL Server Database Monitor.
To update the service account later (if required):Use the command Update APPMonitoring User (case-sensitive) to change the service logon account at any time after initial setup.
Related Articles
How can you remotely monitor an Oracle Database from a server other than the Oracle Database-hosted server using Site24x7?
To remotely monitor your Oracle Database, follow these steps: Log in to Site24x7 and install the Site24x7 Linux monitoring agent. Ensure the Oracle Database on your server is accessible from the Linux machine. Execute the following command in your ...
How do I monitor an Oracle database hosted in a Docker container in the same machine?
To monitor your Oracle Database hosted in a Docker container, follow these steps: Log in to Site24x7 and install the Site24x7 Linux monitoring agent. Execute the following command in your terminal and enter your Oracle Database instance's username ...
Why is the PostgreSQL individual database monitor shown as down even though that database is up in my instance?
If your PostgreSQL individual database monitor shows as down in Site24x7 but the database is active (up) in your instance, verify that if you have given the necessary permissions for the database user to access that specific database. Refer to our ...
Why am I getting an Authentication Failed error while trying to view the child database monitors?
When you try to view child database monitors, including Oracle PDBs, Oracle tablespaces, Microsoft SQL Server individual databases, MySQL databases, and PostgreSQL databases, you may encounter an Authentication Failed or You are not authorized to ...
I am unable to see any data for failed jobs in my database
If you are unable to see data for failed jobs or if there is a mismatch between the failed jobs data in the SQL performance monitor and the SQL insight monitor, check if you have granted the necessary permission. Data in the SQL performance monitor: ...