Skip to content
Documentation
Updated 13 minutes to read
Markdown

Prerequisites for the Nodinite Monitoring Service

Section titled “Prerequisites for the Nodinite Monitoring Service”

Prepare your environment for a seamless Nodinite Monitoring Service deployment. This page lists what the Monitoring Service needs from your network, Windows, and SQL Server, so that the installation succeeds and the service can reach your Monitoring Agents, Alarm Plugins, and databases.

In Nodinite v7 on Windows, the Monitoring Service is one of the Core Services: an IIS web site of its own on the Core Services host. You set its port and service identity in the Nodinite Portal (Servers step → Core platform services), and the generated CLI package installs it. The general v7 requirements are in the Install Nodinite v7 prerequisites summary; this page adds what is specific to the Monitoring Service.

The Monitoring Service runs as its IIS application pool identity, set in the Portal (Service Account Defaults, or per service in Core platform services). It reads and writes both kinds of database, calls the Monitoring Agents, and sends alerts, so its rights reach further than SQL Server.

Right On what Why Without it
Logon as a Service and IIS_IUSRS membership The Core Services Server (Windows rights) IIS grants the first when the pool starts and starts the worker process as a batch logon through IIS_IUSRS (details) The application pool doesn't start
Load User Profile True on its application pool The Core Services Server The secret-encryption certificate is in the identity's own CurrentUser store Alarm Plugin credentials can't be decrypted
Write The installation folder, including its own appsettings.json It writes its diagnostics files there, and rewrites its settings with protected values No diagnostics files; settings protection fails
The Event Log source, created once by an administrator The Core Services Server, when you use the Event Log Alarm Plugin Only a local administrator can create an event source (details) Alarms through that plugin fail
db_datareader, db_datawriter, and EXECUTE The Configuration Database (Nodinite Databases) It reads Resources, Monitor Views, and System Parameters, and writes monitoring state Monitoring stops
db_datareader and db_datawriter Every Log Database It writes the Monitoring Event history there, and deletes it after DaysToKeepMonitorEvents No Monitoring Event history
VIEW SERVER STATE and VIEW DEFINITION ON AVAILABILITY GROUP master, Always On only (Master) The procedures resolve the listener and the primary replica Every call that addresses a Log Database fails
Membership in LogServiceUsers The System Parameter, unless the identity is sysadmin The Logging Service grants access on each new Log Database to that list No Monitoring Event history in the newest Log Database after a split
Outbound to each agent port The Monitoring Agents, or Service Bus Relay for off-site agents (firewall) It polls the agents and runs Remote Actions Resources turn Unavailable
Outbound SMTP (587 or 25), or HTTPS for webhooks The mail server or webhook target (Alarm Plugin targets) Alarm Plugins deliver alerts Alerts don't arrive

SQL Server Sysadmin Requirements has the full rights matrix. The Monitoring Service needs no DCOM rights: it calls the agents over HTTP.

When the Core Services Run as Different Accounts

Section titled “When the Core Services Run as Different Accounts”

When the Monitoring Service has its own account, give that account its own login on every instance and Always On node with the Configuration Database or Log Databases, the rights above, and an entry in LogServiceUsers.

Run the Web API and the Monitoring Service as the same account (Recommended Configuration). The Web API encrypts Alarm Plugin credentials (e-mail, webhook authentication) when you save them, and the Monitoring Service decrypts them to send an alarm, with the certificate in the CurrentUser store of the account. With two accounts, each has its own certificate: alarms that use credentials fail, while alarms without credentials still work. The Core Services Overview compares the rights of all services.

Check the Monitoring Service After a Change

Section titled “Check the Monitoring Service After a Change”

After you change its account or rights, restart its application pool in IIS Manager. Open the bell next to your user name: the Monitoring Service shows as online, with the number of Monitor Views in each state. Any Monitor View shows the current states again by itself.

The bell's status menu with the Monitoring Service online, then a Monitor View with its current states
After a restart, monitoring comes back by itself; no action is needed in the Monitor Views.

Alerts are sent using Alarm Plugins and it is very common to use any of the Nodinite e-mail plugins. If alerts don't arrive, see Alarm Plugin troubleshooting.

