Uploaded image for project: 'Opsgenie'
  1. Opsgenie
  2. OPSGENIE-1394

Zabbix integration created via Terraform does not accept sendViaOEC parameter causing OEC to fail

    XMLWordPrintable

Details

    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

      1. Create Zabbix integration via Terraform
      2. Check the Send2OEC value set for the integration (set to false by default)
      3. Configure OEC to use api key from the above integration
      4. Run OEC
      5.  Error logged as "message":"ChannelDoesNotExistException: OEC channel does not exist!"
      6. Update the integration and set the Send2OEC to true.
      7. Restart OEC
      8. Error logged as "message":"ChannelDoesNotExistException: OEC channel does not exist!"
      9. Create a new Zabbix integration and add the argument SendViaOEC = true
      10. Error logged as "An argument named "sendViaOEC" is not expected here."

      Expected Results

      1. 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
      2. 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

      1. Create the integration via Create Integration API request.
      2. Create integration via UI. 

      Attachments

        Activity

          People

            1b9b24195ec1 Zekihan Azman
            ad7c4ffcfed3 Sean Suwal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: