appliance@zabbix:~$ sudo -u zabbix /usr/lib/zabbix/externalscripts/pyandex.py
/usr/lib/zabbix/externalscripts/pyandex.py: 6: /usr/lib/zabbix/externalscripts/pyandex.py: import: not found
/usr/lib/zabbix/externalscripts/pyandex.py: 7: /usr/lib/zabbix/externalscripts/pyandex.py: import: not found
/usr/lib/zabbix/externalscripts/pyandex.py: 8: /usr/lib/zabbix/externalscripts/pyandex.py: import: not found
/usr/lib/zabbix/externalscripts/pyandex.py: 9: /usr/lib/zabbix/externalscripts/pyandex.py: from: not found
/usr/lib/zabbix/externalscripts/pyandex.py: 11: /usr/lib/zabbix/externalscripts/pyandex.py: Syntax error: "(" unexpected
#[python]
#!/usr/bin/env python
import pycurl
import pprint
import json
from io import BytesIO
c = pycurl.Curl()
data = BytesIO()
c.setopt(c.URL,'https://cloud-api.yandex.net:443/v1......................................')
c.setopt(pycurl.HTTPHEADER, ['Authorization: OAuth AgA............................'])
c.setopt(c.WRITEFUNCTION, data.write)
c.perform()
d = json.loads((data.getvalue()).decode('utf-8'))
pprint.pprint((d['total_space']-d["used_space"])/1024/1024/1024)
#[/python]
Вот такой разъем имел кабель