Elasticsearch-zabbix icon indicating copy to clipboard operation
Elasticsearch-zabbix copied to clipboard

Stale lock

Open hrr888 opened this issue 7 years ago • 0 comments

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)

hrr888 avatar Mar 03 '17 10:03 hrr888