Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
This commit is contained in:
25
scripts/unix/etc/cai-watchdog/cai-watchdog.conf.template
Normal file
25
scripts/unix/etc/cai-watchdog/cai-watchdog.conf.template
Normal file
@@ -0,0 +1,25 @@
|
||||
[main]
|
||||
check_interval = 10
|
||||
rules_count = 3
|
||||
on_start_command = /etc/cai-watchdog/on-start
|
||||
|
||||
[rule1]
|
||||
service = Test1
|
||||
uri = http://127.0.0.1:3000/api/v1/
|
||||
process =
|
||||
email = admin@server.local
|
||||
command = /etc/cai-watchdog/send-telegram <message>
|
||||
|
||||
[rule2]
|
||||
service = Test2
|
||||
uri = http://127.0.0.1:3300/api/v1/
|
||||
process =
|
||||
email = admin@server.local
|
||||
command = /etc/cai-watchdog/send-telegram <message>
|
||||
|
||||
[rule3]
|
||||
service = Apache
|
||||
uri =
|
||||
process = httpd
|
||||
email = admin@server.local
|
||||
command = /etc/cai-watchdog/send-telegram <message>
|
||||
Reference in New Issue
Block a user