Hello,
Is there a way to monitor a REST API service secured by OAuth2 using Zabbix 4?
Ideally the setup would look like this:
I've successfully created a Zabbix Web Scenario authenticating and checking the HTTP response code. However, I couldn't find a way to extract/parse the response JSON body.
Any ideas, please?
Is there a way to monitor a REST API service secured by OAuth2 using Zabbix 4?
Ideally the setup would look like this:
- Request Auth Token at an OAuth2 endpoint (basically a HTTP POST)
- send USER+PW, parse and save the token from the response
- Use the saved token and an API key to request data from the REST API endpoint
- send the token in a HTTP header and HTTP GET the data from endpoint
- Ensure the HTTP response is valid
- HTTP 200
- Parse the JSON response body and save the a specific parsed value as a Zabbix Item
- use JSONPath
- A Zabbix Trigger would use the Zabbix Item's value
I've successfully created a Zabbix Web Scenario authenticating and checking the HTTP response code. However, I couldn't find a way to extract/parse the response JSON body.
Any ideas, please?
Comment