aklyuk / zabbix-emc-unity

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

the script execute fail #2

Closed ghost1988 closed 4 years ago

ghost1988 commented 4 years ago

Hi :

 i  test unity_get_state.py on emc unity 400,it can not work,please help,thanks.

2019-10-16 14:17:41,017 - unity_logger - ERROR - Connection Return Code = 401

ghost1988 commented 4 years ago

Hi : I try it again,it still can not work.

2019-10-16 18:09:37,306 - unity_logger - ERROR - Connection Return Code = 401

gexu-cisco-com commented 4 years ago

[root@infrazabbix zabbix-emc-unity]# ./unity_get_state.py --api_ip=10.224.19.21 --api_port=443 --api_user=admin --api_password='**' --storage_name="-unity550f" --discovery Traceback (most recent call last): File "./unity_get_state.py", line 12, in import requests ModuleNotFoundError: No module named 'requests'

########

Hi , could you please help on this issue ?

kirov-qh commented 4 years ago

[root@infrazabbix zabbix-emc-unity]# ./unity_get_state.py --api_ip=10.224.19.21 --api_port=443 --api_user=admin --apipassword='**' --storage_name="_-unity550f" --discovery Traceback (most recent call last): File "./unity_get_state.py", line 12, in import requests ModuleNotFoundError: No module named 'requests'

########

Hi , could you please help on this issue ?

You did not install the requests library. Use the following method to install: [root@infrazabbix zabbix-emc-unity]# pip install requests