Notifications: различия между версиями

Материал из WiKi - UserSide
(Новая страница: «en | ru»)
 
Нет описания правки
Строка 1: Строка 1:
[[Notifications|en]] | [[Уведомления|ru]]
[[Notifications|en]] | [[Уведомления|ru]]
The "Settings" => "Notifications" section collects functionality to manage the methods of delivery of a variety of notifications.
[[File:|thumb|800px|center]]
Configure the required settings.
== Email ==
[[File:|thumb|800px|center]]
You can choose between two transport modes:
=== SMTP ===
When selecting this transport type, you must specify the SMTP server address and port. If the server uses encryption, specify its type and set the corresponding port. If the server requires authentication - specify a username and password.
If you are using a public SMTP server of public mail services (Google, Yandex, etc.), all necessary settings can be found in the Help section of your service.
=== sendmail ===
When selecting this transport type, you must specify the path to sendmail and the parameter to start sending mail -bs or -t
The configuration string should look like this <code>/usr/sbin/sendmail -bs</code> or <code>/usr/sbin/sendmail -t</code>
== SMS ==
[[File:|thumb|800px|center]]
== Telegram ==
''(Starting from version 3.15)''
In the menu: ''Settings'' => ''Notifications'' => ''Messenger'' you need to make the following settings.
[[File:|thumb|800px|center]]
1. '''Service''' - Telegram
2. '''Bot token''' - specify the API token of your bot, through which the sending will be done. To create a Telegram bot and/or get its API token, you need to write to the bot <code>@BotFather</code> https://t.me/BotFather and choose to create a new bot in the menu, if you don't have one yet, then request its API token through the menu. The API-token looks like this: <code>123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11</code>
3. '''Proxy server URI''' - optional - specify the URI of the proxy, if using, along with the protocol and port number. For example,<code>socks://telegram.proxy</code> or <code>tcp://telegram.proxy:8125</code> etc.
4. '''Parse Mode''' - optional - specify the mode of message text processing. You can choose between ''plain text'' and ''Markdown'' or ''HTML'' modes. More details in the documentation: https://core.telegram.org/bots/api#formatting-options
Telegram bot will be able to send messages to telegram users only after the telegram user launches the bot. To do this, you need to open a chat with the bot, then click "Start" at the bottom of the chat, then write anything to the bot, for example, <code>/start</code>. Next, you need to find out the chat-id of the Telegram user to whom the bot should send messages and enter it into the Userside user data.
For each operator of the system you can specify its chat-id - this is a unique identifier of the user within the Telegram network. The fastest way to find out your chat-id is to text <code>/get id</code> to bot <code>@JohnRoebot</code> https://t.me/JohnRoebot . Enter the received numeric identifier into the Telegram chat_id field.
[[File:|thumb|800px|center]]
To perform the test of sending notifications, you need to specify its Chat ID in the "Recipient" field. Then click "Send".
[[File:|thumb|800px|center]]
== Custom HTTP request ==
=== Custom URL ===
''(Starting from version 3.15)''
[[File:|thumb|800px|center]]
The URL and the HTTP method that will be used to call this URL should be specified. As you can see from the screenshot, the URL contains wildcard fields:
* <code>{recipient_address}</code> — this value will be replaced by the recipient's address
* <code>{message}</code> — this value will be replaced by the message text
For each system operator, you can specify its destination address for Custom HTTP request.
[[File:|thumb|800px|center]]
<br>
'''Starting from version 3.18:'''
<span id="anchor_318_155_EN">Removed functionality with JABBER. Use "Custom HTTP request" or Messenger (Telegram) notification service</span>
[[File:|thumb|800px|center]]
== Tasks. Messages templates ==
[[File:|thumb|800px|center]]
== Equipment. Messages templates ==
<span id="anchor_318_54_EN">Added the ability to configure templates of messages about the loss/appearance of activity in the equipment to the notification settings.</span>
[[File:|thumb|800px|center]]
[[File:|thumb|800px|center]]

Версия от 17:35, 1 марта 2024

en | ru

The "Settings" => "Notifications" section collects functionality to manage the methods of delivery of a variety of notifications.

[[File:|thumb|800px|center]]

Configure the required settings.

Email

[[File:|thumb|800px|center]]

You can choose between two transport modes:

SMTP

When selecting this transport type, you must specify the SMTP server address and port. If the server uses encryption, specify its type and set the corresponding port. If the server requires authentication - specify a username and password.

If you are using a public SMTP server of public mail services (Google, Yandex, etc.), all necessary settings can be found in the Help section of your service.

sendmail

When selecting this transport type, you must specify the path to sendmail and the parameter to start sending mail -bs or -t The configuration string should look like this /usr/sbin/sendmail -bs or /usr/sbin/sendmail -t

SMS

[[File:|thumb|800px|center]]

Telegram

(Starting from version 3.15)

In the menu: Settings => Notifications => Messenger you need to make the following settings.

[[File:|thumb|800px|center]]

1. Service - Telegram

2. Bot token - specify the API token of your bot, through which the sending will be done. To create a Telegram bot and/or get its API token, you need to write to the bot @BotFather https://t.me/BotFather and choose to create a new bot in the menu, if you don't have one yet, then request its API token through the menu. The API-token looks like this: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

3. Proxy server URI - optional - specify the URI of the proxy, if using, along with the protocol and port number. For example,socks://telegram.proxy or tcp://telegram.proxy:8125 etc.

4. Parse Mode - optional - specify the mode of message text processing. You can choose between plain text and Markdown or HTML modes. More details in the documentation: https://core.telegram.org/bots/api#formatting-options

Telegram bot will be able to send messages to telegram users only after the telegram user launches the bot. To do this, you need to open a chat with the bot, then click "Start" at the bottom of the chat, then write anything to the bot, for example, /start. Next, you need to find out the chat-id of the Telegram user to whom the bot should send messages and enter it into the Userside user data.

For each operator of the system you can specify its chat-id - this is a unique identifier of the user within the Telegram network. The fastest way to find out your chat-id is to text /get id to bot @JohnRoebot https://t.me/JohnRoebot . Enter the received numeric identifier into the Telegram chat_id field.

[[File:|thumb|800px|center]]

To perform the test of sending notifications, you need to specify its Chat ID in the "Recipient" field. Then click "Send".

[[File:|thumb|800px|center]]

Custom HTTP request

Custom URL

(Starting from version 3.15)

[[File:|thumb|800px|center]]

The URL and the HTTP method that will be used to call this URL should be specified. As you can see from the screenshot, the URL contains wildcard fields:

  • {recipient_address} — this value will be replaced by the recipient's address
  • {message} — this value will be replaced by the message text

For each system operator, you can specify its destination address for Custom HTTP request.

[[File:|thumb|800px|center]]



Starting from version 3.18:

Removed functionality with JABBER. Use "Custom HTTP request" or Messenger (Telegram) notification service

[[File:|thumb|800px|center]]

Tasks. Messages templates

[[File:|thumb|800px|center]]

Equipment. Messages templates

Added the ability to configure templates of messages about the loss/appearance of activity in the equipment to the notification settings.

[[File:|thumb|800px|center]]

[[File:|thumb|800px|center]]