Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
When using terraform to create Zabbix integration following error is received in OEC. This is due to SendViaOEC being set to false by default during the integration creation.
{"message":"ChannelDoesNotExistException: OEC channel does not exist!","took":0.005,"requestId":"715b6ac9-4415-452b-814d-ba42f24c1967"}However, if sendViaOEC = true is passed during the creation of the integration via Terraform - Unsupported argument error is received. "An argument named "sendViaOEC" is not expected here."
Manually updating the sendViaOEC to true after the integration is created still gives the original error above.
Steps to Reproduce
- Create Zabbix integration via Terraform
- Check the Send2OEC value set for the integration (set to false by default)
- Configure OEC to use api key from the above integration
- Run OEC
- Error logged as "message":"ChannelDoesNotExistException: OEC channel does not exist!"
- Update the integration and set the Send2OEC to true.
- Restart OEC
- Error logged as "message":"ChannelDoesNotExistException: OEC channel does not exist!"
- Create a new Zabbix integration and add the argument SendViaOEC = true
- Error logged as "An argument named "sendViaOEC" is not expected here."
Expected Results
- When creating the Zabbix integration via Terraform, have the ability to add SendViaOEC argument when creating the integration as updating the value after creation does not resolve the issue. OR
- have sendViaOEC enabled by default like when creating the integration via UI.
Actual Results
{"message":"ChannelDoesNotExistException: OEC channel does not exist!","took":0.005,"requestId":"715b6ac9-4415-452b-814d-ba42f24c1967"}
Workaround
- Create the integration via Create Integration API request.
- Create integration via UI.