This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
сервис_adnanh_webhook [2026/05/07 14:20] val created |
сервис_adnanh_webhook [2026/05/07 16:12] (current) val |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * [[https://github.com/adnanh/webhook]] | * [[https://github.com/adnanh/webhook]] | ||
| + | |||
| + | * [[Сервис Prometheus#prometheus-alertmanager]] | ||
| + | <code> | ||
| + | root@server:~# apt install webhook | ||
| + | |||
| + | root@server:~# cat /etc/webhook.conf | ||
| + | [ | ||
| + | { | ||
| + | "id": "my-alert-script", | ||
| + | "execute-command": "/usr/local/bin/mywall.sh", | ||
| + | "command-working-directory": "/tmp", | ||
| + | "pass-arguments-to-command": [ | ||
| + | { | ||
| + | "source": "payload", | ||
| + | "name": "alerts" | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | ] | ||
| + | root@server:~# service webhook restart | ||
| + | |||
| + | root@server:~# ###webhook -hooks /etc/webhook.conf -verbose -port 9000 | ||
| + | |||
| + | </code> | ||