*nix send-mail script added.

*nix send-mail script added. Scripts settings moved to config files
This commit is contained in:
2022-06-28 00:13:07 +03:00
parent b55f72f2e4
commit 486d9384cc
7 changed files with 96 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
[main]
check_interval = 10000
rules_count = 2
[notifications]
email = admin@server.local
command = send-telegram <message>
service_start = true
[rule1]
service = Test1
uri = http://127.0.0.1:3000/api/v1/
email = admin@server.local
command = send-telegram <message>
[rule2]
service = Test2
uri = http://127.0.0.1:3300/api/v1/
email = admin@server.local
command = send-telegram <message>

View File

@@ -0,0 +1,4 @@
Username: user@domain.local
Password: str0ngP@$$word
SMTP Server: smtp.domain.local
Port: 465

View File

@@ -0,0 +1,2 @@
Group ID: Telegram_Group_ID
Bot token: Telegram_Bot_Token