Skip to main content

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)

https://docs.centreon.com/fr/pp/integrations/plugin-packs/getting-started/how-to-guides/additional-connector-configuration/ 

1- I encountered somes problems like: “Unknow container name “default” on all of my Services 

 

this problem are on ALL of my services of hosts except “ping”

I can’t Add with discovery too because that give the same error “Unknow container name”..

BUT : in my log all is OK :

from centreon_vmware.log

 

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?)

New Connector Added

 

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 ?

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 :

changed the container name “default” => “vsphere_server” (from the .json file)

but no change nothing :

result of services status

Did i need to downgrade in oldest version of centreon_vwmare to get the file with “.pm” extension?

that worked when i was on oldest version of centreon like 24.04 or another before the 24.10 version

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

centreon_vmware_config = (
    vsphere_server => {
        'default'    => {'url'   => 'https://ip_hostname/sdk',
                          'username' => 'foo’,
                          'password' => 'foo_password'
        }
    },

);

1;

 


{
"vsphere_server" : [
{
"username" : "centreon@vsphere.local",
"name" : "default",
"url" : "https://1.2.3.4/sdk",
"password" : "Password"
}
]
}

that’s what I have on one of my pollers where I used a “default” vcenter and it was upgraded to that when I upgraded the plugin

 


@Trankilou that was the perl config, if you upgrade the plugin on the poller this file (centreon_vmware.pm) is converted to json

 

on a poller that was using the old centreon_vmware.pm and was auto upgraded to the json, here is what it looks like

 

{
   "vsphere_server" : v
      {
         "username" : "centreonuser",
         "name" : "default",
         "url" : "https://1.2.3.4/sdk",
         "password" : "SuperSecurePassword"
      }
   ]
}
 

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 )


Reply