Search code examples
monitoringzabbix

Zabbix Web Scenario / 400


I am struggling with Zabbix Web Scenarios, I am trying to post to a url in the same way this curl does:

 curl -XPOST xxxx -d' { "grant_type": "password", "username": "xxx", "password": "xxx", "client_id": "xxx", "client_secret": "xxx"}'

However, I get a 400 error when loading it into Web Scenarios, here is the setup I am using in Zabbix.

Zabbix Web Scenario

This for some reason gives me back a 400 error, whereas the above curl works fine and I get an authorisation. Does any one have any more experience with this that can offer a hand?


Solution

  • You are not posting a JSON, but a list of individual variables. Try using the JSON as-is.