New Connector with ESX/VCSA 8 doesn't work for Ressources
Hi all !
After to upgrade to the latest version of centreon 24.10.x (on Debian 12) , i installed the “New Connector VMWare” to supervise my vmware IT (followed all step from this documentation)
1- I encountered somes problems like: “Unknow container name “default” on all of my Services
I can’t Add with discovery too because that give the same error “Unknow container name”..
BUT : in my log all is OK :
2- SO where did i need to remplace the “container name” correctly and why the centreon_vmware are with “.json (the oldest version before 24.10.x was in “.pm” extension no?)
This connector use the “centreon_vmware.json” file to connect at my Vcenter and it OK, like you seem in picture of logs.
They explain on documentation this new connector work with Vcenter 6/7 version...so did he doesn’t work with a version 8 ?
Page 1 / 1
hello
when you set up the json file that section
contains the “name” of each vcenter you will use in the host templates, in your case it is “00-srv-vcsa…...”
it can be anything you want and is not related to the real host name, the “default” is the default one if you get the json out-of-the-box (and set it up manually in the .json file if you are on a earlier version of centreon
that name is the used in the “host macro” associated with the host template
for vcenter :
change the container name “default" to the name you put in your config
you also need to change that macro on the ESXi Hosts if you add them manually without host discovery
if you get a container error in your check that comes from that macro and your “name”
Alternatively, you can put “default” in the “name” on that web page so you don’t have to change all your host (haven’t yet tried that new ui, so I don’t know if it works)
hi @christophe.niel-ACT ! so i tryed to change the container name to “default” in the .json file that doesn’t change anything. (the config file don't change when i restart centreon and stay with the name “vsphere_server” by default .
So i tryed to inclure this value into Host macro like this :
but no change nothing :
Did i need to downgrade in oldest version of centreon_vwmare to get the file with “.pm” extension?
Or maybe that can come to my Vcenter ( we updated our vcenter and ESX to 6.7 => 8 ..somes months ago). Maybe did i need to do something in the vsphere configuration (modules or other)
I don’t know :(
I was not clear, my arrow pointed to the “section”, the name is below, it’s the line with
name:”00-srv-vcsa.??????”
that is the thing that needs to match the “container” from your macro in the host
Hello try it this way (default = {‘url’ => ‘http(s)://hostname/sdk’,) on the same on the same line
note the “name” property is “default”, it could be anything you want and that must match the container name on the hosts config
@christophe.niel-ACT you right ! I remember when i installed the new Centreon VMWare Connector , that ask us if we want to keep the Oldest version “.pm” or if we want to up with the new “.json” ( the latter will be automatical empty by the futur connector vmware created )