ZABBIX Forums  
  #1  
Old 07-01-2014, 12:18
mikkelrobin mikkelrobin is offline
Junior Member
 
Join Date: Aug 2013
Posts: 12
Default VMWare monitoring, Timeout was reached

Hi.

Im trying to monitor my VMWare installation using Zabbix 2.2.1 - I have tested the following on my Zabbix Installation running in production, witch is an upgrade from 2.0.9 and on a fresh installed Zabbix 2.2.1 Appliance - With the same results.

My VMWare vCenter is a 5.5 running on a Virtual Appliance.

When follow the guide from here: https://www.zabbix.com/documentation.../vm_monitoring

Im just getting "Timeout was reached" on the Items on the host.

The funny thing is, that it seems like the collector is running fine, but the item is not able to update.


Please help


Here is some debug info:

Logs:
Code:
 27435:20140107:110415.909 vmware collector #1 [updated 0, removed 0 VMware services in 0.000005 sec, querying VMware services]
 27435:20140107:110415.909 vmware collector #1 [updated 0, removed 0 VMware services in 0.000005 sec, idle 5 sec]
 27430:20140107:110416.920 item [vcenter:vmware.fullname[{$URL}]] became not supported: Timeout was reached
 27435:20140107:110420.910 vmware collector #1 [updated 0, removed 0 VMware services in 0.000005 sec, querying VMware services]
 27435:20140107:110420.910 vmware collector #1 [updated 0, removed 0 VMware services in 0.000009 sec, idle 5 sec]
 27403:20140107:110424.125 In substitute_key_macros() data:'vmware.eventlog[{$URL}]'
 27403:20140107:110424.126 End of substitute_key_macros():SUCCEED data:'vmware.eventlog[https://192.168.3.70/sdk]'
 27403:20140107:110424.126 End substitute_simple_macros() data:'vmware'
 27403:20140107:110424.126 In get_value() key:'vmware.eventlog[{$URL}]'
 27403:20140107:110424.126 In get_value_simple() key_orig:'vmware.eventlog[{$URL}]' addr:'192.168.3.70'
 27403:20140107:110424.126 In zbx_vmware_get_service() vmware@https://192.168.3.70/sdk
 27403:20140107:110424.126 End of zbx_vmware_get_service():SUCCEED
 27403:20140107:110424.126 Item [vcenter:vmware.eventlog[{$URL}]] error: Timeout was reached
 27435:20140107:110425.911 vmware collector #1 [updated 0, removed 0 VMware services in 0.000009 sec, querying VMware services]
 27435:20140107:110425.911 vmware collector #1 [updated 0, removed 0 VMware services in 0.000010 sec, idle 5 sec]
 27428:20140107:110426.925 item [vcenter:vmware.eventlog[{$URL}]] became not supported: Timeout was reached
 27435:20140107:110430.911 vmware collector #1 [updated 0, removed 0 VMware services in 0.000010 sec, querying VMware services]
 27435:20140107:110430.912 vmware collector #1 [updated 0, removed 0 VMware services in 0.000005 sec, idle 5 sec]


VMWare part of config file:
Code:
### Option: StartVMwareCollectors
#       Number of pre-forked vmware collector instances.
#
# Mandatory: no
# Range: 0-250
# Default:
StartVMwareCollectors=1

### Option: VMwareFrequency
#       How often Zabbix will connect to VMware service to obtain a new data.
#
# Mandatory: no
# Range: 10-86400
# Default:
VMwareFrequency=60

### Option: VMwareCacheSize
#       Size of VMware cache, in bytes.
#       Shared memory size for storing VMware data.
#       Only used if VMware collectors are started.
#
# Mandatory: no
# Range: 256K-2G
# Default:
VMwareCacheSize=8M
Reply With Quote
  #2  
Old 07-01-2014, 12:46
steveboyson steveboyson is offline
Senior Member
 
Join Date: Jul 2013
Location: Germany
Posts: 581
Default

