aklyuk / zabbix-emc-unity

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

Why unity_get_state.py script cannot return 0 and just return 1 #17

Open babsdn opened 2 years ago

babsdn commented 2 years ago

Unfortunately when I run it as follow it returns 1 and not return 0

` [root@z6 externalscripts]# ./unity_get_state.py --api_ip=172.2.2.2 --api_port=443 --api_user="monitor" --api_password="pass@123" --storage_name=bakunity --discovery 1

` Also it shows in the unity_state.log

2022-05-21 19:29:51,502 - unity_logger - INFO - Connection established 2022-05-21 19:29:54,683 - unity_logger - INFO - Logout successful 2022-05-21 19:32:51,118 - unity_logger - INFO - Connection established 2022-05-21 19:32:54,320 - unity_logger - INFO - Logout successful 2022-05-21 19:35:34,116 - unity_logger - INFO - Connection established 2022-05-21 19:35:37,298 - unity_logger - INFO - Logout successful 2022-05-21 19:35:51,112 - unity_logger - INFO - Connection established 2022-05-21 19:35:54,306 - unity_logger - INFO - Logout successful 2022-05-21 19:38:51,165 - unity_logger - INFO - Connection established 2022-05-21 19:38:54,381 - unity_logger - INFO - Logout successful

Why it cannot return 0 ? What is the problem

tariksimsek commented 8 months ago

Did you solve the issue? Same here

tariksimsek commented 8 months ago

2 issue here. If you are using zabbix-agent2. You should change config file in the py script for zabbix_sender . You must have zabbix_sender version 6.0, 6.4 or latest. There is a bug in 6.2 Also in the zabbix server , storage name should not contain spaces