Skip to content
Notifications

Notifications

gpsu sends alerts with the Shoutrrr notification library. It delivers to many services, including:

KindServices
ChatSlack, Discord, Microsoft Teams, Telegram, Matrix
Pushntfy, Gotify, Pushover
Incident managementPagerDuty, Opsgenie
Email and SMSEmail (SMTP), Twilio

The Shoutrrr services overview lists every service and its URL format. The Shoutrrr Playground builds a URL in the browser. The editor links both.

Each target is one destination with its own Shoutrrr URL. Admins add targets under Settings › Notifications or through the API.

Add a target

Fill in Add target beside the target list. Enter a name and the target’s Shoutrrr URL. The URL shows as you type it.

Choose a minimum severity

The target receives events at or above it: info, warning, or critical.

Send a test

Select Send test to check the URL and its credentials before you save. The result shows under the buttons. The URL stays in its field.

Save

Select Save. gpsu encrypts the URL and starts sending to the target.

Tests

TestWhereSends to
A URL not saved yetSend test in Add targetThe URL as typed. Nothing is saved.
A new URL for a saved targetSend test in Edit target with a new URLThe new URL. The saved one stays until you select Save.
A saved targetTest in its row, or Send test in Edit target with the URL left emptyThe saved URL
  • Each saved target allows one test every 10 seconds. Each admin allows one test of an unsaved URL every 10 seconds.
  • A test follows the delivery rules. A URL they refuse isn’t sent to.
  • A failed test says why in plain words. The history shows the same reason for each failed notification.
  • The history lists each test. The audit log records who sent it, the target’s name, and its host.

Important

Adding targets needs the seal key. gpsu encrypts each target’s URL with it. A saved URL is never shown again. Without the key, the page shows Seal key needed in place of the editor.

Events

EventSeverity
A temperature limit runs a server’s fans at the maximumCritical
gpsu hands off to the iDRAC at a temperature limitCritical
A server has no reading for three intervals in a rowCritical
A server’s sensors fail and gpsu can’t hand off to the iDRACCritical
gpsu stops without handing off a server’s fans to the iDRACCritical
A server’s sensors fail twice in a rowWarning
A scheduled backup failsWarning
A critical or warning alert clearsInfo
An override expiresInfo
gpsu starts or stopsInfo
  • In passive mode, handoff and maximum-speed alerts are warnings. They say what gpsu would have done.
  • When an alert clears, gpsu names the alert and says how long it lasted.
  • A single sensor failure that clears at the next reading sends nothing.
  • A server with no reading for three intervals clears after three readings in a row, each within two intervals of the last.
  • While a sensor failure is reported, a server’s slow readings send no alert of their own.

Targets

SettingDefaultDescription
NameNames the target in the web UI and the audit log
URLThe target’s Shoutrrr URL. It holds the service’s credentials.
Minimum severityWarningThe least severe event the target receives
EnabledEnabledDisabled targets receive nothing
  • gpsu encrypts each URL with the seal key. A saved URL is never shown again.
  • If the key that encrypted a URL is gone, the target receives nothing. Enter its URL again to fix it.
  • The audit log records only each target’s name and host.

Delivery rules

Delivery rules on Settings › Notifications limit where targets may send. The API sets them at /api/v1/notifications/policy.

SettingDefaultDescription
Private networksEnabledLets targets reach private addresses, such as a self-hosted service on your LAN
Allowed servicesEvery serviceTargets may use only the services chosen, named by URL scheme such as ntfy
  • New rules apply to every target at once.
  • gpsu refuses rules that would leave an existing target’s service out. Change or delete that target first.

Priority and links

Gotify and ntfy accept a priority and a link to open. gpsu sets both:

ServiceInfoWarningCriticalLink
Gotify258The server’s page
ntfylowdefaulthighThe server’s page
  • Links need api.publicURL. Events that aren’t about one server have no link.
  • Other services receive the title and message only.

Network safety

DestinationAllowed
Public addressesAlways
Private addressesWhile Private networks is enabled
Loopback, link-local, multicast, and unspecified addressesNever

gpsu never follows a redirect. These rules keep a target from reaching gpsu’s own host or a cloud metadata service.

Delivery

RuleBehavior
QueueEach target has its own queue. A slow or broken target delays no other.
BurstA target sends up to 5 notifications in quick succession.
After a burstA target sends at most one notification every 3 minutes. The rate limit drops the rest. The next one sent says how many it dropped.
RetryA failed send is tried again after 5 seconds. Each later wait doubles, up to 5 minutes. gpsu keeps trying for an hour.
OrderNotifications behind a failed send wait for it. A target receives them in the order they happened.
LateA notification sent a minute or more after it happened says how long ago that was.

Notifications never slow fan control.