Skip to content

Notifications

Netronome sends notifications through Shoutrrr, a library that supports many chat and push services. You configure notifications in the web interface, in Settings, then Notifications. Notifications have no keys in config.toml.

Notification settings in the web interface

The configuration has two parts:

  • A channel is one destination, with a name and a Shoutrrr URL.
  • A rule connects a channel to an event. Each rule can have its own threshold.
  1. Open Settings, then Notifications.
  2. Enter a name for the channel, for example Discord Alerts.
  3. Select a service. The URL field then shows an example URL for that service.
  4. Enter the URL of your service, then save.
  5. Select Test to send a test message.

Netronome refuses to save a URL that is not valid for the service. If a service does not answer in 30 seconds, the send fails.

The service list in the web interface contains these services:

ServiceExample URL
Barkbark://:DEVICE_KEY@HOSTNAME
Discorddiscord://TOKEN@ID
Emailsmtp://USERNAME:PASSWORD@HOST:PORT/?from=FROM&to=TO
Generic Webhookgeneric://HOSTNAME/PATH?template=json
Google Chatgooglechat://SPACE/KEY/TOKEN
Gotifygotify://HOSTNAME/TOKEN
IFTTTifttt://KEY/?event=EVENT
Joinjoin://APIKEY@DEVICE/?icon=URL&title=TITLE
Larklark://HOSTNAME/TOKEN?secret=SECRET
Matrixmatrix://USERNAME:PASSWORD@HOSTNAME:PORT/ROOM
Mattermostmattermost://HOSTNAME/TOKEN
Microsoft Teamsteams://?host=POWER_AUTOMATE_WORKFLOW_URL
MQTTmqtt://HOSTNAME:1883/TOPIC
Notifiarrnotifiarr://APIKEY?channel=CHANNEL_ID
ntfyntfy://[USER:PASS@]HOSTNAME/topic[?scheme=http]
OpsGenieopsgenie://api.opsgenie.com/APIKEY
PagerDutypagerduty://events.pagerduty.com/INTEGRATION_KEY
Pushbulletpushbullet://APIKEY
Pushoverpushover://shoutrrr:API_TOKEN@USER_KEY
Rocket.Chatrocketchat://HOSTNAME/TOKEN_A/TOKEN_B
Signalsignal://HOSTNAME:PORT/SOURCE_PHONE/RECIPIENT
Slackslack://xoxb:BOT_TOKEN@CHANNEL
Telegramtelegram://TOKEN@telegram?chats=CHAT_ID
Twilio (SMS)twilio://ACCOUNT_SID:AUTH_TOKEN@FROM_NUMBER/TO_NUMBER
WeComwecom://WEBHOOK_KEY
Zulipzulip://BOTMAIL:BOTKEY@DOMAIN?stream=STREAM&topic=TOPIC

For all URL parameters of a service, see the Shoutrrr service documentation.

  • Slack: the token prefix selects the API. Use xoxb: for a bot token and hook: for a webhook.
  • Pushover: the API token goes in the password part of the URL.

Microsoft retired the old webhook.office.com connectors. A teams:// channel works only with a Power Automate workflow webhook: teams://?host=<workflow URL>.

Netronome sends ntfy notifications itself. It reads the same URL format and the same query parameters as the Shoutrrr ntfy service:

  • scheme (default https): https or http. Use ?scheme=http for a server without TLS.
  • disabletls: yes sends over HTTP.
  • priority: Message priority, from 1 (minimum) to 5 (maximum).
  • tags: Tags, with commas between them.
  • actions: Action buttons, with ; between them.
  • click: The web address to open when you click the notification.
  • attach, filename: The URL and the file name of an attachment.
  • delay (also at or in): A time or a duration for later delivery.
  • email: An email address that also gets the notification.
  • icon: The URL of the notification icon.
  • cache, firebase: no turns off the ntfy cache or Firebase delivery.

The URL must contain a host and a topic. Netronome writes a warning to the log for a parameter that it cannot read, and ignores it. The channel continues to work.

Netronome sets the title of each notification, for example Netronome: Speedtest. The title replaces a title parameter in the URL.

Each event belongs to a category. An event with a unit supports a threshold.

CategoryEventUnit
Speed testSpeed Test Complete
Speed testSpeed Test Failed
Speed testHigh Pingms
Speed testLow Download SpeedMbps
Speed testLow Upload SpeedMbps
Packet lossHigh Packet Loss%
Packet lossMonitor Unreachable
Packet lossMonitor Recovered
DNSDNS Monitor Down
DNSDNS Monitor Recovered
AgentAgent Offline
AgentAgent Online
AgentHigh Bandwidth UsageMbps
AgentLow Disk Space%
AgentHigh CPU Usage%
AgentHigh Memory Usage%
AgentHigh Temperature°C

Notes on some events:

  • Speed Test Failed: Netronome sends this event only for a test that you start in the web interface.
  • Low Disk Space: the value is the used space, in percent, of the fullest disk on the agent.
  • High Bandwidth Usage: the value is the sum of the receive and send rates of the agent.
  • Agent events with a threshold: Netronome sends at most one notification for each metric of each agent in one hour.

A rule for an event with a unit has an operator and a value. The operators are Greater than, Less than, Equal to, Greater or equal, and Less or equal. The default operator is Greater than.

Netronome sends the notification only when the measured value matches the rule. For example, a High Ping rule with Greater than 50 sends a notification when the ping is more than 50 ms. For Low Download Speed, use Less than.

If a rule has no threshold value, Netronome sends the event each time that it occurs.