Closed annab999 closed 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!
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!