Just a thought:

Are you sure that $USERNAME and $PASSWORD macros are set correctly? Is this user really permitted to query the ESX host?

Quite often this is an authentication issue.
Reply With Quote
  #3  
Old 07-01-2014, 12:50
mikkelrobin mikkelrobin is offline
Junior Member
 
Join Date: Aug 2013
Posts: 12
Default Auth review

Hi.

I have checked and double checked that too

It seems like the collector is getting data but the problem is the item itself.

Code:
 27403:20140107:114619.822 In substitute_key_macros() data:'vmware.fullname[{$URL}]'
 27403:20140107:114619.823 End of substitute_key_macros():SUCCEED data:'vmware.fullname[http://192.168.3.70/sdk]'
 27403:20140107:114619.824 End substitute_simple_macros() data:'vmware'
 27403:20140107:114619.824 In get_value() key:'vmware.fullname[{$URL}]'
 27403:20140107:114619.824 In get_value_simple() key_orig:'vmware.fullname[{$URL}]' addr:'192.168.3.70'
 27403:20140107:114619.824 In zbx_vmware_get_service() vmware@http://192.168.3.70/sdk
 27403:20140107:114619.825 End of zbx_vmware_get_service():SUCCEED
 27403:20140107:114619.825 Item [vcenter:vmware.fullname[{$URL}]] error: Couldn't connect to server
 27428:20140107:114622.545 item [vcenter:vmware.fullname[{$URL}]] became not supported: Couldn't connect to server
 27435:20140107:114629.029 End of vmware_service_get_event_session():FAIL
 27435:20140107:114629.030 End of vmware_service_get_event_data():FAIL
 27435:20140107:114629.031 End of vmware_service_update():FAIL
 27435:20140107:114629.031 In vmware_service_update() vmware@http://192.168.3.70/sdk
 27435:20140107:114629.031 In vmware_service_authenticate() url:'http://192.168.3.70/sdk' username:'vmware'
 27435:20140107:114629.444 End of vmware_service_authenticate():SUCCEED
 27435:20140107:114629.444 In vmware_service_get_hv_list()
 27435:20140107:114630.450 vmware_service_get_hv_list() page.data:'<?xml version="1.0" encoding="UTF-8"?>

Code:
 27435:20140107:114612.881 End of vmware_service_get_perfcounter_refreshrate():SUCCEED
 27435:20140107:114613.904 End of vmware_service_get_vm_stats():SUCCEED
 27435:20140107:114613.905 End of vmware_service_create_vm():SUCCEED
 27435:20140107:114613.905 In vmware_service_create_vm() vmid:'vm-242'
 27435:20140107:114613.905 In vmware_service_get_vm_data() vmid:'vm-242'
 27435:20140107:114613.916 End of vmware_service_get_vm_data():SUCCEED
 27435:20140107:114613.918 In vmware_service_get_vm_stats()
 27435:20140107:114613.918 In vmware_service_get_perfcounter_refreshrate()
 27435:20140107:114613.922 vmware_service_get_perfcounter_refreshrate() refresh_rate:20
 27435:20140107:114613.922 End of vmware_service_get_perfcounter_refreshrate():SUCCEED
 27435:20140107:114614.939 End of vmware_service_get_vm_stats():SUCCEED
 27435:20140107:114614.940 End of vmware_service_create_vm():SUCCEED
 27435:20140107:114614.940 In vmware_service_create_vm() vmid:'vm-234'
 27435:20140107:114614.940 In vmware_service_get_vm_data() vmid:'vm-234'
 27435:20140107:114614.948 End of vmware_service_get_vm_data():SUCCEED
 27435:20140107:114614.949 In vmware_service_get_vm_stats()
 27435:20140107:114614.950 In vmware_service_get_perfcounter_refreshrate()
 27435:20140107:114614.952 vmware_service_get_perfcounter_refreshrate() refresh_rate:20

