Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Installation du plugin VMWare VCenter Inventory

Bonjour,

Actuellement en train de paramétrer le pluging VMWare Vcenter Inventory sur mon serveur OCS ( sous centos 6.10), j'ai installé le plugin sur le serveur, j'ai copié les fichiers map.pm  (/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Vmware_vcenter/Map.pm) et vmware_vcenter.conf ( /etc/ocsinventory-server/plugins/vmware_vcenter.conf).

Dans l'interface web d'Ocs, je peut installer le plugins, ce qui est déja pas mal.

Mon problème est que je ne sais pas ou installer l'agent Vmware.pm?!

Pourriez vous m'aider, j'ai épluché le forum sans trouver de réponses a mes questions et je commence à sécher :/

Cordialement
in OCS Inventory NG plugins by (120 points)

3 Answers

0 votes
Bonjour,

C'est un plugin de l'agent unix. Le fichier Vmware.pm est à installer dans le répertoire /usr/local/share/perl5/Ocsinventory/Agent/Modules sur CentOS 6/7. Puis il faut l'activer en ajoutant dans le fichier /etc/ocsinventory-agent/modules.conf la ligne suivante : use Ocsinventory::Agent::Modules::Vmware;  Sauvegarderle fichier et lancer un inventaire.

Cordialement.

Frank
by (88.5k points)
0 votes

Is the filename /etc/ocsinventory-agent/modules.conf or  /etc/ocsinventory/modules.conf ?

by (4.6k points)
0 votes

Yo have to include the credentials to extract the info from vmware,  editing the Auth section in /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Modules/Vmware.pm,like this:

# Auth

my @auth_hashes = (

    {

       URL  => "https://your-vcenter-server/",

       AUTH_DIG   => "dXN1YXJpb0B5b3VyLWRvbWFpbi1oZXJlOmNvbnRyYXNlbmE=",

    },

  );

The AUTH_DIG parameter must be generated like this:

echo -n "usuario@domain:password" | base64

by (4.6k points)
 
Powered by Question2Answer
...