| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Rocky Linux 9.6 |
| Webmin version | 2.402 |
Could someone help me with regards to the expected functionality when using the ‘send status to webhook’ please?
Does it send a GET request or a POST?
This command:
/etc/webmin/status/monitor.pl --debug
Seems to make it look like a GET, but the URL is malformed. Note there is a space between my webhook URL and the request parameters
Calling webhook URL https://hooks.slack.com/services/BLAH/BLAH/BLAH service_cmd=varnishd&service_id=32141234&status=&service_type=proc&isdown=1&service_runon=0&status_nice_value=&service_desc=Varnish&service_remote=%2A&service_nosched=4&host=my.server&status_desc=&service_fails=1&service_notify=pager%20sms%20snmp%20email%20webhook&service_oldremote=%2A&service_thresh=1&status_value=&service_not=0
As the Slack API requires a POST and then a JSON payload, this probably won’t work anyway, however it would be good to expand on this if possible as this webhook feature would be extremely useful if it supported POST requests to Slack ![]()
An example POST request for Slack should look like this:
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/BLAH/BLAH/BLAH