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

Can not run because of error syntax #5

Open
JackieKhuu opened this issue Mar 26, 2014 · 2 comments
Open

Can not run because of error syntax #5

JackieKhuu opened this issue Mar 26, 2014 · 2 comments

Comments

@JackieKhuu
Copy link

I can not run file check_es_insert.py. It show this error:
File "/usr/local/nagios/libexec/elasticsearch/check_es_insert.py", line 13
class Calculator():
^
SyntaxError: invalid syntax

I'm not good in python, I'm trying to use this script to monitor elasticsearch cluster, please help

@radu-gheorghe
Copy link
Owner

Hmmm... I have Python 2.7.3 and Elasticsearch 1.0.1, and here's what I get:

./check_es_insert.py -w 5000000 -c 10000000
There was an issue getting the previous results from file. # this is normal for the first run
./check_es_insert.py -w 5000000 -c 10000000
Number of documents inserted per second (index: all) is 0.006469 | 'es_insert'=0.006469;5000000;10000000;;

Which version of Python are you running on? Can you try and clone the repository again, maybe some file got corrupted?

@JackieKhuu
Copy link
Author

My python version is 2.4, I cloned the repository, but it still had error syntax.
I will try to update python version.
thank you very much for your reply

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