Skip to content
Python script for monitoring EMC Unity strages
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
Template EMC Unity REST-API.xml Add files via upload Oct 16, 2019
Unity_Health_Status_valuemaps.xml Add valuemaps Sep 23, 2019
Unity_Running_Status_valuemaps.xml Add valuemaps Sep 23, 2019
unity_get_state.py Add files via upload Oct 16, 2019

README.md

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.

You can’t perform that action at this time.