Fix extraction of nginx status values.
Ondrej Brablc committed
Aug 9, 2016 at 13:21 UTC
a268c0a249d851422a07e01e7b70a5fb54ca04ab
1 file changed
+3
-3
python.d/nginx.chart.py
+3
-3
@@ -63,11 +63,11 @@ class Service(UrlService):
63
try:
64
raw = self._get_raw_data().split(" ")
65
return {'active': int(raw[2]),
66
- 'requests': int(raw[7]),
66
+ 'requests': int(raw[9]),
67
'reading': int(raw[11]),
68
'writing': int(raw[13]),
69
'waiting': int(raw[15]),
70
- 'accepts': int(raw[8]),
71
- 'handled': int(raw[9])}
70
+ 'accepts': int(raw[7]),
71
+ 'handled': int(raw[8])}
72
except (ValueError, AttributeError):
73
return None