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

Stale lock #17

Open
hrr888 opened this issue Mar 3, 2017 · 0 comments
Open

Stale lock #17

hrr888 opened this issue Mar 3, 2017 · 0 comments

Comments

@hrr888
Copy link

hrr888 commented Mar 3, 2017

Hi
When ESzabbix.py wait to long tor Elasticsearch to answer, zabbix-agent kills it, leaving lock file. This prevents any further invocations of ESzabbix.py to work. They are waiting for lock to release, and are killed as well by zabbix-agent after configured timeout.
Simple check a the beginning of script, that removes lock if it is as old as cache file should resolve issue:
if use_cache(lock_file): os.remove(loc_file)

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

1 participant