Prerequisites for the Nodinite Database Monitoring Agent
Section titled “ Prerequisites for the Nodinite Database Monitoring Agent”Prepare for a seamless deployment of the Nodinite Database Monitoring Agent by reviewing all technical and security prerequisites. This page outlines everything you need to ensure a successful installation and operation in your environment.
✅ Comprehensive software and OS requirements
✅ Clear user rights and security permissions
✅ Network and firewall settings for on-premise and cloud
✅ Support for SQL Server, Azure SQL, and PostgreSQL
This page describes the prerequisites for installing and running the Nodinite Database Monitoring Agent.
Instances of this agent can be installed on-premise using TCP/IP for local network access and/or in the cloud/off-site using Service Bus Relaying (see also the external link for additional information 'Azure Relay FAQs').
We recommend that you keep this agent close to Nodinite Core Services. This documentation covers local network setup (usually on the Nodinite application server)
Software Requirements
Section titled “ Software Requirements”The Database Monitoring Agent is a Windows Service and is usually installed on the Nodinite application server.
Versions 7.2.0 and later require .NET 10 Hosting Bundle.
| Product | Version/Edition |
|---|---|
| Windows Server | Windows 2025 Windows 2022 Windows 2019 Windows 2016 Windows 2012 R2 Windows 2012 |
| .NET 10 Hosting Bundle New 7.2.0 | Required for v7.2.0 and later. Download from Microsoft |
| SQL Server | 2008 R2 and later |
| SQL Database | Azure SQL Database GA |
| PostgreSQL | Version 9 and later |
Versions 7.2.0 and later require the .NET 10 Hosting Bundle—monthly updates are recommended to maintain security patches and performance improvements.
.NET 10 minimum OS: Windows Server 2012 / 2012 R2.
Versions 6.0 - 7.1.x require .NET Framework 4.8 or later.
Versions 5.4 and later require .NET Framework 4.6.2 or later.
Versions before 5.4 require .NET Framework 4.5.2 or later.
Supported Versions
Section titled “ Supported Versions”Cloud technologies are evolving fast and Microsoft deprecates older versions of their API's every now and then. Nodinite will always support the API's supported by Microsoft. This means you need to update Nodinite and our Database Monitoring Agent from time to time.
This means you need to update Nodinite and our Database Monitoring Agent from time to time.
Make sure to subscribe to our Release Notes
AI Diagnostics
Section titled “ AI Diagnostics”Version 7.2.0 and later includes AI Diagnostics for intelligent error analysis and troubleshooting assistance. AI Diagnostics helps identify root causes of monitoring failures, suggests configuration fixes, and provides contextual guidance for common database issues.
What Windows User Rights does the Database Monitoring agent require?
Section titled “ What Windows User Rights does the Database Monitoring agent require?”The agent is installed as a Windows Service usually on the Nodinite application server. Virtual machines are supported.
Service Account Options New 7.2.0
Section titled “Service Account Options New 7.2.0”- Group Managed Service Account (gMSA) - Recommended for automated password management. See Configure Group Managed Service Accounts (gMSA) for setup instructions.
- Traditional Account - Use a local named account or, preferably, a domain account.
- Follow the 'How to set logon as a Windows service right' user guide for detailed instructions.
What SQL Database User rights does the Database Monitoring agent require?
Section titled “ What SQL Database User rights does the Database Monitoring agent require?”Remember, if applicable, repeat the grants on all nodes part of the monitoring.
The account used to connect to Microsoft SQL Server is specified in the Microsoft.Data.SqlClient connection string.
Type of accounts supported:
- SQL User
- Integrated Security (The account running the Windows Service)
Least privileges (basic usage)
Section titled “ Least privileges (basic usage)”Least privilege is mandatory when you use custom monitoring statements and script collections.
Use the centralized guide for security boundaries, impersonation, connection string isolation, and reusable examples:
Secure Custom Database Scripts and Actions
Least privileges for custom monitoring and script collections
Section titled “Least privileges for custom monitoring and script collections”If you use SQL Statements with monitoring statements or User Action Scripts, apply these prerequisites before production rollout:
- Use dedicated SQL identities per scope (monitoring vs action scripts).
- Point connection strings to specific target databases whenever possible.
- Grant only required permissions (
SELECTand explicitEXECUTEwhere needed). - Never reuse the Database Monitoring Agent service account for custom script execution.
- Validate custom SQL logic in non-production before enabling it for users.
For complete examples and risk scenarios, see Secure Custom Database Scripts and Actions.
The least privileges required to use all monitoring features are listed below:
- Public - Account must be allowed to login(!)
Master Database
Section titled “Master Database”- DataReader
- db_ddladmin (see note)
- Grant Execute on xp_sqlagent_enum_jobs
- Grant View on any Definition
Grant Execute on xp_sqlagent_enum_jobs
Section titled “Grant Execute on xp_sqlagent_enum_jobs”Replace DOMAIN\user with your user in the example below:
USE MasterGOGRANT EXECUTE ON xp_sqlagent_enum_jobs TO [DOMAIN\user];GOExample Script to grant the service account the right to read the information required to monitor SQL Server jobs.
Grant View on any Definition
Section titled “Grant View on any Definition”To evaluate the size, the account in use must be granted 'VIEW ANY DEFINITION'.
USE MasterGOGRANT VIEW ANY DEFINITION TO [DOMAIN\user];GOExample script to grant the service account the right to read the information required to monitor Database Size checks.
Grant View Server State
Section titled “Grant View Server State”The agent queries the instance about run-time information using dynamic management views (DMVs). The required permissions depend on your SQL Server version.
SQL Server 2022 and later (required):
USE MasterGO-- Required for operational DMVs and legacy viewsGRANT VIEW SERVER STATE TO [DOMAIN\user];
-- Required for performance monitoring (CPU, memory, disk, waits)GRANT VIEW SERVER PERFORMANCE STATE TO [DOMAIN\user];GOSQL Server 2019 and earlier:
USE MasterGO-- Grants access to all server state DMVsGRANT VIEW SERVER STATE TO [DOMAIN\user];GOReplace [DOMAIN\user] with the Windows account being used for the agent.
Permission comparison:
| Permission | SQL Server Version | Required | Purpose |
|---|---|---|---|
VIEW SERVER STATE |
All versions | ✅ Yes | Access to operational and legacy DMVs |
VIEW SERVER PERFORMANCE STATE |
2022+ only | ✅ Yes (2022+) | Access to performance-specific DMVs (introduced in SQL Server 2022) |
MSDB Database
Section titled “MSDB Database”- DataReader
- db_ddladmin
- SQLAgentReaderRole - Right to read jobs and history
- SQLAgentOperatorRole - Right to re-run jobs
Sample queries performed by the agent
Section titled “Sample queries performed by the agent”-- Check SQL Server Agent propertiesEXEC msdb.dbo.sp_get_sqlagent_properties;
-- Check SQL Server Agent service statusSELECT dss.[status], dss.[status_desc]FROM sys.dm_server_services dssWHERE dss.[servicename] LIKE N'SQL Server Agent (%';SSISDB Database
Section titled “SSISDB Database”- db_datareader - To list packages
- ssis_logreader (older versions of SQL Server) or ssis_admin (newer versions of SQL Server) - To get the execution history
All other
Section titled “All other”All other databases require: (for example when using custom Stored Procedures/AdHoc SQL commands)
- Public - Account must be allowed to login(!)
- DataReader and/or Execute Rights on the Stored Procedures/tables/Views/Objects part of your AdHoc queries
- db_ddladmin - for better performance
What Azure SQL Database User rights does the Database Monitoring agent require?
Section titled “ What Azure SQL Database User rights does the Database Monitoring agent require?”The account used to connect to Azure SQL Database is specified in the Microsoft.Data.SqlClient connection string.
Type of accounts supported:
- SQL User
What PostgreSQL User rights does the Database Monitoring agent require?
Section titled “ What PostgreSQL User rights does the Database Monitoring agent require?”The account used to connect to the PostgreSQL Database comes from information retrieved from the connection string. There can be any number of databases monitored. Type of accounts supported:
- PostgreSQL User
What Firewall settings are required for the Database Monitoring agent?
Section titled “ What Firewall settings are required for the Database Monitoring agent?”Where you install the Nodinite Database Monitoring Agent in relation to the Nodinite Monitoring Service and the databases you monitor determines your firewall configuration. The diagram shows every host involved, with the agent on its own server; each arrow starts at the side that opens the connection.
Network diagram: the Monitoring Service calls the agent, and the agent connects to every monitored SQL Server, Azure SQL Database, and PostgreSQL database. Dashed arrows are optional hops.
Between the Monitoring Service and the Database Monitoring Agent
Section titled “Between the Monitoring Service and the Database Monitoring Agent”The Monitoring Service opens every connection; the agent never calls it. On Windows Server, Nodinite v7 hosts the agent as its own IIS web site, on a port you set per environment in the Nodinite Portal (Servers step).
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Inbound | Core Services Server | Agent Server | TCP (HTTPS/HTTP) | Agent site port | Poll the agent, send configuration, run Remote Actions | v7. No fixed default; use the port set in the Portal. Only when the agent is on a remote server |
| Inbound | Core Services Server | Agent Server | TCP | 8000 | Same, for Windows Service agents | ⚠️ v6 and earlier only (legacy MSI installer on remote servers) |
Option: Service Bus Relaying (cloud or hybrid)
Section titled “Option: Service Bus Relaying (cloud or hybrid)”Use Service Bus Relayed connections when Nodinite and the agent are on different networks. Both sides connect outbound to the Azure Relay namespace, so neither server needs an inbound rule. Nodinite uses the same principle as the on-premises data gateway; see 'Adjust communication settings for the on-premises data gateway' and the 'Azure Relay FAQs'.
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | Azure Relay (*.servicebus.windows.net) |
TCP | 443 | HTTPS (WebSockets): the agent's relay listener | All versions. Allow the relay host by DNS name, not by IP address: the relay gateway addresses change |
| Outbound | Core Services Server | Azure Relay (*.servicebus.windows.net) |
TCP | 443 | The Monitoring Service and the Web API call the agent through the relay | HTTPS only, direct (no proxy) |
Between the Database Monitoring Agent and SQL Server
Section titled “Between the Database Monitoring Agent and SQL Server”Required for monitoring on-premises Microsoft SQL Server instances. See SQL Server Firewall Configuration for Always On Availability Groups (AOAG) and PowerShell connectivity tests.
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | Target (SQL Server) | TCP | 1433 | SQL Server default instance | Default port; can be changed in SQL Server Configuration Manager |
| Outbound | Agent Server | Target (SQL Server) | TCP | 49152–65535 | SQL Server named instances | Named instances use a dynamic port by default; set a static port and open only that one |
| Outbound | Agent Server | Target (SQL Server) | UDP | 1434 | SQL Server Browser | Resolves the port of a named instance; not needed when the connection string names the port |
| Outbound | Agent Server | Target (SQL Server) | TCP | 135 | RPC Endpoint Mapper | Required for MSDTC and remote procedure calls |
| Inbound | Target (SQL Server) | Agent Server | TCP | Same as outbound | Response traffic | Automatically allowed by stateful firewall inspection |
Between the Database Monitoring Agent and Azure SQL Database
Section titled “Between the Database Monitoring Agent and Azure SQL Database”Required for monitoring Azure SQL Database. All connections are outbound from the Agent Server to *.database.windows.net. With the Redirect connection policy (the default for clients inside Azure), the client first reaches the gateway on 1433 and then connects to the database node on a port in the 11000–11999 range; see 'Azure SQL Database connectivity architecture'.
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | Target (Azure SQL Database) | TCP | 1433 | Gateway (TDS over TLS) | Required for every connection policy |
| Outbound | Agent Server | Target (Azure SQL Database) | TCP | 11000–11999 | Redirect connection policy | Not needed when the logical server uses the Proxy connection policy |
Between the Database Monitoring Agent and PostgreSQL
Section titled “Between the Database Monitoring Agent and PostgreSQL”Required for monitoring PostgreSQL databases, on-premises or in the cloud (for example IBM Cloud).
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | Target (PostgreSQL) | TCP | 5432 | PostgreSQL default port | Can be changed in the server configuration |
| Outbound | Agent Server | Target (PostgreSQL) | TCP | 31902 | Custom PostgreSQL port | Example of a non-standard port assigned by a cloud provider; use the port from your connection string |
| Inbound | Target (PostgreSQL) | Agent Server | TCP | Same as outbound | Response traffic | Automatically allowed by stateful firewall inspection |
Between the Database Monitoring Agent and the Domain Controller
Section titled “Between the Database Monitoring Agent and the Domain Controller”Required when the agent authenticates to SQL Server with Windows authentication (domain credentials). Review 'Microsoft Kerberos'.
| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | Domain Controller | TCP/UDP | 88 | Kerberos authentication | Required for domain authentication |
| Outbound | Agent Server | Domain Controller | TCP/UDP | 389 | LDAP | Standard LDAP queries |
| Outbound | Agent Server | Domain Controller | TCP | 636 | LDAPS (Secure LDAP) | Required for LDAPS authentication or querying certificates from AD |
| Outbound | Agent Server | Domain Controller | TCP | 445 | SMB | Used if Group Policy or file-based certificate access is needed |
| Inbound | Domain Controller | Agent Server | TCP/UDP | Same as outbound | Response to Kerberos / LDAP | Usually allowed by stateful firewall inspection |
Between the servers and DNS
Section titled “Between the servers and DNS”| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Agent Server | DNS Server | TCP/UDP | 53 | Name resolution | Resolve the database servers, *.database.windows.net, the Domain Controller, and (with relaying) *.servicebus.windows.net. A local hosts file can replace DNS |
| Outbound | Core Services Server | DNS Server | TCP/UDP | 53 | Name resolution | Resolve the Agent Server |
Frequently asked questions
Section titled “ Frequently asked questions”Additional solutions to common problems and the FAQ for the Nodinite Database Monitoring Agent exist in the Troubleshooting user guide.
Next Steps
Section titled “ Next Steps”Install Database Monitoring Agent
Related Topics
Section titled “ Related Topics” Add or manage a Monitoring Agent Configuration
Monitoring
Administration
Secure Custom Database Scripts and Actions
SQL Statements