ktelep / EMC-Zabbix-Integration

Integration for Zabbix and the EMC ECOM server for VNX1/VNX2 Monitoring
MIT License
35 stars 13 forks source link

Problem Timeout while executing a shell script on zabbix 3.4.4 #25

Open psmartins opened 6 years ago

psmartins commented 6 years ago

Hi,

I am using zabbix 3.4.4 and the Timeout error appears while executing the shell script on all items (Array Health Stats Collection, Physical Pool Stats Collection, Storage Processor Stats Collection, and Volume Stats Collection.) In zabbix_server.conf there is Set Timout = 30

Would you help me ?

Thank you

ktelep commented 6 years ago

Interesting, how large is the system you're collecting data from? the Storage Processor Stats should return the fastest of all of them and be pretty equal regardless of the system.

Try running the stats command manually to see if you get stats, and/or if it just hangs

For example see if you can get the SP stats - emc_vnx_stats.py --serial <serialnum> --ecom_ip <IP of ECOM> --ecom_user <ECOM user> --ecom_pass <ECOM password> --array

Unfortunately logging isn't super robust in the stats collection, it's been on the TODO list for a while.

psmartins commented 6 years ago

We have two vnx5500 and one vnx5100.

psmartins commented 6 years ago

Hello,

I am getting the following message in the /tmp/emc_vnx_discovery.log file.

2018-06-19 16:59:37,673 INFO 12196 Building WBEM Connection to https://ip:5989 2018-06-19 16:59:37,674 INFO 12196 Volume discovery started 2018-06-19 16:59:37,724 ERROR 12196 Uncaught exception: (0, 'Socket error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)')

Thank you

ktelep commented 6 years ago

It looks like the IP address of the ECOM server is not getting passed to the discovery script. I don't have a Zabbix 3.4.4 instance spun up at the moment to test to see if this is an issue with the macros or the later version of Zabbix.

Did you setup the host macros as documented in the readme?

Create a host macro {$ECOMIP} with a value of the IP address of the ECOM server. Create host macros: {$ECOMUSER}, {$ECOMPASS} with the ECOM username and password.

KavyaKanya commented 4 years ago

Hello Telep

I've imported the template as per the instructions and plcaed both set of python files in zabbicx proxy server and I get the Timeout while executing the script is what being shown in zabbix

image

I mentioned all the values wrt to the mentioned macros too

I did try to run the below command too

emc_vnx_stats.py --serial --ecom_ip --ecom_user --ecom_pass --array

image

Below is the log under /tmp/emc_vnx_discovery.log file

image

Kyogre commented 1 year ago

I too couldn't get my python script to work in pair with zabbix system.run element because of Get value from agent failed: ZBX_TCP_READ() timed out. By the way my script executes in terminal from root user just fine and quickly.

For diagnostic I executed sudo -u zabbix /bin/bash (or su zabbix -c /bin/bash if the first one wouldn't work), then executed my script. It was executing very long and in the end it gave me plain error which I easily googled and fixed.

opsource79 commented 9 months ago

the script with sudo -u zabbix /bin/bash runs fine. it's only in zabbix thats gets timeout. I wonder if has anything to do with the fact that i'm using with version 7.0.1 beta