@cryptotaxi247 / netdata-1 / commits / 809ad9a42

elastic plugin: check if max_file_descriptors is in data before use it

Ilya committed Jul 13, 2017 at 16:01 UTC 809ad9a426c44f3e42b43d87bd297e0a883dbb75
1 file changed +1 -1
python.d/elasticsearch.chart.py
+1 -1
@@ -438,7 +438,7 @@ class Service(UrlService):
438 key=key)
439 except KeyError:
440 continue
441 - if 'open_file_descriptors' in to_netdata:
441 + if 'open_file_descriptors' in to_netdata and 'max_file_descriptors' in to_netdata:
442 to_netdata['file_descriptors_used'] = round(float(to_netdata['open_file_descriptors'])
443 / to_netdata['max_file_descriptors'] * 1000)
444