wawastein / zabbix-cloudwatch

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

Value should be a JSON object. #6

Open anup1384 opened 6 years ago

anup1384 commented 6 years ago

I am getting error in zabbix Value should be a JSON object.

screenshot 2017-07-12 23 04 08
wawastein commented 6 years ago

@anup1384 as I responded to you in twitter, try running discovery script manually and see output. Most likely something is wrong in configuration and script returns errors instead of JSON.

nemd commented 6 years ago

I have similar issue but it works partially: https://puu.sh/zCork/c9cad5fc32.png

I've run discovery script manually and it works for s3 module but it doesn't for ec2 module: botocore.exceptions.ClientError: An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

I'm testing it on aws key with full administrative access

nemd commented 6 years ago

It's connected to #10 - time sync issue. After setting correct time on zabbix server (with ntp) everything works.

jashankochar commented 6 years ago

image

Any idea on above error?

jackjohnsonontrac commented 5 years ago

Is there still no documented resolution for this?

lminan commented 5 years ago

Hi, i ran the discovery script for my ec2 instance and it works, but, in the template, the discovery rule is not working. It doesn´t show anything. When i created manually the item with the values (without {#INSTANCE_ID) i can get the values without problems.

Any idea about this problem?

larcz94 commented 4 years ago

[account-name] = AWS account ID

krunal-git commented 4 years ago
  1. Set value of NTP server
  2. in the aws.conf file the top [account-name] replace "account-name" by your account ID like [xxxxxxxxxxxx]
fearless11 commented 4 years ago
  1. confirm the zabbix client is in JSON format /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/conf/zabbix_agentd.conf -t xxx.discover | python -m json.tool
  2. confirm the zabbix server gets the correct data zabbix_get -s ip -k "xxx.discovery"

my situation is the zabbix server gets the returned data is { "data": [] }. after I restart the zabbix client. the problem solved.

accodepull commented 3 years ago

Account ID inserted within square brackets in /conf/aws.conf [#############]

manually running ./aws.discovery 'ec2' 'region' 'account number' within externalscripts returns {"data":[......]}

however from within Zabbix I still get "Value should be a JSON object" in Discovery Rules - Any idea why?