Closed len-666 closed 3 years ago
Try this:
1 - Import templates 2 - Put on script unity_get_state.py in ExternalScripts in zabbix server. ps: Search the line ExternalScripts in zabbix_server.conf
3 - chown zabbix:zabbix unity_get_state.py
Hi. Script is executing on zabbix-proxy on my side. ServerActive parameter in /etc/zabbix/zabbix_agentd.conf is an destination, where i can transfer traps. I didn't want to create script parameter for that.
NO, it not need to install zabbiz-agent to unity. It is impossible, likely.
Try this:
1 - Import templates 2 - Put on script unity_get_state.py in ExternalScripts in zabbix server. ps: Search the line ExternalScripts in zabbix_server.conf
3 - chown zabbix:zabbix unity_get_state.py
Hi. Script is executing on zabbix-proxy on my side. ServerActive parameter in /etc/zabbix/zabbix_agentd.conf is an destination, where i can transfer traps. I didn't want to create script parameter for that.
NO, it not need to install zabbiz-agent to unity. It is impossible, likely.
Thanks for your suggestion.
I have an issue is that how does the zabbix server know the EMC unity ip? The Macros seems don't include api-ip . I need great the api-ip Macros ?
Thanks!
Hi. Script is executing on zabbix-proxy on my side. ServerActive parameter in /etc/zabbix/zabbix_agentd.conf is an destination, where i can transfer traps. I didn't want to create script parameter for that.
NO, it not need to install zabbiz-agent to unity. It is impossible, likely.
Thanks for your reply? I only have an zabbix server to monitor Unity. Could you introduce how does the zabbix server know the Unity server ip. It seems the Macros dont define the unity ip.
Hi. On zabbix-server host need install zabbix-agent. In file /etc/zabbix/zabbix-agentd.conf, parameter ServerActive must be set address zabbix-server host.
Hi. On zabbix-server host need install zabbix-agent. In file /etc/zabbix/zabbix-agentd.conf, parameter ServerActive must be set address zabbix-server host.
Yes, I set the ServerActive server ip =127.0.0.1 as the agent and zabbix server are installed in same server . Script return value 0 after configure the the [commands(--discovery and --status).
I create a host and set the agent ip 127.0.0.1 But the Monitoring--latest data is will don't change periodically . The date dont't change periodically . The last check time is old time .
Also I don't know how the zabbix server know the EMC unirty ip ?
It seems the py script don't know the EMC ip . It connect 127.0.0.1 , not Emc IP . /tmp/unity_state.log :
2020-10-28 17:51:55,393 - unity_logger - ERROR - Connection Error Occurs: HTTPSConnectionPool(host='127.0.0.1', port=443): Max retries exceeded with url: /api/types/loginSessionInfo (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ea7b24a8>: Failed to establish a new connection: [Errno 111] Connection refused'))
on zabbix web interface, host interfaces must be set unity address
Thank you very much ,aklyuk. It is working now ! It confused me one month. Thanks again.
Also thank you rlrobs.
Hi aklyuk, thanks for your scripts. I have an iusse about this step: In agent configuration file, /etc/zabbix/zabbix_agentd.conf must be set parameter ServerActive=xxx.xxx.xxx.xxx . ---> It means the EMC unity also install zabbix agent ? I contact vendor ,I cann't upload any files to EMC server. Appreciate you can give me some suggestion. Thanks a lot.