The Nodinite Monitoring Service must be allowed to send emails and this is often governed by your organization's policies.

The SMTP ports are listed under Between the Monitoring Service and the Alarm Plugin targets.

Microsoft Distributed Transaction Coordinator (DTC)

Section titled “ Microsoft Distributed Transaction Coordinator (DTC)”

The Monitoring Service never starts a distributed transaction itself. The Microsoft Distributed Transaction Coordinator (DTC) matters only between SQL Servers, when a Log Database is on another instance than the Configuration Database; see Configuration Database DTC and MSDTC.

What Windows rights does the Monitoring Service require?

Section titled “ What Windows rights does the Monitoring Service require?”

The Monitoring Service runs under the service identity you set in the Portal: the Service Account Defaults of the Auth step, or a separate account per service when you clear Same account for all Services in the Servers step. Group Managed Service Accounts (gMSA) are supported. The CLI configures the IIS web site and its application pool with this identity during installation; you don't set it by hand.

  • The least-privilege Windows rights of an application pool identity, with no local administrator rights - see IIS Application Pool Identities
  • The service account must have appropriate SQL Server rights (see next section)
  • Write rights to the installation folder, for its diagnostics files and its own appsettings.json
  • Load User Profile True on the application pool
  • This service should always be running
  • This service should not be clustered; ask our support for help

With this identity, the Monitoring Service reads its settings and System Parameters from the Configuration Database, coordinates with Monitoring Agents, executes Remote Actions, and delivers alerts through Alarm Plugins. It calls the agents with their API key (X-ApiKey), and answers a Negotiate challenge with its service account.

What SQL Rights does the Monitoring Service require?

Section titled “ What SQL Rights does the Monitoring Service require?”

The Windows domain account being used for the Monitoring Service must have the following SQL rights assigned (least privileges). The SQL Server instance and connection are set in the Portal (Infrastructure step); the SqlServer System Parameter holds the server, listener, and Linked Server names that the service uses at run time.

Without an Always On Availability Group, the Monitoring Service needs nothing in master: what it reads there (sysdatabases, SERVERPROPERTY) is open to every login. On an Always On Availability Group, the procedures read the listener and the replica states, so grant:

GRANT VIEW SERVER STATE TO [Domain\user]
GRANT VIEW DEFINITION ON AVAILABILITY GROUP::[YourAG] TO [Domain\user]

Replace Domain\user with the Windows account being used for the Monitoring Service, and YourAG with the availability group.

If applicable, repeat the grant on all nodes part of an AOAG environment.

All databases on all SQL Server instances where Configuration Database and Log Databases databases are located:

Database Permission Description Microsoft Docs Link
Instance/Database public Right to log on to SQL instances and databases used by Nodinite public role
Configuration Database db_datareader Grants read access to all tables and views db_datareader
Configuration Database db_datawriter Grants write access to all tables and views db_datawriter
NodiniteLog_* db_datareader Reads Monitoring Events db_datareader
NodiniteLog_* db_datawriter Writes Monitoring Events and deletes the old ones db_datawriter

The Monitoring Service runs no DDL and never shrinks a database, so it needs no db_ddladmin, db_owner, or sysadmin.

For the full rights matrix and non-sysadmin operating model, see SQL Server Sysadmin Requirements.

Grant Execute rights on all existing and future stored procedures for the account used by the Monitoring Service:

GRANT EXECUTE TO [Domain\user]

Replace Domain\user with the Windows account being used for the Monitoring Service.

What Firewall settings are required for the Monitoring Service?

Section titled “ What Firewall settings are required for the Monitoring Service?”

The Monitoring Service runs the monitor checks and sends alerts, so it talks to more hosts than any other Core Service: the Monitoring Agents, the Web API, the mail server and other Alarm Plugin targets, SQL Server, and the domain controller. The Monitoring Service opens almost every connection itself. The diagram shows each host, with the port on the arrow, drawn from the side that opens the connection.

graph LR subgraph "Nodinite Core Services Server" roMS["fa:fa-watch-fitness Monitoring Service - IIS"] roWebAPI["fa:fa-cloud-sun Web API - IIS"] end subgraph "Nodinite Agent Server" roAgent["fa:fa-monitor-waveform Monitoring Agent - IIS"] end subgraph "Azure Service Bus Relay - off-site agents only" roRelay["fa:fa-cloud *.servicebus.windows.net"] end subgraph "Off-site Agent Server" roAgentRemote["fa:fa-monitor-waveform Monitoring Agent"] end subgraph "SQL Server" roConfig["fa:fa-database Configuration Database"] end subgraph "Mail server and alarm targets" roSMTP["fa:fa-envelope SMTP server"] roHook["fa:fa-globe HTTP Webhook targets"] end subgraph "Domain Controller" roDC["fa:fa-server DNS, Kerberos, LDAP"] end roMS -->|"Agent port"| roAgent roWebAPI -->|"Agent port"| roAgent roMS -->|"443"| roRelay roWebAPI -->|"443"| roRelay roAgentRemote -->|"443"| roRelay roMS -->|"Web API port, containers only"| roWebAPI roWebAPI -->|"Monitoring Service port"| roMS roMS -->|"TCP 1433"| roConfig roMS -->|"25 or 587"| roSMTP roMS -->|"443"| roHook roMS -->|"53, 88, 389"| roDC

Diagram: the Monitoring Service, and the Web API for user actions, call each Monitoring Agent on the agent's port, or through Azure Service Bus Relay on 443 for off-site agents. The Monitoring Service also calls SQL Server, the mail server, alarm targets, and the domain controller. Only the Web API calls back in; in the container runtimes, the Monitoring Service also calls the Web API.

On Windows Server, each Core Service, including the Monitoring Service and the Web API, is its own IIS web site with its own port, and so is each Monitoring Agent. You choose the Core Services ports per environment in the Portal (Servers step → Core platform services), the agent ports in the Agents step, and confirm them in the Allocated ports summary before you download the package. Ports in examples, such as 40000–40004, are examples only. Open exactly those ports; the CLI configures the IIS bindings but not your firewalls.

Between the Monitoring Service and the Monitoring Agents

Section titled “Between the Monitoring Service and the Monitoring Agents”

The Monitoring Service opens the connection to each Monitoring Agent, using the address set on the agent's Connection tab. The Web API also calls the agent directly, at the same address, for everything a user waits for; the Web API prerequisites list every feature. Neither goes through the other. The installer puts all Core Services on one server, so one rule per agent covers both. Both connect directly: neither uses an outbound proxy. When the agent runs on the Core Services Server, no firewall rule is needed. Each agent's own Prerequisites page lists the ports between the agent and the system it monitors.

Direction Source Destination Protocol Port(s) Purpose Notes
Inbound Core Services Server (Monitoring Service and Web API) Agent Server TCP (HTTP or HTTPS) Agent port Monitoring Service: poll Resources, auto-healing Remote Actions, scheduled configuration backups. Web API: Remote Actions, metrics and graphs, Remote Configuration, backups, diagnostics, agent status, custom Monitor View columns, the Status page One port per agent, set in the Portal; only needed when the agent runs on another server
Outbound Core Services Server (Monitoring Service and Web API) Azure Service Bus Relay (*.servicebus.windows.net) TCP (HTTPS) 443 Reach off-site agents through Service Bus Relaying Only for agents on another network; both processes, direct, without a proxy
Outbound Off-site Agent Server Azure Service Bus Relay (*.servicebus.windows.net) TCP (HTTPS) 443 The agent's relay listener holds a WebSocket connection to its Hybrid Connection No inbound rule on the agent's network. Allow the relay host by DNS name, not by IP address: the relay gateway addresses change. Same principle as the on-premises data gateway
Outbound Agent Server DNS server TCP/UDP 53 DNS name resolution The agent must resolve its targets and, for Service Bus Relaying, the relay host name

Between the Monitoring Service and the Web API

Section titled “Between the Monitoring Service and the Web API”

