Open nicolasfortier75 opened 7 years ago
solved , invalid path
For any cron script.
invalid Path?
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
I used /opt/zabbix/cloudwatch/zabbix-cloudwatch/cron.d/cron.RDS.sh ,That error ,Because script fix path as PATH=$PATH:/opt/zabbix/cloudwatch
If my PATH was not good... I would get...
zabbixCloudWatch.py: command not found
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)