-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
6.0.13
-
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:
- Get the 4 templates from zabbix git
- Import in zabbix
- Create one item in order to discovery AWS services
- 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!
- part of
-
ZBXNEXT-8283 Implement role based authentication for monitoring AWS EC2 instances.
- Closed