The Web Client shows the state of the Monitoring Service to Users: it asks the Web API, which queries the Monitoring Service. On Windows Server the Monitoring Service doesn't call the Web API; in the container runtimes it does, to reach the secret-encryption certificate. Both run on the Core Services Server, so no rule is needed unless a host firewall restricts local traffic.

Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server (Monitoring Service) Core Services Server (Web API) TCP (HTTPS) Web API port Secret-encryption certificate, container runtimes only Set in the Portal
Inbound Core Services Server (Web API) Core Services Server (Monitoring Service) TCP (HTTPS) Monitoring Service port Status and operations requested from the Web Client Set in the Portal

Between the Monitoring Service and the Alarm Plugin targets

Section titled “Between the Monitoring Service and the Alarm Plugin targets”

Alerts are distributed by the Monitoring Service for Monitor Views when a configuration matches a changed state of Resources; each alert is pushed to each Alarm Plugin. Nodinite v7 loads only the built-in Alarm Plugins; custom or 3rd-party plugin DLLs are not loaded.

Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server (Monitoring Service) Mail server TCP 587 or 25 Send alarm e-mail (SMTP submission or SMTP) 587 per RFC 6409; 25 per RFC 5321. Mail policies often govern who may relay; see SMTP Settings
Outbound Core Services Server (Monitoring Service) Mail server TCP 465 Send alarm e-mail over implicit TLS (SMTPS) Only if your mail server requires it, per RFC 8314
Outbound Core Services Server (Monitoring Service) Webhook target, issue tracker, or chat service TCP (HTTPS) 443, or the target's port Deliver alerts with the HTTP Webhook Alarm Plugin Allow the host names of each target

Between the Monitoring Service and SQL Server

Section titled “Between the Monitoring Service and SQL Server”

For performance reasons, the Monitoring Service accesses the databases directly using its service identity. The SQL Server, MSDTC, and domain controller ports are shared by all Nodinite components; their full details live in SQL Server Firewall Configuration.

Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server (Monitoring Service) SQL Server (Configuration Database) TCP 1433 Read configuration, store state Default instance port; the stored procedures reach a Log Database on the same instance by name and one on another instance through a Linked Server. Named instances and changed ports: Core Services to SQL Server
Outbound Core Services Server (Monitoring Service) SQL Server UDP 1434 SQL Server Browser Only for a named instance without a port in the connection string; see SQL Server Browser Service

Between the Core Services Server and the domain controller

Section titled “Between the Core Services Server and the domain controller”
Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server Domain Controller (DNS server) TCP/UDP 53 DNS name resolution Resolve agent, SQL Server, mail server, and relay host names; hosts-file entries are a fallback
Outbound Core Services Server Domain Controller TCP/UDP 88, 389 Kerberos and LDAP for Windows authentication to SQL Server Agents don't use Windows authentication: they accept anonymous calls with the X-ApiKey header. See Domain Controller ports
  • No fixed default ports: the Monitoring Service, Web API, and agent ports are what you set in the Portal; check the agent's Service URL on its Connection tab when an agent shows as unavailable.
  • Same server: no rule is needed between the Monitoring Service and an agent that runs on the Core Services Server.
  • Versions: Nodinite v6 agents and the v6 Monitoring Service used TCP port 8000; see Why do Nodinite use port 8000, and replace those rules with the Portal ports when you follow Updating from v6 to v7.
  • Outbound-only off-site agents: with Service Bus Relaying, the Core Services Server needs only outbound HTTPS (443) to *.servicebus.windows.net, for the Monitoring Service and the Web API, and the off-site Agent Server needs the same, outbound 443 only.
  • Monitoring green, actions failing: when the Monitoring Service can reach an agent but the Web API can't, Resource states stay current while Remote Actions, Remote Configuration, diagnostics, and metrics report the agent as off-line. Open the same rule for the Web API.
  • DNS (53): every host must resolve the others by name, including the agent host names in the Service URLs.

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

Install Monitoring Service
Install Nodinite v7
System Parameters

Alarm Plugins
Alarm Plugin troubleshooting
Configuration Database
Core Services
Log Databases
Monitoring Agents
Monitoring Service
Monitor Views
MSDTC
Remote Actions
Resources
Service Bus Relaying
SQL Server Firewall
gMSA accounts
Troubleshooting
Uninstall Monitoring Service
Update Monitoring Service
Users
Web API

...

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