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

crontab grafana_alerts #12

Open
systems1 opened this issue Oct 30, 2015 · 5 comments
Open

crontab grafana_alerts #12

systems1 opened this issue Oct 30, 2015 · 5 comments

Comments

@systems1
Copy link

which python script should be added in crontab
I only see grafana_alerts module and no grafana_alerts.py as per documentation crontab

"Add a cron task to execute grafana_alerts for example each 3 minutes::
*/3 * * * * grafana_alerts"

Red Hat Enterprise Linux Server release 6.6
/usr/lib/python2.6/site-packages/grafana_alerts>]ls -l
total 80
-rw-r--r-- 1 root root 11075 Oct 28 16:29 alerting.py
-rw-r--r-- 1 root root 9742 Oct 28 16:29 alerting.pyc
-rw-r--r-- 1 root root 1130 Oct 28 16:29 html_version_item.html
-rw-r--r-- 1 root root 2801 Oct 28 16:29 html_version_main.html
-rw-r--r-- 1 root root 315 Oct 28 16:29 init.py
-rw-r--r-- 1 root root 620 Oct 28 16:29 init.pyc
-rw-r--r-- 1 root root 1436 Oct 28 16:29 launcher.py
-rw-r--r-- 1 root root 2375 Oct 28 16:29 launcher.pyc
-rw-r--r-- 1 root root 9 Oct 28 16:29 package_data.dat
-rw-r--r-- 1 root root 15718 Oct 28 16:29 reporting.py
-rw-r--r-- 1 root root 11095 Oct 28 16:29 reporting.pyc

@vmironenko
Copy link

/usr/bin/grafanaalerts

@systems1
Copy link
Author

systems1 commented Nov 4, 2015

thanks for file location
I see its grafanaAlerts
when I run it i get below errors ,could be my installation packages dependancies

/usr/bin/grafanaAlerts
Traceback (most recent call last):
File "/usr/bin/grafanaAlerts", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: jmespath>=0.6.1

@vmironenko
Copy link

Hi

You need to install jmespath ( >=0.6.1 ):

pip install jmespath

2015-11-05 3:56 GMT+06:00 systems1 [email protected]:

thanks for file location
I see its grafanaAlerts
when I run it i get below errors ,could be my installation packages
dependancies

/usr/bin/grafanaAlerts
Traceback (most recent call last):
File "/usr/bin/grafanaAlerts", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: jmespath>=0.6.1


Reply to this email directly or view it on GitHub
#12 (comment)
.

@PodioSpaz
Copy link

I'm having the same error pkg_resources.DistributionNotFound: jmespath>=0.6.1

jmespath is installed.

pip show jmespath

Metadata-Version: 2.0
Name: jmespath
Version: 0.9.0
Summary: JSON Matching Expressions
Home-page: https://github.com/jmespath/jmespath.py
Author: James Saryerwinnie
Author-email:
License: UNKNOWN
Location: /usr/lib/python2.6/site-packages
Requires:

@iferrarims
Copy link

@PodioSpaz I met the same error. By reinstall jmespath, everything is fine.
pip install jmespath==0.6.1 --force-reinstall

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

4 participants