omni-lchen / zabbix-cloudwatch

71 stars 61 forks source link

File "/usr/lib64/python2.7/json/decoder.py" ....... ValueError: Expecting , delimiter: line 20 column 37 (char 393) #43

Closed annab999 closed 6 years ago

annab999 commented 6 years ago

Hi! Upon manually running an EC2 wrapper script, I get the following error:

Traceback (most recent call last): File "/opt/zabbix/cloudwatch/zabbix-cloudwatch/zabbixCloudWatch.py", line 394, in cw_data = getCloudWatchData(aws_account, aws_region, aws_service, dimensions) File "/opt/zabbix/cloudwatch/zabbix-cloudwatch/zabbixCloudWatch.py", line 172, in getCloudWatchData aws_metrics = json.loads(open(aws_services_conf).read()) File "/usr/lib64/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting , delimiter: line 20 column 37 (char 393)

The command I was running is: /opt/zabbix/cloudwatch/zabbix-cloudwatch/cron.d/cron.EC2.sh "instanceid" "hostname" "servername" "acctname" "region"

with the parameters specified accordingly.

Any help/enlightenment would be much appreciated!