Skip to content
Documentation
Updated 11 minutes to read
Markdown

Send real-time email alerts from Nodinite when Monitor View status changes

The Email Alarm Plugin sends an email when the state of Monitor Views changes, according to your configuration, to the Users of the Monitor View that have an email address. Users get access to a Monitor View through their Roles; members of the Administrators Role see every Monitor View, so they get the alert too.

Emails can be sent both when errors occur and when issues are resolved (positive and negative ACKs), so your team is always informed.

Add the Email entry Contoso: Warehouse on-call e-mail with its own subject, sender, and test recipient, animated walkthrough (7.13)
Animated walkthrough: Add Alarm, the name and description, the Configuration tab with the type changed to Email (Change type), Override Basic options with a Default subject, Override Recipients options with the Sender address and the Test recipient, and Save. The saved entry opens. The steps are under Add an Email Entry.

graph LR ok["fa:fa-circle-check OK"] err["fa:fa-circle-xmark Error"] ms["fa:fa-watch-fitness Monitoring Service"] plugin["fa:fa-envelope Email
Alarm Plugin entry"] users["fa:fa-users Monitor View users
with email address"] queue["fa:fa-bell Alarm Queue"] ok --> ms err --> ms ms -->|"State change"| plugin plugin -->|"SMTP"| users plugin -.->|"Send failed"| queue style ok fill:#93d16d,color:#000 style err fill:#c33d34,color:#fff style ms fill:#2678BD,color:#fff style plugin fill:#2678BD,color:#fff style users fill:#93d16d,color:#000 style queue fill:#c33d34,color:#fff

An OK (green) or Error (red) state change reaches the Monitoring Service (blue), which emails the Monitor View's users through the Email entry the Monitor View has selected. A failed send waits in the Alarm Queue (red).

The Email Alarm Plugin comes pre-installed with the Nodinite Core Services. The Monitoring Service sends the emails, so its server must reach the SMTP server (required ports).

Since Nodinite 7.2.0, every Alarm Plugin is used through Alarm Plugin entries. The Email default entry ships with Nodinite and holds the base settings. You can add more entries built on the Email plugin, for example one per SMTP relay, and each Monitor View selects the entry or entries it uses. The entry concept and the Action menu (Edit, Show in Mapify, Show in Mermaid, Delete, Restore, Permanently Delete) are described once in Add or manage Alarm Plugin.

An added entry overrides only the tabs you check and inherits the rest from the default Email entry; see Add an Email Entry.

Open the default entry from "Administration" > "Settings" > "Alarm Plugins" by selecting "Email".

Email default entry General tab with name, description, version, the Save buttons and the separate Mapify and Mermaid button group, Control panel, and empty Monitor Views panel (7.13)
The General tab holds the name and description; the Control panel runs alarm tests, and the Monitor Views panel lists the Monitor Views that use this entry.

The Configuration tab shows the Alarm Plugin Type and five sub-tabs.

Email entry Configuration tab with Alarm Plugin Type Email and the Basic, Recipients, Monitoring state options, SMTP options, and Recurrence sub-tabs (7.12)
The type can't be changed on a default entry; on an entry you added, changing it resets all configuration settings.

  1. Go to Administration > Settings > Alarm Plugins and click Add Alarm.
  2. On the General tab, enter a Name and a Description.
  3. On the Configuration tab, the Alarm Plugin Type starts as Email options. Pick Email; the dialog Change the Alarm Plugin Type? asks you to confirm with Change type (or Keep type), because the configuration starts again from the defaults.
  4. Each sub-tab starts with a checkbox: Override Basic options, Override Stylesheet options, Override Recipients options, Override Monitoring state options, Override SMTP Settings options, and Override Recurrence options. Unchecked, the tab inherits the settings of the default Email entry; check it only on the tabs that differ, for example the Default subject, the Sender address, and the Test recipient.
  5. Click Save. The saved entry opens, without a message.

Then select the entry in the Monitor Views that should use it; see Using an Email Entry in a Monitor View.

Email Basic tab with Default subject, Web Client URL Base Address https://nodinite.contoso.com/, and the Email Alarm Plugin stylesheet (7.13)
The Web Client URL Base Address makes the link in the email open the signaling Monitor View.

Field Help text in the Web Client Notes
Default subject The default subject for the e-mail (You can use macros like: {Customer}, {Environment}, {Version}, {Status}, {DateTime}, {StatusAndCount} and {Alarm.JsonPath:...}) Default: Status Report from Nodinite - [{Customer} | {Environment}] - With {Status}. See Working example with data
Web Client URL Base Address Embed a link to the signaling Monitor View. Enter the URL to this Nodinite instance (NOTE: Do not use 'localhost') The address of your Web Client, such as https://nodinite.contoso.com/. Every link in the mail starts with it; see What the Alert Looks Like. Set it before the first alert: left empty, the links are relative and open nothing from a mail client, and localhost points at the reader's own computer
Stylesheet (unlabeled list) Select the Stylesheet to use when formatting the output of the alarm. Default: Email Alarm Plugin, an XSLT Stylesheet. A Liquid Stylesheet works too: it gets the alarm as JSON instead of XML

Email Recipients tab with Sender address and Test recipient (7.12)
Real alarms go to the Monitor View's users; the Test recipient only receives alarm tests.

Field Help text in the Web Client
Sender address The e-mail address of the sender
Test recipient The Test recipient field is in use only for testing the Alarm plugin. This e-mail plugin uses the e-mail address for Users associated with a Monitor View

Email Monitoring state options tab with the Trigger on changed Resource state checkbox (7.12)
Unchecked, an alarm is sent when the Monitor View changes state, not for every Resource.

Field Help text in the Web Client Default
Trigger on changed Resource state When checked, trigger an Alarm when any Resource changes its state. Otherwise, trigger an Alarm when the Monitor View changes its monitoring state ❌ Unchecked

The Email plugin has no per-state checkboxes; to choose which states send an email, use E-mail with options.

Email SMTP options tab with SMTP Server localhost, Port 25, and the help texts for Port, SSL is required, Force Disable SSL, Ignore certificate revocation errors, and Enable Authentication (7.12)
The password is stored encrypted (Secret Management).

Field Help text in the Web Client Default
SMTP Server The SMTP server in use to send or relay e-mails (DNS name or IP-address) localhost
Port Specify the port to use connecting with the SMTP server. The default is port 25. For encrypted connections, use port 587 (STARTTLS) or 465 (SSL/TLS on connect) and tick SSL is required 25
SSL is required When enabled, the connection must be encrypted: port 465 uses SSL/TLS from the first byte, any other port (587, 25) is upgraded with STARTTLS. When disabled, the connection will automatically determine whether SSL is required or not. ❌ Unchecked
Force Disable SSL ⚠️ This option disables SSL/TLS negotiation entirely and is not recommended for security reasons. ❌ Unchecked
Ignore certificate revocation errors Check to ignore SSL certificate revocation errors when the revocation server is offline or unavailable. Use with caution and only in environments where revocation checks are problematic. ❌ Unchecked
Enable Authentication Check when the SMTP server requires authentication to process requests. ❌ Unchecked

With Enable Authentication checked, the tab adds Authentication Type: Basic Authentication (Username and Password) or OAuth 2.0 - Client Credentials (Client ID, Client Secret, OpenID Endpoint Configuration and Scope). The fields are the same as for Email options; see the SMTP options tab of Email with Options.

New 7.12 The Port and SSL is required help texts above are those of the Email plugin of Nodinite 7.12. With SSL is required checked, port 465 is encrypted from the first byte (implicit SSL), and any other port, such as 587 or 25, is upgraded with STARTTLS. Earlier plugin versions tried STARTTLS on port 465 too. The new texts show once the Monitoring Service has synced the updated plugin.

Use Force Disable SSL only when a relay's certificate can't be fixed; see FAQ - SSL/TLS Certificate Name Mismatch.

Email Recurrence tab with the Enable Recurrence checkbox unchecked (7.12)
Check Enable Recurrence to show one Time Interval per state; leave a state empty to send its alarm only once.

Field Help text in the Web Client
Enable Recurrence Configure the recurrence for redistributing alarms
✅ Ok Time Interval, ⚠️ Warning Time Interval, 🚫 Unavailable Time Interval, ❌ Error Time Interval, Connection Error Time Interval A Time Interval per state; "If needed, you can create or adjust Time Intervals here" opens the Time Intervals page

How alert recurrence works.

A Monitor View doesn't hold its own Email settings. On the External notifications tab of the Monitor View, the administrator selects the Email entry, or several entries, to use:

  1. Open the Monitor View from Administration > Monitor Views and go to the External notifications tab.
  2. On the Alarm Plugins card, click Edit, tick the Email entry, and click Confirm and close.
  3. Click Save. The Alarm Plugins card lists the entry with Type: Email.

Select the Email entry Contoso: Warehouse on-call e-mail on the External notifications tab of a Monitor View, animated walkthrough (7.12)
Animated walkthrough: the Monitor View Contoso: Warehouse dispatch, External notifications > Alarm Plugins > Edit, the entry ticked, Confirm and close, and Save. The Monitor View now emails its users through the Email entry.

Need a different SMTP server or subject for some Monitor Views? Add another Email entry, check Override … options on the tabs that differ, and select that entry in those Monitor Views (how).

The Control panel buttons send a test alarm to the Test recipient address on the Recipients tab (alarm tests).

The default Email entry: Test recipient operations@contoso.com on Recipients, then SMTP options with SMTP Server localhost, Port 25, SSL is required and Enable Authentication unticked, Save, Execute Alarm test, Alarm execution was successful, and the test e-mail in the mail catcher, animated walkthrough (7.13)
Animated walkthrough: point the default Email entry at your relay and prove it with a test.

New 7.12 With the default Stylesheet, the alert opens with the overall status, followed by one card per Monitor View: its state, Open in Nodinite, its description, its Tags as chips, and the Resources whose state changed, each with its own Tags. The Monitor View name and Open in Nodinite go to <Web Client URL Base Address>Monitor/MonitorView/<id>, and the footer's Open the Web Client to the base address itself. Links in Custom Metadata values (files, Shared Assets, item links) use the same base.

The default Email entry with Web Client URL Base Address set, a Monitor View turning Error, the alert e-mail with its Tags and Open in Nodinite, and the Web Client opening on that Monitor View, animated walkthrough (7.13)
Animated walkthrough: from a real alert to the Monitor View in one click.

  1. On the Configuration tab of the default Email entry, Basic has the Web Client URL Base Address https://nodinite.contoso.com/ and the Stylesheet Email Alarm Plugin. The Monitor View Contoso: Order confirmations uses the entry.
  2. A Resource of the Monitor View, Contoso: Orders awaiting confirmation, goes to Error, so the Monitor View turns Error.
  3. The alert reaches the Monitor View's users, here alice.smith@contoso.com: the overall status ERROR, the card Contoso: Order confirmations with Open in Nodinite and its Tags Order-to-Cash and Production, and the Resources whose state changed since the last alert: Contoso: Orders awaiting confirmation in ERROR with its Tag Finance, and Contoso: Order confirmation ACK in OK.
  4. Click Open in Nodinite. The Web Client opens on Contoso: Order confirmations.

An Email test alert in the default Stylesheet: the Monitor View cards Contoso: Message Queues in Error and Contoso: Order-to-Cash OK, each with Open in Nodinite, its Tags, and its changed Resources with their Tags (7.12)
A test alert from Execute Alarm test: one card per Monitor View, worst first, with the Resources that changed.

The plugin supports Stylesheets of type XSLT (the alarm as XML) and Liquid (the alarm as JSON). Use the Alarm Plugin Object XML as example input when you preview or modify the stylesheet. New 7.12 The default, Email Alarm Plugin, renders the same e-mail as the Email with Options plugin's default: both plugins ship the identical XSLT, but each installs its own read-only copy (Email Alarm Plugin and Email options Alarm Plugin), so cloning or selecting one doesn't touch the other. It is read only and replaced by every upgrade of the plugin: click Clone on it, customize the clone, and select the clone on the Basic tab (Stylesheets shipped with an Alarm Plugin). A Stylesheet you select stays selected when Nodinite is updated. Undelivered emails wait in the Alarm Queue and are retried as set by AlarmQueueSettings.

Default subject is: Status Report from Nodinite - [{Customer} | {Environment}] - With {Status}

Variables to use in the subject field:

  • {Customer} – Customer name of the Nodinite installation (CustomerName)
  • {Environment} – Environment name (Prod, Test) of the Nodinite installation (EnvironmentName)
  • {Version} – Nodinite version
  • {Status} – List of Monitor View statuses, e.g. Errors, OK
  • {StatusAndCount} – List of Monitor View statuses and the number for each status, e.g. 2 Errors, 1 OK
  • {DateTime} – Date when the alarm was triggered
  • {Alarm.JsonPath:...} – Advanced option using JsonPath to extract data from the alarm object, e.g. the Monitor View names with {Alarm.JsonPath:MonitorViews[*].Name}

New 7.12 The Version: line in the footer of an alert mail shows the Monitoring Service product version, not the Version System Parameter.

The complete alarm object to apply the JsonPath on is on the Variables and JSON Path examples for Alerts page.

...

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