aklyuk / zabbix-emc-unity

Python script for monitoring EMC Unity strages
22 stars 20 forks source link

Can u help me #18

Open Diga1129 opened 3 months ago

Diga1129 commented 3 months ago

I encountered the same problem. Currently, even with curl, I'm getting a 401 error. However, since there is a UI on the machine, I can connect successfully using a browser on it, so I'm ruling out any network issues. Account login is also not a problem. However, even when using the command:

bash Copy code ./unity_get_state.py --api_ip='X.X.X.X' --api_port='443' --api_user='zabbix' --api_password='PASSWORD' --storage_name="zabbix web前端配置的主机名" --discovery I still receive a 401 error.

Could you provide some suggestions for resolving this issue?

Diga1129 commented 3 months ago
螢幕擷取畫面 2024-03-15 155659
TomaszSienko commented 1 month ago

Hi @Diga1129, as i mentioned in different issue, you can try to run the script with python2.7 version and also try to change the user role and password. So install python2.7 and then run the script with pyhton2.7 ./unity_get_state.py......