Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22327

AWS by HTTP is not working with Zabbix 6.0.13

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.0.13
    • Server (S)
    • Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)

      Steps to reproduce:

      1. Get the 4 templates from zabbix git
      2. Import in zabbix
      3. Create one item in order to discovery AWS services
      4. Wait a bit and check the result of EC2 instance discovery

       

      It surely brake something here: 

              instance.forEach(function (item, index, instance_array) {
                              if (typeof item !== 'object'
                                  || typeof item.instancesSet !== 'object'
                                  || typeof item.instancesSet.item !== 'object'
                                  || item.instancesSet.item.hasOwnProperty('instanceId') === false)
                                  throw 'Failed response parse. Check debug log for more information.';
       
      

      The data from AWS seems to be right.

      Someone here https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/452053-error-failed-response-parse-check-debug-log-for-more-information-in-aws-by-http is suggesting to change

                      setParams: function (params) {
                          ['access_key', 'region', 'secret_key'].forEach(function (field) {
                              if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') {
                                  throw 'Required param is not set: "' + field + '".';
                              }

      to
      setParams: function (params) {
      AwsEC2.params = params;
      },​
       

      But at least for me this solution does not work.

      Thank you!

       

            abakaldin Alexander Bakaldin
            fabreg Fabrizio Regalli
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: