Pull to refresh
0
0
Send message

В скрипте iperf3_speed_testing.py ошибки. Объект нельзя преобразовать в строку

zbx_datacontainer.server_active = proxy.split('\n')[0] - не работает

zbx_datacontainer.server_active = proxy.decode('utf-8').rstrip('\n') - работает

Непонятен повторный запуск процесса, когда уже получили ошибку -

while stdout_value.find('error') != -1 and stdout_json['error'] == 'error - unable to receive results: Resource temporarily unavailable':

Можете пояснить, что такое 'hostname' и откуда этот параметр берётся?

proxy = subprocess.Popen(['hostname'], stdout=subprocess.PIPE)

Information

Rating
Does not participate
Registered
Activity