Last edited by mikkelrobin; 07-01-2014 at 12:54.
Reply With Quote
  #4  
Old 07-01-2014, 13:01
steveboyson steveboyson is offline
Senior Member
 
Join Date: Jul 2013
Location: Germany
Posts: 581
Default

Code:
Item [vcenter:vmware.fullname[{$URL}]] error: Couldn't connect to server
... seems as it can not connect to your ESX host.

Could you just do a test:
Code:
curl -k -I https://your-server/sdk
and see what is coming back?
It should return something like "400 Bad Request"

If not, there is a network and/or firewall issue.
Reply With Quote
  #5  
Old 07-01-2014, 13:04
mikkelrobin mikkelrobin is offline
Junior Member
 
Join Date: Aug 2013
Posts: 12
Default

Just to be sure, i have enabled both http and https on the vCenter to ensure this was not a SSL issue.

But everything seems OK, on both http and https.

Code:
root@zabbix:~# curl -I -k "http://192.168.3.70/sdk"
HTTP/1.1 400 Bad Request
Date: Tue, 7 Jan 2014 12:03:08 GMT
Connection: close
Content-Type: text; charset=plain
Content-Length: 0

root@zabbix:~# curl -I -k "https://192.168.3.70/sdk"
HTTP/1.1 400 Bad Request
Date: Tue, 7 Jan 2014 12:03:14 GMT
Connection: close
Content-Type: text; charset=plain
Content-Length: 0

root@zabbix:~#
I agree on the connection issue, but the collector is somehow able to pull XML data:

Code:
 27435:20140107:114613.905 End of vmware_service_create_vm():SUCCEED
 27435:20140107:114613.905 In vmware_service_create_vm() vmid:'vm-242'
 27435:20140107:114613.905 In vmware_service_get_vm_data() vmid:'vm-242'
Reply With Quote
  #6  
Old 07-01-2014, 13:18
steveboyson steveboyson is offline
Senior Member
 
Join Date: Jul 2013
Location: Germany
Posts: 581
Default

Hmmm, then I have no more ideas. Are you really sure that your user 'vmware" is allowed to access?

Are you speaking to your ESX servers directly or are you connecting to your vcenter? That is a difference since VMWare's SSO (single sign on) is somewhat picky.

BTW, there is a new version of vcenter available (5.5.0.b).

To make it sure I would recommend to test a different user and try to connect directly to the ESX hosts (without vcenter).
Reply With Quote
  #7  
Old 07-01-2014, 14:14
mikkelrobin mikkelrobin is offline
Junior Member
 
Join Date: Aug 2013
Posts: 12
Default

Well, i have already been thinking about SSO, but i have a PHP Class that uses the SDK, and that is working fine with the same user. But i have also tried with another user, without success.

I have tried connection directly to a ESX host, and that is working fine.

I have not noticed the new vCenter version - I will upgrade as see if it do any difference.
Reply With Quote
  #8  
Old 07-01-2014, 15:01
steveboyson steveboyson is offline
Senior Member
 
Join Date: Jul 2013
Location: Germany
Posts: 581
Default

Oh, directly to ESX it is working? That is at least an advance!

So I am not sure if Zabbix' vSphere Monitoring generally supports vCenter. AFAIK there is only direct ESX querying supported but I can be wrong.
Reply With Quote
  #9  
Old 07-01-2014, 15:04
mikkelrobin mikkelrobin is offline
Junior Member
 
Join Date: Aug 2013
Posts: 12
Default

Yeah, but in the doc it says:

Quote:
{$URL} - VMware service (vCenter or vSphere) SDK URL (https://servername/sdk).
But maybe vCenter ver 5.5 is not yet supported.
Reply With Quote
  #10  
Old 15-01-2014, 12:05
Proth Proth is offline
Junior Member
 
Join Date: Jan 2014
Posts: 11
Default

some problem! you somehow managed to solve this problem?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:16.