User Tools

Site Tools


сервис_adnanh_webhook

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_adnanh_webhook [2026/10/09 16:53]
val
сервис_adnanh_webhook [2026/11/05 14:24] (current)
val
Line 14: Line 14:
     "​id":​ "​my-alert-script",​     "​id":​ "​my-alert-script",​
     "​execute-command":​ "/​usr/​local/​bin/​mywall.sh",​     "​execute-command":​ "/​usr/​local/​bin/​mywall.sh",​
 +#    "​execute-command":​ "/​usr/​local/​bin/​mywall_through_llm.sh",​
 +#    "​execute-command":​ "/​usr/​local/​bin/​my-prometheus-xmpp-alerts.sh",​
     "​command-working-directory":​ "/​tmp",​     "​command-working-directory":​ "/​tmp",​
     "​pass-arguments-to-command":​ [     "​pass-arguments-to-command":​ [
Line 28: Line 30:
 root@server:​~#​ ###webhook -hooks /​etc/​webhook.conf -verbose -port 9000 root@server:​~#​ ###webhook -hooks /​etc/​webhook.conf -verbose -port 9000
  
 +$ curl -X POST -H "​Content-Type:​ application/​json"​ \
 +     -d '​{"​alerts":​ "​{\"​status\":​ \"​firing\",​ \"​message\":​ \"​тестовое сообщение\"​}"​}'​ \
 +     ​http://​localhost:​9000/​hooks/​my-alert-script
 </​code>​ </​code>​
сервис_adnanh_webhook.1791554019.txt.gz · Last modified: 2026/10/09 16:53 by val