Title
#fleet
SK

SK

11/23/2021, 3:12 PM
Hey all, trying the webhook out, but seeing the following error, don't understand what it is saying:
{"component":"crons","cron":"webhooks","details":"posting to <http://url>: Post \"<http://url>\": EOF","err":"triggering host status webhook","level":"error","ts":"2021-11-23T14:52:36.704843335Z"}
Lucas Rodriguez

Lucas Rodriguez

11/23/2021, 3:36 PM
Hi SK!, it seems the configuration is using
<http://url>
as the
destination_url
(see https://fleetdm.com/docs/using-fleet/configuration-files#webhooks). Let me know if it makes sense.
SK

SK

11/23/2021, 4:00 PM
Yes but I just removed the actual url, the format I use at the moment is http://hostname😛ort
Lucas Rodriguez

Lucas Rodriguez

11/23/2021, 5:32 PM
EOF
would indicate that there was an issue connecting to the endpoint, can you confirm that the host fleet is running on can reach to the configured
<http://hostname>:port
?
5:32 PM
(Maybe via curl/wget)
SK

SK

11/23/2021, 8:06 PM
I will give it a try, thanks. Will update this thread when I test it.
4:30 PM
Fixed it, had to use another endpoint, where I was sending it did not accept the format.
Noah Talerman

Noah Talerman

12/02/2021, 5:52 PM
@SK what location were you trying to send the webhook to initially? That did not accept the format. I’m curious if it would be valuable for Fleet to improve the webhook so that the format is compatible with this location.
SK

SK

12/02/2021, 5:58 PM
Hey @Noah Talerman I was trying to get it to be send to Zabbix. Following this method: https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/trapper Zabbix needs a configurable key to accept the data. Probably giving more editing possibilities when enabling Webhooks can help.
Noah Talerman

Noah Talerman

12/02/2021, 6:11 PM
Got it! Thanks for the link. Another potential solution: Fleet may want to have a Zabbix integration in the future. This way, the webhook request is always sent with the accepted Zabbix format.
SK

SK

12/04/2021, 10:05 AM
That would be great, of at least the possibilty to change or configure some fields for the output.