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.
Archive agent version: 22.0.29
Download link: http://staticdownloads.site24x7.com/server/archive/windows/22029/Site24x7FullStackAgent.msi
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:
The Site24x7 App Monitoring Agent uses multiple threads for MSSQL data collection. Keep a minimum of 40–50% buffer RAM and disk space when remotely monitoring more than five instances.
Prerequisite: Ensure the Windows service account (including a gMSA, if used) is granted the Log on as a service right on the server.
Steps to add the permission:
secpol.msc, and press Enter.For a gMSA, use the account name with the trailing $ (for example, DOMAIN\MyServiceAccount$).
Also ensure the account has the necessary privileges to collect metrics.
The following steps describe 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. The current log on user of the Site24x7 App Monitoring Service will be displayed.
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)":
mssql@site24x7.com) and password.Choose option 2: SQL Authentication. Enter the Hostname, Instance Name (enter SQLSERVER for the default instance), Username, and password to add the instance for monitoring via SQL Authentication.
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 in Agent Manager.