# Trouble working with the vSphere module

**URL:** https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937
**Category:** Help
**Tags:** agent, agent-health
**Created:** [February 14, 2021, 2:23pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937 "2021-02-14T14:23:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![labber253](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@labber253](https://community.netdata.cloud/u/labber253)
#### Post date: [February 14, 2021, 2:23pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/1 "2021-02-14T14:23:03Z")

</div>

Hi,

I have spent so many hours troubleshooting this now I come for help. I’m wanting to setup monitoring directly of my vSphere to get a better overview of internet traffic drops and disk congestion directly on the hardware. However, I’m facing some issues even after spending hours in the documentation.

So I have added my vsphere.conf here:  
/etc/netdata/go.d/vsphere.conf

It contains the nessescary details:

```
  - name: VMware vCenter
    url: https://192.168.20.15
    username: administrator@vsphere.local
    password: ###############
    host_include: ['/*']
    vm_include: ['/*']

```

However, upon loading the module in here:  
/usr/libexec/netdata/plugins.d

I get 0 modules loaded, I saw other issues with yaml formatting but I’ve tried so many different spacings now it cant be that.  
[root@netdata plugins.d]# ./go.d.plugin -d -m vsphere.conf  
[DEBUG] main[main] main.go:111 plugin: name=go.d, version=v0.27.0  
[DEBUG] main[main] main.go:113 current user: name=root, uid=0  
[INFO] main[main] agent.go:106 instance is started  
[INFO] main[main] setup.go:39 loading config file  
[INFO] main[main] setup.go:47 looking for ‘go.d.conf’ in [/etc/netdata /usr/lib/netdata/conf.d]  
[INFO] main[main] setup.go:54 found '/etc/netdata/go.d.conf  
[INFO] main[main] setup.go:61 config successfully loaded  
[INFO] main[main] agent.go:110 using config: enabled ‘true’, default\_run ‘true’, max\_procs ‘0’  
[INFO] main[main] setup.go:66 loading modules  
[INFO] main[main] setup.go:85 enabled/registered modules: 0/58  
[INFO] main[main] agent.go:122 no modules to run

```
[root@netdata plugins.d]# cat /etc/netdata/go.d.conf 
# netdata go.d.plugin configuration
#
**# This file is in YAML format.**

**# Enable/disable the whole go.d.plugin.**
 **enabled: yes**

**# Enable/disable default value for all modules.**
 **default_run: yes**

**# Maximum number of used CPUs. Zero means no limit.**
 **max_procs: 0**

**# Enable/disable specific g.d.plugin module**
 **# If you want to change any value, you need to uncomment out it first.**
 **# IMPORTANT: Do not remove all spaces, just remove # symbol. There should be a space before module name.**
 **modules:**
 **# vcsa: yes**
 **vsphere: yes**

```

I removed some modules for simplicity. Anyone know what causes the module not to load?

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [February 14, 2021, 3:51pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/2 "2021-02-14T15:51:01Z")

</div>

Hi @labber253, lets try to debug the problem

> [@labber253](#):
>
> [root@netdata plugins.d]# ./go.d.plugin -d -m vsphere.conf

`-m` means a module name, so it should be `vsphere`, not `vsphere.conf`. There is [an example in the readme](https://github.com/netdata/go.d.plugin/tree/master/modules/vsphere#troubleshooting).

* * *

Lets see the the debug output

> ./go.d.plugin -d -m vsphere

---

<div class="post-metadata">

### Author: ![labber253](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@labber253](https://community.netdata.cloud/u/labber253)
#### Post date: [February 14, 2021, 9:37pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/3 "2021-02-14T21:37:42Z")

</div>

Thank you, that did help a lot

```
[root@netdata plugins.d]# ./go.d.plugin -d -m vsphere
[DEBUG] main[main] main.go:111 plugin: name=go.d, version=v0.27.0
[DEBUG] main[main] main.go:113 current user: name=root, uid=0
[INFO] main[main] agent.go:106 instance is started
[INFO] main[main] setup.go:39 loading config file
[INFO] main[main] setup.go:47 looking for 'go.d.conf' in [/etc/netdata /usr/lib/netdata/conf.d]
[INFO] main[main] setup.go:54 found '/etc/netdata/go.d.conf
[INFO] main[main] setup.go:61 config successfully loaded
[INFO] main[main] agent.go:110 using config: enabled 'true', default_run 'true', max_procs '0'
[INFO] main[main] setup.go:66 loading modules
[INFO] main[main] setup.go:85 enabled/registered modules: 1/58
[INFO] main[main] setup.go:90 building discovery config
[INFO] main[main] setup.go:116 looking for 'vsphere.conf' in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[INFO] main[main] setup.go:123 found '/etc/netdata/go.d/vsphere.conf
[INFO] main[main] setup.go:128 dummy/read/watch paths: 0/1/0
[INFO] discovery[manager] manager.go:90 registered discoverers: [file discovery: [file reader]]
[INFO] discovery[manager] manager.go:95 instance is started
[INFO] run[manager] run.go:30 instance is started
[INFO] build[manager] build.go:106 instance is started
[INFO] discovery[file manager] discovery.go:71 instance is started
[INFO] discovery[file reader] read.go:39 instance is started
[INFO] discovery[file reader] read.go:40 instance is stopped
[DEBUG] build[manager] build.go:153 received config group ('/etc/netdata/go.d/vsphere.conf'): 0 jobs (added: 0, removed: 0)
[DEBUG] run[manager] run.go:41 tick 0
[DEBUG] run[manager] run.go:41 tick 1
[DEBUG] run[manager] run.go:41 tick 2
[DEBUG] run[manager] run.go:41 tick 3

```

However I’m not sure if this should go directly to my Netdata UI now?

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [February 14, 2021, 10:45pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/4 "2021-02-14T22:45:47Z")

</div>

> [@labber253](#):
>
> ```auto
> [DEBUG] build[manager] build.go:153 received config group ('/etc/netdata/go.d/vsphere.conf'): 0 jobs (added: 0, removed: 0)
> 
> ```

`/etc/netdata/go.d/vsphere.conf` has no jobs.

check the content, should be

```yaml
# some comments
jobs:
  - name: ...
    url: ...

```

---

<div class="post-metadata">

### Author: ![labber253](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@labber253](https://community.netdata.cloud/u/labber253)
#### Post date: [February 14, 2021, 10:49pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/5 "2021-02-14T22:49:08Z")

</div>

> [@ilyam8](#):
>
> /etc/netdata/go.d/vsphere.conf

Thanks. This should be fine:

```
# ------------------------------------------------MODULE-CONFIGURATION--------------------------------------------------
# [GLOBAL]
# update_every : 20 # do not decrease the value, vmware real-time stats generated at the 20-seconds specificity.
# autodetection_retry : 0
# priority : 70000
#
# [JOBS]
#jobs:
# - name : vcenter1
# url : https://203.0.113.0
# username : admin@vsphere.local
# password : somepassword
#
# - name : vcenter2
# url : https://203.0.113.10
# username : admin@vsphere.local
# password : somepassword
#
   - name: VMware vCenter
     url: https://192.168.20.15
     username: administrator@vsphere.local
     password: r##4######2aNTPn
     host_include: ['/*']
     vm_include: ['/*']

"/etc/netdata/go.d/vsphere.conf" 190L, 5364C

```

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [February 14, 2021, 10:50pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/6 "2021-02-14T22:50:08Z")

</div>

> [@labber253](#):
>
> `#jobs:`

=\>

```yaml
jobs:

```

---

<div class="post-metadata">

### Author: ![labber253](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@labber253](https://community.netdata.cloud/u/labber253)
#### Post date: [February 14, 2021, 10:55pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/7 "2021-02-14T22:55:53Z")

</div>

Thanks very much 🙂

It looks like I’m getting some certificate errors. I don’t run SSL in my Homelab but maybe it’s required for this plugin to function. I can also try the VSCA plugin now that I know more how this works.

```
[root@netdata plugins.d]# ./go.d.plugin -d -m vsphere
[DEBUG] main[main] main.go:111 plugin: name=go.d, version=v0.27.0
[DEBUG] main[main] main.go:113 current user: name=root, uid=0
[INFO] main[main] agent.go:106 instance is started
[INFO] main[main] setup.go:39 loading config file
[INFO] main[main] setup.go:47 looking for 'go.d.conf' in [/etc/netdata /usr/lib/netdata/conf.d]
[INFO] main[main] setup.go:54 found '/etc/netdata/go.d.conf
[INFO] main[main] setup.go:61 config successfully loaded
[INFO] main[main] agent.go:110 using config: enabled 'true', default_run 'true', max_procs '0'
[INFO] main[main] setup.go:66 loading modules
[INFO] main[main] setup.go:85 enabled/registered modules: 1/58
[INFO] main[main] setup.go:90 building discovery config
[INFO] main[main] setup.go:116 looking for 'vsphere.conf' in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[INFO] main[main] setup.go:123 found '/etc/netdata/go.d/vsphere.conf
[INFO] main[main] setup.go:128 dummy/read/watch paths: 0/1/0
[INFO] discovery[manager] manager.go:90 registered discoverers: [file discovery: [file reader]]
[INFO] run[manager] run.go:30 instance is started
[INFO] discovery[manager] manager.go:95 instance is started
[INFO] build[manager] build.go:106 instance is started
[INFO] discovery[file manager] discovery.go:71 instance is started
[INFO] discovery[file reader] read.go:39 instance is started
[INFO] discovery[file reader] read.go:40 instance is stopped
[DEBUG] build[manager] build.go:153 received config group ('/etc/netdata/go.d/vsphere.conf'): 1 jobs (added: 1, removed: 0)
[DEBUG] build[manager] build.go:295 building vsphere[VMware_vCenter] job, config: map[__provider__ :file reader __source__ :/etc/netdata/go.d/vsphere.conf autodetection_retry:0 host_include:[/*] module:vsphere name:VMware_vCenter password:########Pn priority:70000 update_every:20 url:https://192.168.20.15 username:administrator@vsphere.local vm_include:[/*]]
[ERROR] vsphere[VMware_vCenter] vsphere.go:159 error on creating vsphere client: Post "https://192.168.20.15/sdk": x509: certificate signed by unknown authority
[ERROR] vsphere[VMware_vCenter] job.go:148 init failed
[DEBUG] run[manager] run.go:41 tick 0
[DEBUG] run[manager] run.go:41 tick 1
[DEBUG] run[manager] run.go:41 tick 2
[DEBUG] run[manager] run.go:41 tick 3
[DEBUG] run[manager] run.go:41 tick 4
[DEBUG] run[manager] run.go:41 tick 5

```

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [February 14, 2021, 10:58pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/8 "2021-02-14T22:58:18Z")

</div>

Let’s add `tls_skip_verify: yes` to the job config

```nohighlight
jobs:
   - name: VMware vCenter
     url: https://192.168.20.15
     username: administrator@vsphere.local
     password: r##4######2aNTPn
     host_include: ['/*']
     vm_include: ['/*']
     tls_skip_verify: yes

```

---

<div class="post-metadata">

### Author: ![labber253](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@labber253](https://community.netdata.cloud/u/labber253)
#### Post date: [February 14, 2021, 11:10pm UTC](https://community.netdata.cloud/t/trouble-working-with-the-vsphere-module/937/9 "2021-02-14T23:10:14Z")

</div>

Excellent, it’s looking great 🙂

Thank you so much!

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/1X/cd8d1f7f21b9da450318d819a5a522c4fc739bb6.png)
