Outils pour utilisateurs

Outils du site


tech:install_de_fusioninventory

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:install_de_fusioninventory [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:install_de_fusioninventory [2025/10/30 17:29] (Version actuelle) Jean-Baptiste
Ligne 13: Ligne 13:
  
 == Install de FusionInventory-Agent == Install de FusionInventory-Agent
 +
  
 === Notes sur l'agent === Notes sur l'agent
  
 L'agent peut être en mode Daemon (via service), ou lancé par Cron L'agent peut être en mode Daemon (via service), ou lancé par Cron
 +
  
 === sur Debian/Ubuntu === sur Debian/Ubuntu
Ligne 24: Ligne 26:
 </code> </code>
  
-<code ini /etc/default/fusioninventory-agent>+''/etc/default/fusioninventory-agent'' 
 +<code ini>
 # MODE can be either "daemon" or "cron" # MODE can be either "daemon" or "cron"
 #MODE=cron #MODE=cron
Ligne 30: Ligne 33:
 </code> </code>
  
-<code ini /etc/fusioninventory/agent.cfg>+''/etc/fusioninventory/agent.cfg'' 
 +<code ini>
 server = http://192.168.56.12:81/plugins/fusioninventory/ server = http://192.168.56.12:81/plugins/fusioninventory/
 local = /tmp local = /tmp
Ligne 56: Ligne 60:
 <code -> <code ->
 #*/1 * * * * /usr/bin/fusioninventory-agent #*/1 * * * * /usr/bin/fusioninventory-agent
-*/1 * * * * no_proxy=fusion.lan /usr/bin/fusioninventory-agent+*/1 * * * * NO_PROXY=fusion.lan /usr/bin/fusioninventory-agent
 </code> </code>
 +
  
 ==== Agent en mode Daemon ==== Agent en mode Daemon
Ligne 74: Ligne 79:
 Voir les valeurs  Voir les valeurs 
  
-<code ini /etc/fusioninventory/agent.cfg>+''/etc/fusioninventory/agent.cfg'' 
 +<code ini>
 # network port to listen to # network port to listen to
 httpd-port = 62354 httpd-port = 62354
Ligne 103: Ligne 109:
 rm -f $(grep '^local =' /etc/fusioninventory/agent.cfg |tail -1 |awk '{print $3}')/*.ocs rm -f $(grep '^local =' /etc/fusioninventory/agent.cfg |tail -1 |awk '{print $3}')/*.ocs
 </code> </code>
 +
 +
 === Install de l'agent FusionInventory sur RedHat6 et RedHat7 === Install de l'agent FusionInventory sur RedHat6 et RedHat7
  
 Ligne à ajouter Ligne à ajouter
-<code ini /etc/fusioninventory/agent.cfg>+ 
 +''/etc/fusioninventory/agent.cfg'' 
 +<code ini>
 server = http://192.168.10.22/glpi-sysadmins/plugins/fusioninventory/ server = http://192.168.10.22/glpi-sysadmins/plugins/fusioninventory/
 </code> </code>
  
 Ligne à ajouter Ligne à ajouter
-<code ini /etc/sysconfig/fusioninventory-agent>+ 
 +''/etc/sysconfig/fusioninventory-agent'' 
 +<code ini>
 OCSMODE[0]=cron OCSMODE[0]=cron
 </code> </code>
  
 Ce qui donne : Ce qui donne :
-<code ini /etc/sysconfig/fusioninventory-agent>+ 
 +''/etc/sysconfig/fusioninventory-agent'' 
 +<code ini>
 PATH=/sbin:/bin:/usr/sbin:/usr/bin PATH=/sbin:/bin:/usr/sbin:/usr/bin
 FUSINVOPT='--debug --rpc-trust-localhost' FUSINVOPT='--debug --rpc-trust-localhost'
Ligne 130: Ligne 144:
  
 Elle vient avec le paquet, je mets le code ici car ca fait longtemps que je n'ai pas fait appel à des tableaux associatifs en bash Elle vient avec le paquet, je mets le code ici car ca fait longtemps que je n'ai pas fait appel à des tableaux associatifs en bash
-<code bash /etc/cron.hourly/fusioninventory-agent>+ 
 +''/etc/cron.hourly/fusioninventory-agent'' 
 +<code bash>
 #!/bin/bash #!/bin/bash
 NAME=fusioninventory-agent NAME=fusioninventory-agent
Ligne 213: Ligne 229:
 </code> </code>
  
-<code ini fusioninventory.repo>+ 
 +''fusioninventory.repo'' 
 +<code ini>
 [home_guillomovitch] [home_guillomovitch]
 name=guillomovitch's Home Project (CentOS_7) name=guillomovitch's Home Project (CentOS_7)
Ligne 272: Ligne 290:
 </code> </code>
  
-<code apache /etc/apache2/conf-available/glpi.conf>+''/etc/apache2/conf-available/glpi.conf'' 
 +<code apache>
 Alias /glpi /var/www/glpi Alias /glpi /var/www/glpi
  
Ligne 293: Ligne 312:
  
 ou dans notre exemple ou dans notre exemple
-<code apache /etc/apache2/sites-available/glpi.conf>+ 
 +''/etc/apache2/sites-available/glpi.conf'' 
 +<code apache>
 <VirtualHost *:80> <VirtualHost *:80>
     ServerName fusion.lan     ServerName fusion.lan
Ligne 381: Ligne 402:
 == Pb déploiement sous GNU/Linux == Pb déploiement sous GNU/Linux
  
-<code - /var/log/fusioninventory.log>+''/var/log/fusioninventory.log'' 
 +<code ->
 [Tue Sep 20 15:33:02 2016][debug] Run: dpkg: warning: 'ldconfig' not found in PATH or not executable [Tue Sep 20 15:33:02 2016][debug] Run: dpkg: warning: 'ldconfig' not found in PATH or not executable
 dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
Ligne 407: Ligne 429:
 dpkg -i /tmp/deploy/atop.deb dpkg -i /tmp/deploy/atop.deb
 </code> </code>
 +
  
 === Solution / Astuce === Solution / Astuce
  
-<code bash /usr/local/bin/execw.sh>+''/usr/local/bin/execw.sh'' 
 +<code bash>
 #! /bin/bash #! /bin/bash
  
tech/install_de_fusioninventory.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki