Elasticsearch-zabbix
Elasticsearch-zabbix copied to clipboard
Stale lock
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)