aklyuk / zabbix-ibm-storwize

Python script for monitoring IBM Storwize storages
15 stars 20 forks source link

Discovery doesn't work #2

Closed portatip closed 4 years ago

portatip commented 4 years ago

Zabbix 4.0.9 Python 2.7 ServerActive=127.0.0.1 in /etc/zabbix/zabbix_agentd.conf on server storwize_state.log chmod 777, owner - zabbix storwize_getstate.py chmod 755, owner - zabbix ./storwize_get_state.py --storwize_ip=192.168.16.5 --storwize_port=22 --storwize_user=admin --storwize_password='password' --storage_name="storage_name_inzabbix" --discover retuns "2" In "Latest Data" "get discovery" returns 1 image Thanks!

portatip commented 4 years ago

Log

aklyuk commented 4 years ago

exit status 0 or 1 or 2 is zabbix_sender exit status.

EXIT STATUS The exit status is 0 if the values were sent and all of them were successfully processed by server. If data was sent, but processing of at least one of the values failed, the exit status is 2. If data sending failed, the exit status is 1.

portatip commented 4 years ago

Can you explain what's "storage_name"?

aklyuk commented 4 years ago

storage_name is name of storage in zabbix web interface

portatip commented 4 years ago

Yey! I modified key in template without macros and got something like this storwize_get_state.py["--storwize_ip=192.168.16.55","--storwize_port=22","--storwize_user=admin","--storwize_password=123456","--storage_name=192.168.16.55","--discover"] Now works good. Thanks for the work you've done!