- 5 minutes to read

How to enable Service Bus Relaying connections for Nodinite Log and Monitoring Agents

Easily connect and manage Nodinite Monitoring Agents anywhere—on-premise, in the cloud, or hybrid environments—using Microsoft Azure Service Bus Relaying. This guide empowers you to:

✅ Securely connect distributed Monitoring Agents across any network
✅ Optimize costs and performance with built-in caching and configuration tips
✅ Follow step-by-step setup for Service Bus Relaying and firewall rules
✅ Troubleshoot connectivity and security issues quickly

What is Service Bus Relaying?
The Service Bus relay service from Microsoft enables the Nodinite Monitoring Service to communicate with Nodinite Monitoring Agents. These agents can run in Azure datacenters, your on-premises enterprise, or even remote customer and partner sites.

graph TD subgraph "On-Premise" ro(fal:fa-watch-fitness Monitoring Service) end subgraph "Microsoft Azure" ro --> |outbound traffic| ro1(fal:fa-cloud Service Bus Relaying) end subgraph "Off-Site" ro3(fal:fa-monitor-waveform Any Monitoring Agent) --> |outbound traffic| ro1 end id1[*.servicebus.windows.net
443 Listeners on Service Bus Relay over TCP requires 443 for Access Control token acquisition
5671-5672 Advanced Message Queuing Protocol AMQP
9350-9354 Net.TCP]

Service Bus Relaying enables secure, scalable communication between distributed Monitoring Agents and the central Monitoring Service.

In essence, you can install and host Nodinite Monitoring Agents anywhere and everywhere! Simply install and configure the agent for Service Bus Relaying to unlock seamless integration.

Costs and pricing information

Running Nodinite Monitoring Agents with Service Bus Relaying incurs costs based on:

Note

Using Service Bus Relay requires an Azure account with a valid credit card and will incur costs.

sbcosts
Example: Azure Service Bus Relaying pricing overview For the latest pricing, see here.

How to configure the Monitoring Agents to use Service Bus Relaying

This section covers the general steps for configuring any [Monitoring Agent][] to use Service Bus Relaying.

Prerequisites

Prerequisites

  • Firewall
  • Azure Subscription with a valid credit card
  • Namespace—endpoint address must be unique; for multiple agents, use separate Namespaces or adjust the endpoint address and Service URI accordingly
  • Shared Access Signature security Key—see MDSN for details

Local Configuration

Each Monitoring Agent has a local configuration file (.config) with a commented Service Bus Relaying section. Remove the comments and enter your Service Bus Namespace details.

Important

This manual step requires RDP access and local admin rights. Restart the Monitoring Agent after editing. The README.txt will display the URI for use in Monitoring Agent Configuration.

  1. behaviorExtensions
  2. endpointBehaviors
  3. webHttpRelayBinding
  4. endpoint

appconfig
Example: Monitoring Agent configuration file for Service Bus Relaying

1. behaviorExtensions

Uncomment the behaviorExtensions section.
behaviorExtensions
Uncommenting behaviorExtensions in the config file

2. endpointBehaviors

Uncomment this section and update keyName and key as per your Azure portal setup.

3. webHttpRelayBinding

Uncomment this section.

4. endpoint

Uncomment this section and update ServiceBusNameSpace as per your Azure portal setup.
Service Bus Relay Namespace
Create/select the Service Bus relay namespace in Azure

Monitoring Agent Configuration

In Monitoring Agent Configuration, update:

  • Service URL
  • Enable Authentication and set the Authentication Key

Enter the Service URL for the installed Monitor Agent (from Readme.txt or the <endpoint address ... in %Monitoring Agent%.exe.config).
General
Service URL in Monitoring Agent Configuration

Security tab

A Service Bus Relay connection string format:

SharedAccessKeyName=%SharedAccessKeyName%;SharedAccessKey=%SharedAccessKey%;AuthenticationKey=%AuthenticationKey%

Security tab
Security tab for Service Bus Relay connection

Update these fields:

  1. SharedAccessKeyName—copy from Azure Portal (default: RootManageSharedAccessKey)
    SharedAccessKeyName
    SharedAccessKeyName in Azure Portal
  2. SharedAccessKey—copy from primary or secondary key
    SharedAccessKey
    SharedAccessKey in Azure Portal
  3. AuthenticationKey—provided by the Nodinite Monitoring Agent (from local Readme.txt)

Firewall

Open these outbound ports to '*.servicebus.windows.net' from both on-premise and off-site locations:

Port Name Inbound Outbound TCP UDP Comment
443 HTTPS Secure outbound traffic
5671, 5672 Secure AMQP
9350 - 9354 Net.TCP

Troubleshooting

To debug connectivity, enable WCF diagnostics logging. See Microsoft docs.

Add the following <system.diagnostics> section to the local config file (.config):

Important

The Windows Service Account running the Agent must have write access to the log folder (e.g., C:\Temp\WCFlog). Ensure the folder exists!

...
<configuration>
  <system.diagnostics>
    <sources>
      <Monitoring Agent Configuration name="System.ServiceModel"
              switchValue="Information, ActivityTracing"
              propagateActivity="true" >
        <listeners>
             <add name="xml"/>
        </listeners>
      </Monitoring Agent Configuration>
      <Monitoring Agent Configuration name="System.ServiceModel.MessageLogging">
        <listeners>
            <add name="xml"/>
        </listeners>
      </Monitoring Agent Configuration>
      <Monitoring Agent Configuration name="myUserTraceSource"
              switchValue="Information, ActivityTracing">
        <listeners>
            <add name="xml"/>
        </listeners>
      </Monitoring Agent Configuration>
    </sources>
    <sharedListeners>
        <add name="xml"
             type="System.Diagnostics.XmlWriterTraceListener"
             initializeData="C:\Temp\WCFlog\Error.svclog" />
    </sharedListeners>
  </system.diagnostics>
</configuration>
...

Contact our Support for additional guidance if you cannot resolve the problem.

Tip

Additional troubleshooting information may be available in the Windows Event Logs.


Next Step

Add or manage Monitoring Agent

Monitoring Agents
Monitoring Service
Microsoft Service Bus Relaying
Service Bus Relaying Pricing