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

Options to specify python executable #49

Open
matejzero opened this issue Dec 9, 2021 · 2 comments
Open

Options to specify python executable #49

matejzero opened this issue Dec 9, 2021 · 2 comments

Comments

@matejzero
Copy link

We have a case where OEC is running on server where python executable is linked to python2. In that case, we are unable to run nagios integration as nagios script is not compatible with python2.

At the moment, we modify https://github.com/opsgenie/oec/blob/master/runbook/executor.go#L19 and recompile ourself, but it would be nice if that cold be changed via config file so upgrade path would be simpler.

Is that something that could be done?

@metehanozturk
Copy link
Contributor

Hi @matejzero, you can track the progress of the issue from this ticket

@ipaqmaster
Copy link

Also running into this problem today seems it were never fixed.

I modified OEC's systemd service to have:

Environment="PATH=/home/opsgenie/python3/"

and in that directory is a symlink of /usr/bin/python3 to /home/opsgenie/python3/python and that seems to have worked around this, now it's trying to execute nagios commands from Opsgenie and is hitting execution of message [x] with with entityId [y] failed: exit status 2 Stderr: usage: actionExecutor.py [-h] -payload PAYLOAD -apiKey APIKEY -opsgenieUrl

I thought all of this got configured in /home/opsgenie/oec/conf/config.json, does the script not reference that either?

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

3 participants