wawastein / zabbix-cloudwatch

Cloudwatch integration for Zabbix 3.x
GNU General Public License v3.0
33 stars 53 forks source link

import template error #24

Open linqian871834 opened 4 years ago

linqian871834 commented 4 years ago

I have receive the error when I try to import template file to zabbix front. image

I have done following steps:

  1. place the "externalscripts" and "scripts" to /usr/lib/zabbix
  2. change both directory files to 755 right.
riarrp commented 4 years ago

I have the same problem. I'm using zabbix version 4.2

riarrp commented 4 years ago

I tried zabbix version 4.0.12, and the same problem happened.

linqian871834 commented 4 years ago

my version is 4.2.8.

sherrerq commented 4 years ago

@riarrp Same problem.

sherrerq commented 4 years ago

Hi, Somebody could import the template?

ghost commented 4 years ago

Same error on Zabbix 4.4.4

jensolsson commented 4 years ago

I have the same issue. Is there a workaround?

Looking into the template file it seem to me the problem is keys with twodimensional parameters like

instances[{#TARGET_GROUP_LOAD_BALANCER_NAME}][{#TARGET_GROUP_NAME}]

Maybe there is a syntax change or something? I tried to find any documentation but could not

banzayats commented 4 years ago

I've created a pull request https://github.com/wawastein/zabbix-cloudwatch/pull/27

Zabbix key should include only one params section. More info can be found in the Zabbix template guidelines

jensolsson commented 4 years ago

I have also created a pull request #26 :) On 10 Feb 2020, 13:26 +0100, Вадим notifications@github.com, wrote:

I've created a pull request #27 Zabbix key should include only one params section. More info can be found in the Zabbix template guidelines — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

leighlatham123 commented 3 years ago

Hey for future reference i fixed this by replacing lines

536, 576 & 593

**From: instances[{#TARGET_GROUP_LOAD_BALANCER_NAME}][{#TARGET_GROUP_NAME}]

To:** instances[{#TARGET_GROUP_LOAD_BALANCER_NAME}-{#TARGET_GROUP_NAME}]

Save and then reimport the template, it should pass now the values are updated.

EzzioMoreira commented 3 years ago

@Nufan1121 Thanks here it worked.