Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
26 lines
516 B
Plaintext
26 lines
516 B
Plaintext
[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>
|