Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
« Glpi » : différence entre les versions
e |
|||
| Ligne 82 : | Ligne 82 : | ||
Activez l'agent :<br /> | Activez l'agent :<br /> | ||
<syntaxhighlight lang="bash">systemctl restart fusioninventory-agent</syntaxhighlight> | <syntaxhighlight lang="bash">systemctl restart fusioninventory-agent</syntaxhighlight> | ||
Recharger :<br /> | |||
<syntaxhighlight lang="bash">systemctl reload fusioninventory-agent</syntaxhighlight> | |||
Une fois votre agent installé, ouvrez un navigateur web sur le client et tapez l’adresse http://localhost:62354 Si l'agent est bien installé alors vous devriez retrouver ceci :<br /> | |||
Version du 5 novembre 2020 à 09:13
Installation
Problèmes rencontrés
Droits d'accès au répertoire files
Lors de l'installation les droits d'écritures sur le répertoire files ne sont pas ouverts
Le message d'erreur est :
Web access to the files directory should not be allowed Check the .htaccess file and the web server configuration.
Ce message s'affiche dans conf Glpi :
http://127.0.0.1/glpi/front/config.form.php
Le résolution du problème :
Éditer le fichier, /etc/apache2/apache2.conf (par exemple dans /var/www):
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
et on remplace par;
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
puis,
sudo service apache2 restart
Après la résolution le message doit être :
Web access to files directory is protected
Comment se connecter lorsque GLPI est en mode maintenance
Saisir l'url suivante :
http://127.0.0.1/glpi/index.php?skipMaintenance=1
Installation Fusioninventory agent (Ubuntu)
Paquets à installer
Nous allons procéder à une installation manuelle.
Il est important d'installer les paquets nécéssaire à l'installation de fusion inventory agent, vous allez devoir installer ces paquets :
apt -y install dmidecode hwdata ucf hdparm
apt -y install perl libuniversal-require-perl libwww-perl libparse-edid-perl
apt -y install libproc-daemon-perl libfile-which-perl libhttp-daemon-perl
apt -y install libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl
apt -y install libdigest-sha-perl libsocket-getaddrinfo-perl libtext-template-perl
apt -y install libxml-xpath-perl libyaml-tiny-perl
Pour fusion inventory-agent-task-network vous allez devoir installer ce paquet :
apt -y install libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl
Si vous avez besoin de la prise en charge de SNMPv3 pour l'inventaire du réseau, vous devez également installer celui-ci :
apt -y install libdigest-hmac-perl
Pour fusion inventory-agent-task-deploy vous allez devoir installer ce paquet :
apt -y install libfile-copy-recursive-perl libparallel-forkmanager-perl
Si vous devez exécuter la tâche WakeOnLan, vous devrez installer celui-là :
apt -y install libwrite-net-perl
apt -y install libnet-snmp-perl
apt -y install libsnmp-perl
Téléchargez les paquets que vous souhaitez, même si vous n'allez pas vous servir des tous les outils tout de suite, il préférable de tous les installer : https://github.com/fusioninventory/fusioninventory-agent/releases/tag/2.5.2
| Packages | Tâches incluses |
|---|---|
| fusioninventory-agent_2.5.2-1_all.deb | Inventory - WakeOnLan |
| fusioninventory-agent-task-collect_2.5.2-1_all.deb | Collect |
| fusioninventory-agent-task-network_2.5.2-1_all.deb | NetDiscovery - NetInventory |
| fusioninventory-agent-task-deploy_2.5.2-1_all.deb | Deploy |
| fusioninventory-agent-task-esx_2.5.2-1_all.deb | ESX |
Seul le package fusioninventory est obligatoire :
dpkg -i fusioninventory-agent_2.5.2-1_all.deb
dpkg -i fusioninventory-agent-task-collect_2.5.2-1_all.deb
dpkg -i fusioninventory-agent-task-network_2.5.2-1_all.deb
dpkg -i fusioninventory-agent-task-deploy_2.5.2-1_all.deb
dpkg -i fusioninventory-agent-task-esx_2.5.2-1_all.deb
Configuration de l'agent :
Éditez /etc/fusioninventory/agent.cfg :
sudo nano /etc/fusioninventory/agent.cfg
Cherchez la ligne « send task results to a FusionInventory for GLPI server»Dans la ligne juste en dessous, tapez :
server = http://172.16.45.200/glpi/plugins/fusioninventory/
Utilisezl'adresse IP de votre serveur GLPI.
Activez l'agent :
systemctl restart fusioninventory-agent
Recharger :
systemctl reload fusioninventory-agent
Une fois votre agent installé, ouvrez un navigateur web sur le client et tapez l’adresse http://localhost:62354 Si l'agent est bien installé alors vous devriez retrouver ceci :