# Telegraf is not collecting Data from 1 Vcenter

**URL:** <https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251>\
**Category:** Systems\
**Created:** [September 17, 2024, 2:56pm UTC](https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251 "2024-09-17T14:56:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![med1812](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@med1812](https://community.influxdata.com/u/med1812)\
**Post date:** [September 17, 2024, 2:56pm UTC](https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251/1 "2024-09-17T14:56:41Z")

</div>

Hello Team

I’m using Telegraf to collect data from Vcenter,then stored in Influxdb and used by grafana.

It worked fine with 7 Vcenter , but one Vcenter it returns with 0 objects in the telegraf log , below some exmaple  
[inputs.vsphere] Collecting metrics for 0 objects of type cluster for “Vcenter name”  
[inputs.vsphere] Collecting metrics for 0 objects of type vm for “vcente rname”

here my config

## Realtime instance

[[inputs.vsphere]]

## List of vCenter URLs to be monitored. These three lines must be uncommented

## and edited for the plugin to work.

interval = “5m”  
vcenters = [“[https://vcentername](https://vcentername)” ]  
username = “user”  
password = “password”  
vm\_metric\_include =   
host\_metric\_include =   
cluster\_metric\_exclude = [“”]  
datastore\_metric\_exclude = [“”]  
max\_query\_metrics = 256  
timeout = “60s”  
insecure\_skip\_verify = true

## Historical instance

[[inputs.vsphere]]  
interval = “30m”  
vcenters = [“[https://vcentername](https://vcentername)” ]  
username = “user”  
password = “password”  
datastore\_metric\_include = [“disk.capacity.latest”, “disk.used.latest”, “disk.provisioned.latest”]  
insecure\_skip\_verify = true  
force\_discover\_on\_init = true  
cluster\_metric\_include = [“”]  
datacenter\_metric\_include = [“”]  
host\_metric\_exclude = [“”] # Exclude realtime metrics  
vm\_metric\_exclude = [“”] # Exclude realtime metrics  
max\_query\_metrics = 256  
collect\_concurrency = 3

for Security reason I haven’t provided Vcenter name.  
However I’m sure that the service account that we are using is having access to all Object in Vcenter , this is well tested  
Also I tested the network connectivity .

Vcenter version : 7.0.3 ,Collecting data is enabled as well

Anything I can check in my Vcenter ? any setting to compare with the working Vcenters ones ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [September 17, 2024, 9:04pm UTC](https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251/2 "2024-09-17T21:04:56Z")

</div>

@srebhan any thoughts here? Thank you!

---

<div class="post-metadata">

**Author:** ![med1812](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@med1812](https://community.influxdata.com/u/med1812)\
**Post date:** [September 19, 2024, 11:46am UTC](https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251/3 "2024-09-19T11:46:15Z")

</div>

Any help is appreciated please

---

<div class="post-metadata">

**Author:** ![srebhan](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/srebhan/32/8572_2.png) [@srebhan](https://community.influxdata.com/u/srebhan)\
**Post date:** [September 20, 2024, 10:28am UTC](https://community.influxdata.com/t/telegraf-is-not-collecting-data-from-1-vcenter/37251/4 "2024-09-20T10:28:10Z")

</div>

@med1812 is there any log entry you see (maybe in debug mode)? Is there anything special about that vcenter? Did this vcenter work before with Telegraf?
