Skip to content

Python script for monitoring EMC Unity strages

Notifications You must be signed in to change notification settings

oscar120584/zabbix-emc-unity

 
 

Repository files navigation

zabbix-emc-unity

Python script for monitoring EMC Unity storages

For succesfull work of script need installed python3, zabbix-sender.

In template "Template EMC Unity REST-API" in section "Macros" need set these macros:

  • {$API_USER}
  • {$API_PASSWORD}
  • {$API_PORT}
  • {$SUBSCRIBED_PERCENT}
  • {$USED_PERCENT}

In agent configuration file, /etc/zabbix/zabbix_agentd.conf must be set parameter ServerActive=xxx.xxx.xxx.xxx

Scirpt must be copied to zabbix-server or zabbix-proxy, depending on what the torage is being monitored.

  • In Linux-console on zabbix-server or zabbix-proxy need run this command to make discovery. Script must return value 0 in case of success.
./unity_get_state.py --api_ip=xxx.xxx.xxx.xxx --api_port=443 --api_user=username_on_storagedevice --api_password='password' --storage_name="storage-name_in_zabbix" --discovery
  • On zabbix proxy or on zabbix servers need run zabbix_proxy -R config_cache_reload (zabbix_server -R config_cache_reload)

  • In Linux-console on zabbix-server or zabbix-proxy need run this command to get value of metrics. Scripts must return value 0 in case of success.

./unity_get_stateNEW.py --api_ip=xxx.xxx.xxx.xxx --api_port=443 --api_user=username_on_storagedevice --api_password='password' --storage_name="storage-name_in_zabbix" --status

If you have executed this script from console from user root or from another user, please check access permission on file /tmp/unity_state.log. It must be allow read, write to user zabbix.

About

Python script for monitoring EMC Unity strages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%