Common Name isn't the first column when using status-version 2/3, see https://github.com/OpenVPN/openvpn/blob/499794596deb16965164b611ff61c8609c6cd08e/src/openvpn/multi.c#L943
VPNable committed
May 21, 2018 at 15:04 UTC
2e1df641a20d03d8bbfee2d9768cd0c259a1aa83
1 file changed
+1
-1
python.d/ovpn_status_log.chart.py
+1
-1
@@ -108,7 +108,7 @@ class Service(SimpleService):
108
data = dict(users=0, bytes_in=0, bytes_out=0)
109
for row in raw_data:
110
columns = row.split(',') if ',' in row else row.split()
111
- if columns[0] == 'UNDEF': continue # see https://openvpn.net/archive/openvpn-users/2004-08/msg00116.html
111
+ if 'UNDEF' in columns: continue # see https://openvpn.net/archive/openvpn-users/2004-08/msg00116.html
112
113
match = self.regex['tls'].search(' '.join(columns))
114
if match: