Alerts and notifications
Ravicor warns your team when something goes out of the ordinary: a sensor went down, an ONU lost signal, a DDoS attack is under way. This page explains what generates an alert, how channel inheritance works between environments and how to connect WhatsApp, Telegram, email and webhook.
How they work
When a relevant event happens, the system logs the incident and fires the notice through the enabled channels. When it returns to normal, a second "problem resolved" notice goes out through the same channels, reporting the elapsed time. Notices can be sent through up to five channels:
| Channel | How it works | Where to configure |
|---|---|---|
| Telegram | The provider's own bot (created in BotFather) sending messages to one or more chats or groups. | General Settings, Integrations tab, Telegram Alerts panel. |
| The provider's own SMTP server, with one or more recipients. | Same tab, Email alerts panel. | |
| A WhatsApp number paired by QR Code directly on the Ravi server (unofficial integration). | Same tab, Whatsapp server active panel. | |
| Push (RAVI Mobile app) | A push notification on the phone of each user who connected the app. | Automatic: each user scans the app QR Code on their own profile page. |
| Webhook New in 7.2 | A JSON POST to a URL of your own system (ERP, internal panel, automations). | Same tab, Manage Webhook panel. |
Channel configuration lives in the General Settings screen, accessible only to users in the Master group. See the tab details in General Settings, Integrations tab.
What generates an alert
| Source | Event | Channels |
|---|---|---|
| Devices and sensors | Sensor Offline or in Alert (threshold exceeded), and later the problem resolved notice. | Telegram, email, WhatsApp, push and webhook. |
| OLT (ONUs) | ONU offline due to optical loss and, at the maximum level, also due to power outage. Each ONU generates a single notice until it returns to normal (no repetition). | Telegram and WhatsApp (default channels or the OLT's own). |
| OLT (alert conditions) | Configurable rules, individual and mass (for example, mass drops on a PON), with customizable messages and a resolution notice. | Telegram, WhatsApp and webhook. |
| Flow (anti-DDoS) | Attack detected, attack ended (with a post-mortem PDF attached to the email when critical), baseline anomalies, collector health and a 1-click mitigation approval link. | Telegram, WhatsApp and email. |
| Services | Does not send notifications: the Services module alerts are a visual panel on the screen itself. | Interface only. |
Every send is recorded in the incident history: the Sending column of the Logs modal on the Devices screen shows which channels each alert went out through (Telegram, email, WhatsApp and push). It is the first place to check when someone says they "did not get the alert". See Incident history.
Channel priority
Each channel has a setting for when to alert. The general rule applies to Telegram, email, WhatsApp and push (the webhook has no priority selector: while active, it receives everything for its checked scopes):
- Offline/Alert (or Sensor Offline or in Alert, for email): receives everything, both drops and threshold breaches.
- Offline (or Sensor Offline): receives only when the sensor goes down.
- Deactivated: the channel stays registered but receives nothing.
Customizable messages
The Devices alert texts are editable templates. On the Devices environment settings screen there are the Alert model: PROBLEM FOUND and Alert model: PROBLEM RESOLVED panels, with free title and body. The body accepts Telegram formatting (*bold* and _italic_) and variables that the system replaces on send, such as #nome_dispositivo, #nome_grupo, #nome_sensor, #ip, #problema and #data. The resolved model also has #solucao, #data_atual and #tempo_decorrido. The Restore predefinition button reverts to the default text in the system language.
The same models apply to all channels: when a channel does not support the formatting, the system adapts the text automatically (email becomes HTML and push becomes plain text).
If the problem notice arrives but the resolved one does not, the problem is almost never the channel: it is the resolved-events checker that is not running on the server. See Troubleshooting: Notifications.
Channel inheritance
This is the most important concept in the area. The channels registered in the Integrations tab are the system's default destinations. Each environment (Devices, OLT, Concentrator, Flow) can use those defaults, have its own destinations or notify nothing. For Telegram and WhatsApp, each environment's selector has three states:
| Option | Effect |
|---|---|
| Inherit defaults | The environment uses the channels and contacts from the Integrations panel. |
| Customize | The environment uses its own channels and contacts, registered within it. |
| Deactivated | The environment sends nothing through that channel. |
The webhook stays out of this chain: it is a single system-wide configuration, and what each webhook receives is defined by the scope boxes (Devices and OLT) in its own registration. See Webhook.
Where to configure in each environment:
| Environment | Where to configure |
|---|---|
| Devices | Devices area settings, Telegram Alerts and WhatsApp Settings panels (with the Alert when: selector and the Only when Offline option). |
| Device group | Group editing: you can customize a group's own Telegram bot (Chat ID, token and time windows), its own emails and WhatsApp contacts specific to the group. |
| OLT | On the OLT screen, settings button, OLT Settings modal: Defaults tab, Alerts section, with Telegram Notifications Enabled or Disabled; the Telegram tab manages the OLT's own channels. |
| Concentrator | Concentrator settings, its own Telegram panel and its own WhatsApp contacts. |
| Flow | Flow settings, alerts tab: Telegram (inherit or customize), its own WhatsApp contacts, its own emails and per-channel priority (including the option to receive only critical severity). |
Resolution rule
For a sensor that belongs to a group, the chain is resolved from the bottom up:
- If the group customizes, the group's channels apply.
- If the group inherits, the Devices environment configuration applies.
- If the environment inherits, the defaults from the Integrations tab apply.
The Deactivated option at any level cuts the chain: if the group is deactivated, it does not matter that the system default is configured. When no alert arrives, check the three levels (Integrations, environment and group) and the Sending column of the Logs modal.
Push and permissions
The RAVI Mobile app push has a built-in permission filter: the notice of a device alert only reaches users whose user group has permission to see the sensor's device group. In practice, each technician only receives push for what they can see in the system.
ONU alert level (OLT)
Beyond turning OLT notifications on and off, there is the ONU alert level: alert only for ONU offline due to optical loss (fiber cut) or alert for any reason, including detected power outage. Each ONU generates a single notice until it returns to normal, which avoids a flood of repeated messages. Details in OLT: Settings.
The WhatsApp channel uses one of the provider's own numbers, paired by QR Code directly on the Ravi server. There is no third-party cloud: the number's session stays on your server.
This is an unofficial integration with WhatsApp. For this reason, there may sporadically be unavailability. For critical alerts, keep Telegram or email as a redundant channel.
Enable and pair
- Open Settings (gear), Integrations tab, WhatsApp panel.
- Select Whatsapp server active.
- On the phone that will host the number, open WhatsApp, tap more options (or Settings) and select Connected Devices.
- Point the camera at the QR Code shown on the screen. The QR renews itself while the page is open.
- Once connected, the QR disappears and Device connected appears with the number, along with the Disconnect and Test connection buttons.
- Click Test connection to receive a test message and confirm it is working.
Select who receives
Below the pairing is the Select the contacts you want to send alerts to list, with a search field. The list comes from the address book of the paired number: check the contacts and groups that should receive the notices. For a recipient not in the address book, use the fixed row at the top of the list to add a number manually; the system validates the number on WhatsApp before saving.
This same contact selector appears in the Devices, groups, OLT, Concentrator and Flow settings when the environment customizes its own recipients.
When to alert
The panel's priority selector defines the behavior: Offline and Alerts (receives everything) or Alert only when Offline.
External use of the number
The same WhatsApp server can be leveraged to send the provider's external messages (for example, ERP notices), through the public API with a key that has the WhatsApp permission in API Management. Refer to the API documentation for the details.
Common problems
- QR Code does not load: the server's local WhatsApp service is stopped. Contact support or restart the service on the server.
- Stopped sending: the session dropped (the nature of the unofficial integration). Open the panel: if it shows the QR again, pair it again and use Test connection.
- Contact appears with no name or with hidden digits: a WhatsApp addressing limitation for unsynced contacts. Use the row to add a number manually.
- Large lists are slow: sending is sequential, with a 1-second interval between contacts. Prefer groups or a lean recipient list.
Telegram
Telegram is the most flexible channel: it accepts multiple destinations (chats or groups, each with its own bot), a per-destination time window and individual priority. It is the recommended channel as the base for alerts.
Prerequisite
Create a bot on Telegram by talking to @BotFather (it generates the bot token) and add the bot to the chat or group that will receive the alerts.
Register a destination
- Open Settings (gear), Integrations tab, Telegram Alerts panel.
- Leave the selector on Activated.
- Click Insert Telegram and fill in the destination fields.
- If you do not know the Chat ID, use the Search Chat ID button (see below).
- Save and click Test on the newly created destination: the Test Result modal confirms delivery.
| Field | What it does |
|---|---|
| Chat ID | Numeric identifier of the chat or group that receives the alerts. |
| Token | The bot token, generated by BotFather. |
| Description | Free note shown next to the destination (e.g. "Night shift"). |
| Start time / End time | Daily window (format HH:MM) in which this destination receives alerts. The window can cross midnight (e.g. 22:00 to 06:00) and uses the server local time. |
| Priority | Offline/Alert receives everything; Offline receives only drops; Deactivated keeps the registration but silences the destination. |
Search Chat ID
The Search Chat ID button opens an assistant that, with the token filled in, queries the bot's recent conversations and lists the chats found (Chat ID, name and type) for you to click and fill the field automatically.
If "No message found. Try sending a message to your bot first." appears, send any message to the bot (or talk to it inside the group) and search again. The assistant only sees chats where the bot recently received a message.
Manage destinations
Each registered destination has the Change button (opens the Telegram Management modal), Test and Delete.
Operation tips
- Use the time windows to set up on-call shifts: a night-shift destination from 22:00 to 06:00 with Offline priority, for example.
- The Deactivated priority is for pausing a destination temporarily without losing the token and the Chat ID.
- The message templates accept Telegram formatting (
*bold*and_italic_); special characters are handled automatically. - If the test passes but the real alert does not arrive, check the destination's time window and priority (the Offline priority ignores threshold alerts).
The email channel uses one of the provider's own SMTP servers. It is the channel indicated for a formal record of incidents and is the only one that receives attachments, such as the Flow attack post-mortem PDF. New in 7.2 sending with an attachment.
Configure
- Open Settings (gear), Integrations tab, Email alerts panel.
- Mark Yes to enable the channel.
- Fill in the SMTP server data and the recipients (table below).
- Click Test connection: the system sends a test email and shows the SMTP server error if delivery fails.
- Click Save changes in the bottom bar for the fields to take effect.
| Field | What it does |
|---|---|
| SMTP Server | Address of the sending server (e.g. smtp.yourdomain.com). |
| User | Authentication account on the SMTP. It is also used as the sender of the emails. |
| Password | Account password (Show button to reveal while typing). |
| Port | SMTP port (typically 25 or 587). |
| SSL/TLS | Turns on connection encryption (recommended with port 587). |
| Send email to | Alert recipients. Accepts multiple emails separated by comma in a single field. |
| Alert when | Sensor Offline or in Alert (receives everything) or Sensor Offline (drops only). |
The email alert is only sent if the four connection fields (server, user, password and port) are filled in. If any of them is missing, the channel stays inactive without showing an error. If email stopped arriving, first check whether any field is empty and remember to click Save changes.
Best practices
- Use an email account dedicated to alerts, not a technician's personal account.
- Since the sender is the SMTP user itself, check the domain's SPF and DKIM so the alerts do not land in spam.
- On most email providers, the combination of port
587with SSL/TLS checked is the one that works. - The configured SMTP port is automatically added to the server firewall's outbound rules: do not remove that rule on the Firewall tab.
Attachments and reports
When a critical-severity attack detected by Flow ends, the "Attack ended" email arrives with the incident's post-mortem PDF attached. This behavior can be turned off in the Flow settings. See Automatic post-mortem.
Webhook
New in 7.2 The webhook delivers each alert to a URL of your own system, as a POST request with a JSON body. It is the channel for integrating Ravicor notices with an ERP, an internal panel, an on-call system or any automation that accepts HTTP requests.
Register
- Open Settings (gear), Integrations tab, Manage Webhook panel.
- Click New Webhook.
- Enter the Webhook URL, starting with
http://orhttps://. - Click Test: the system sends a test message right away, even before saving, and shows the result just below the field.
- Fill in the Description if you want to record the purpose (e.g. "Open ticket in the ERP").
- Under Trigger scope, check Devices, OLT or both (at least one is required). Concentrator and DNS appear as coming soon and cannot be checked yet.
- Leave Webhook active checked and click Create Webhook.
Register as many webhooks as you need, each with its own URL and scope. In the panel list, each webhook shows the URL, the Active or Inactive badge, the scope, the description and the Change and Delete buttons. Unchecking Webhook active pauses sending without losing the registration.
What triggers it
| Scope | When it sends |
|---|---|
| Devices | Sensor Offline or in Alert and the respective problem resolved notice, with the same text that goes out on the other channels. |
| OLT | Alerts from the OLT alert conditions (individual and mass) and their resolution notices. |
The webhook is a single system-wide configuration: it does not take part in channel inheritance and has no priority selector or time window. While active, it receives every event for its checked scopes.
What arrives at your URL
Each event is a POST with Content-Type: application/json. The body always carries these fields:
| Field | Content |
|---|---|
origem | Always ravi-monitor. |
mensagem | The alert text, the same as on the other channels (including customized templates). |
data | Date and time of sending in the format YYYY-MM-DD HH:MM:SS, server local time. |
evento | alerta (alert), resolvido (resolved) or teste (the Test button's test). |
Devices scope events also carry the dispositivo (device name) and ip fields; the alerta event additionally carries statusAlert, a numeric code for the problem type (the text in mensagem already describes the problem in full). OLT scope events carry the origem_modulo field with the value olt.
{"origem":"ravi-monitor","mensagem":"PROBLEM FOUND ...","data":"2026-07-24 14:32:05",
"evento":"alerta","dispositivo":"Edge Router","ip":"10.0.0.1","statusAlert":3}Requirements and tips
- The URL must respond with a success code (2xx) within 10 seconds. Any other response counts as a failure, and there is no retry for that event.
- Sending uses no token or signature: anyone who knows the URL can send a similar POST. Prefer HTTPS with a hard-to-guess address and validate the content on your system.
- Each webhook is independent of the other channels: if the URL goes down, Telegram, email, WhatsApp and push keep sending normally.
- To pause temporarily, edit the webhook and uncheck Webhook active instead of deleting it.