aklyuk / zabbix-emc-unity

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

Error at running script #21

Open Bradpitch opened 3 months ago

Bradpitch commented 3 months ago

My script is in '/usr/lib/zabbix/externalscripts/'

When i run it with

./unity_get_state.py --api_ip=m.y.i.p --api_port=443 --api_user=zabbix --api_password='mypassword' --storage_name="storagename" --discovery

he returns to me :

Traceback (most recent call last): File "/usr/lib/zabbix/externalscripts/./unity_get_state.py", line 12, in import requests ModuleNotFoundError: No module named 'requests'

Tested on Zabbix server, RockyLinux 9

Bradpitch commented 3 months ago

Ok i solved it my bad, i just install python requests module with this command.

$ yum install python-requests

But now i have another issue.

When i run script he returnes to me "1" I have read this "https://github.com/aklyuk/zabbix-emc-unity/issues/17" and fix the zabbix_sender conf file.

but i always this error.