*nix send-mail script added.
*nix send-mail script added. Scripts settings moved to config files
This commit is contained in:
20
scripts/unix/etc/cai-watchdog.conf.template
Normal file
20
scripts/unix/etc/cai-watchdog.conf.template
Normal 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>
|
||||
4
scripts/unix/etc/email.conf.template
Normal file
4
scripts/unix/etc/email.conf.template
Normal file
@@ -0,0 +1,4 @@
|
||||
Username: user@domain.local
|
||||
Password: str0ngP@$$word
|
||||
SMTP Server: smtp.domain.local
|
||||
Port: 465
|
||||
2
scripts/unix/etc/telegram.conf.template
Normal file
2
scripts/unix/etc/telegram.conf.template
Normal file
@@ -0,0 +1,2 @@
|
||||
Group ID: Telegram_Group_ID
|
||||
Bot token: Telegram_Bot_Token
|
||||
Reference in New Issue
Block a user