Skip to content
Documentation
Updated 13 minutes to read
Markdown

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.

graph LR subgraph "Nodinite" roNI(fal:fa-code-commit Database Monitoring agent) --- roMonitor[fal:fa-monitor-waveform Monitoring] end subgraph "SQL Server" roDB1(fal:fa-database SQL Instances) end subgraph "Azure" roDB2(fal:fa-database Azure Databases) end subgraph "PostgreSQL" roDB3(fal:fa-database PostgreSQL Instances) roMonitor ---roDB1 roMonitor ---roDB2 roMonitor ---roDB3 end

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)

Verified Topic
Software Requirements
What Windows User Rights does the Database Monitoring agent require?
What SQL Database User rights does the Database Monitoring agent require?
What Azure SQL Database User rights does the Database Monitoring agent require?
What PostgreSQL Database User rights does the Database Monitoring agent require?
What Firewall settings are required for the Database Monitoring agent?

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.

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

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.

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 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 (SELECT and explicit EXECUTE where 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(!)
  • DataReader
  • db_ddladmin (see note)
  • Grant Execute on xp_sqlagent_enum_jobs
  • Grant View on any Definition

Replace DOMAIN\user with your user in the example below:

USE Master
GO
GRANT EXECUTE ON xp_sqlagent_enum_jobs TO [DOMAIN\user];
GO

Example Script to grant the service account the right to read the information required to monitor SQL Server jobs.

To evaluate the size, the account in use must be granted 'VIEW ANY DEFINITION'.

USE Master
GO
GRANT VIEW ANY DEFINITION TO [DOMAIN\user];
GO

Example script to grant the service account the right to read the information required to monitor Database Size checks.

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 Master
GO
-- Required for operational DMVs and legacy views
GRANT VIEW SERVER STATE TO [DOMAIN\user];
-- Required for performance monitoring (CPU, memory, disk, waits)
GRANT VIEW SERVER PERFORMANCE STATE TO [DOMAIN\user];
GO

SQL Server 2019 and earlier:

USE Master
GO
-- Grants access to all server state DMVs
GRANT VIEW SERVER STATE TO [DOMAIN\user];
GO

Replace [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)
  • DataReader
  • db_ddladmin
  • SQLAgentReaderRole - Right to read jobs and history
  • SQLAgentOperatorRole - Right to re-run jobs
-- Check SQL Server Agent properties
EXEC msdb.dbo.sp_get_sqlagent_properties;
-- Check SQL Server Agent service status
SELECT
dss.[status],
dss.[status_desc]
FROM sys.dm_server_services dss
WHERE dss.[servicename] LIKE N'SQL Server Agent (%';
  • 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 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.

graph LR subgraph "Nodinite Core Services Server" roMonitoringService(fa:fa-watch-fitness Monitoring Service) end subgraph "Nodinite Agent Server" roNI(fa:fa-monitor-waveform Database Monitoring Agent) end subgraph "Target: SQL Server" roSQLDB(fa:fa-database SQL Server instance) end subgraph "Target: Azure SQL Database" roASQLDB(fa:fa-database Azure SQL Database) end subgraph "Target: PostgreSQL" roPG(fa:fa-database PostgreSQL, on-premises or cloud) end subgraph "Domain Controller" roDC(fa:fa-building Active Directory) end subgraph "DNS Server" roDNS(fa:fa-signs-post DNS) end subgraph "Azure Service Bus Relay (optional)" roRelay(fa:fa-cloud Relay namespace) end roMonitoringService --> |"Agent site port (v7) / 8000 (v6)"| roNI roNI --> |"1433 (named instance: own port + UDP 1434)"| roSQLDB roNI --> |"1433, 11000-11999"| roASQLDB roNI --> |"5432 or custom, e.g. 31902"| roPG roNI -.-> |"88, 389, 636, 445 (Windows auth)"| roDC roNI --> |"53"| roDNS roMonitoringService -.-> |"443"| roRelay roNI -.-> |"443"| roRelay

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
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

Additional solutions to common problems and the FAQ for the Nodinite Database Monitoring Agent exist in the Troubleshooting user guide.

Install Database Monitoring Agent

Add or manage a Monitoring Agent Configuration
Monitoring
Administration
Secure Custom Database Scripts and Actions
SQL Statements

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...