Found it, the script doesn't accept our password as it contains characters Zabbix does not allow. I'll have a look at that tomorrow. Thanks for the input anyway.
Ad Widget
Collapse
ESXi 4.0 Hardware and Software Monitoring VMWare
Collapse
X
-
Before we start, the timeout has been set at 30 seconds.
But running the zabbix_perl_api_vmware.pl script always takes more than 30 seconds in our situation.Code:$ egrep "Timeout" /etc/zabbix/zabbix_server.conf Timeout=30 TrapperTimeout=30
We're running this from a different location, so I can see we would probably have some latency but in general that's <10ms. Will it make that much of a difference if we would set up a different zabbix node closer to that VMWare host?Code:$ time /etc/zabbix/zabbix_perl_api_vmware.pl ip password username 0 real 0m33.522s user 0m14.250s sys 0m0.147s
Comment
-
Ok, this is a massive workaround for something I could probably have done a lot easier. We're using 1.8.8 in our set up.
Before compiling Zabbix we changed the following files:
./src/zabbix_server/server.c:
line 252:
PARM_OPT, 1, 30},
- Changed 30 to 60
./src/zabbix_agent/zabbix_agentd.c:
line 318
PARM_OPT, 1, 30},
- Changed 30 to 60
As root run ./make clean.
As your Zabbix user, run:
Then install with ./make installCode:killall zabbix_server killall zabbix_agentd ./configure --enable-server --with-net-snmp --with-libcurl --with-mysql --enable-agent
Change the timeout to 60 in your configuration files and start both serviced again.Comment
-
We've moved the monitoring of the VMware cluster to the management network but the data gathering still takes >30s. While we can rebuild zabbix_agentd on the monitoring server(s) I'd rather work on improving the speeds at which its running now.
Am I missing something here?Comment
-
Comment
-
That's strange. I've did my tests on two different nodes. Both virtualized but with different technologies (OpenVZ vs. Hyper-V). I'll add some more cores to it tomorrow. As soon as it runs I'm seeing CPU spiking to ~100%. How many cores do you have assigned to it?
Are you running VMware4 or 5? I've only tried version 5 but will get some version 4 nodes added tomorrow and post my results.Comment
-
-
Problems using Scripts.
Hi dima_dm,
I know you made a good job.
But it not works for me.
I tries more than 4 days in the script and nothing.
If a ran:/etc/zabbix/zabbix_perl_api_vmware.pl
Shows: 1
And if i ran: /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host vmware2 --server xxx --countertype net --samples 1 --instance "*" --username root --password xxxxxx
Message is: Server version unavailable at 'https://xxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.
I spent a LOT of hours tring to make it works. But still nothing.
I saw that this path: /usr/lib/vmware-vcli/apps/performance/viperformance.pl in yous is diferente, but i tried to install the sdk perl 4.0, 4.1 and 5.0 version, all of then use /usr/lib/vmware-vcli/apps/performance/viperformance.pl and not /usr/lib/vmware-viperl/apps/performance/viperformance.pl
I had intalled all requirements of SDK perl from vmware at this page: http://pubs.vmware.com/vsphere-50/in...l_preface.html
My server is centos 5.5 64Bits and zabbix server works fine.
I need to put it on. Please help me.
Regards.Last edited by renato-barbosa; 24-11-2011, 04:24.Comment
-
Check that all required libs installed.But it not works for me.
I tries more than 4 days in the script and nothing.
If a ran:/etc/zabbix/zabbix_perl_api_vmware.pl
Shows: 1
And if i ran: /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host vmware2 --server xxx --countertype net --samples 1 --instance "*" --username root --password xxxxxx
Message is: Server version unavailable at 'https://xxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.
Comment
-
Sorry for the delay to awnser.
Today was "out of service."
I did it that and the same problem.
Have de openssl-devel installed and nothing.
Have de SSleay instaled too.
Instaled packages:
openssl-0.9.8e-20.el5
openssl-devel-0.9.8e-20.el5
openssl-devel-0.9.8e-20.el5
openssl-0.9.8e-20.el5
perl-Crypt-SSLeay.x86_64 0:0.51-11.el5
I tried at my ubuntu laptop and the same error.
"Server version unavailable at 'https://xxxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545"
I can`t understand.
I have googgled and find nothing like this.
Have you seen it somewhere?
Thanks again.Comment
Comment