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
472 B
Plaintext
26 lines
472 B
Plaintext
[main]
|
|
check_interval = 10
|
|
rules_count = 3
|
|
on_start_command = ./on-start.ps1
|
|
|
|
[rule1]
|
|
service = Test1
|
|
uri = http://127.0.0.1:3000/api/v1/
|
|
process =
|
|
email = admin@server.local
|
|
command = ./send-telegram.ps1 <message>
|
|
|
|
[rule2]
|
|
service = Test2
|
|
uri = http://127.0.0.1:3300/api/v1/
|
|
process =
|
|
email = admin@server.local
|
|
command = ./send-telegram.ps1 <message>
|
|
|
|
[rule3]
|
|
service = Apache
|
|
uri =
|
|
process = httpd.exe
|
|
email = admin@server.local
|
|
command = ./send-telegram.ps1 <message>
|