Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolasfortier75 opened this issue Oct 27, 2017 · 6 comments

Comments

@nicolasfortier75
Copy link

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
Copy link

solved , invalid path

@nicolasfortier75
Copy link
Author

For any cron script.

@nicolasfortier75
Copy link
Author

invalid Path?

@nicolasfortier75
Copy link
Author

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
Copy link

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
Copy link
Author

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

zabbixCloudWatch.py: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants