omni-lchen / zabbix-cloudwatch

71 stars 61 forks source link

File "/opt/zabbix/cloudwatch/zabbixCloudWatch.py", line 370, in <module> #22

Open nicolasfortier75 opened 7 years ago

nicolasfortier75 commented 7 years ago

Hi, I got this error msg...

Traceback (most recent call last): File "/opt/zabbix/cloudwatch/zabbixCloudWatch.py", line 370, in cw_data = getCloudWatchData(aws_account, aws_region, aws_service, dimensions) File "/opt/zabbix/cloudwatch/zabbixCloudWatch.py", line 172, in getCloudWatchData aws_metrics = json.loads(open(aws_services_conf).read()) File "/usr/lib/python2.7/json/init.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 367, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) ValueError: Extra data: line 1 column 10 - line 403 column 1 (char 9 - 9190)

magnetogit commented 7 years ago

solved , invalid path

nicolasfortier75 commented 7 years ago

For any cron script.

nicolasfortier75 commented 7 years ago

invalid Path?

nicolasfortier75 commented 7 years ago

Can you specify what's wrong with path?

In my script: PATH=$PATH:/opt/zabbix/cloudwatch export PATH

/opt/zabbix/cloudwatch$ ls awsAccount.py awsConnection.py awsLLD.py awsLLD.sh conf cron.CloudFront.sh cron.d cron.RDS.sh pyZabbixSender.py README.md templates zabbixCloudWatch.py

magnetogit commented 7 years ago

I used /opt/zabbix/cloudwatch/zabbix-cloudwatch/cron.d/cron.RDS.sh ,That error ,Because script fix path as PATH=$PATH:/opt/zabbix/cloudwatch

nicolasfortier75 commented 7 years ago

If my PATH was not good... I would get...

zabbixCloudWatch.py: command not found