Skip to content

Instantly share code, notes, and snippets.

@cyhook
Last active October 3, 2017 16:12
Show Gist options
  • Save cyhook/3552aed0ba8e611822e89ac98d73cb4e to your computer and use it in GitHub Desktop.
Save cyhook/3552aed0ba8e611822e89ac98d73cb4e to your computer and use it in GitHub Desktop.

GLPI SETUP FUSION INVENTORY PLUGIN

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  libproc-pid-file-perl libfile-which-perl
apt -y install libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl
apt -y install libdigest-sha-perl libsocket-getaddrinfo-perl
apt -y install nmap libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl
apt -y install libfile-copy-recursive-perl libparallel-forkmanager-perl
cd ~/Downloads/
wget http://debian.fusioninventory.org/downloads/fusioninventory-agent_2.3.21-2_all.deb
dpkg -i fusioninventory-agent_2.3.21-2_all.deb
wget http://debian.fusioninventory.org/downloads/fusioninventory-agent-task-network_2.3.21-2_all.deb
dpkg -i fusioninventory-agent-task-network_2.3.21-2_all.deb
wget http://debian.fusioninventory.org/downloads/fusioninventory-agent-task-deploy_2.3.21-2_all.deb
dpkg -i fusioninventory-agent-task-deploy_2.3.21-2_all.deb
wget http://debian.fusioninventory.org/downloads/fusioninventory-agent-task-esx_2.3.21-2_all.deb
dpkg -i fusioninventory-agent-task-esx_2.3.21-2_all.deb
systemctl restart fusioninventory-agent

Install Agent 2.3.10 on Debian 7 using debian-backports repository

echo "deb http://httpredir.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -t wheezy-backports fusioninventory-agent

Install Agent 2.3.16 from old FusionInventory repository

First, you need to import the repository GnuPG key, if apt-key is available you can use these command as root:

apt-key adv --keyserver keyserver.ubuntu.com --recv 049ED9B94765572E

Otherwise this one will work:

wget -O - http://debian.fusioninventory.org/debian/archive.key | apt-key add -

Now you can install the agent.

apt-get install lsb-release
echo "deb http://debian.fusioninventory.org/debian/ `lsb_release -cs` main" >> /etc/apt/sources.list
apt-get update
apt-get install fusioninventory-agent

Note: On Debian Testing, you need to fix the /etc/apt/sources.list update so you use jessie repo. You can better replace the second line from the previous commands with:

echo "deb http://debian.fusioninventory.org/debian/ jessie main" >> /etc/apt/sources.list

The content of the dists pages can help you do identify support operating system. Install the additional packages

Network inventory tasks:

apt-get install fusioninventory-agent-task-network

ESX inventory task:

apt-get install fusioninventory-agent-task-esx

Deploy task:

apt-get install fusioninventory-agent-task-deploy

Enable GLPI CRON

*/5 * * * * /usr/bin/php5 /var/www/monsite.com/glpi/front/cron.php &>/dev/null

EDIT Configuration File

Enabling logging for debugging errors by removing hash from

START Fusioninventory

fusioninventory-agent --no-ssl-check   # If supporting self signed ssl on HTTPS
fusioninventory-agent                  # If supporting HTTP only

INSTALL PLUGINS

INSTALL FUSION INVENTORY PLUGIN

cd /var/www/glpi/plugins
git clone https://github.com/fusioninventory/fusioninventory-for-glpi.git
cd fusioninventory-for-glpi
composer install
cd ..
mv fusioninventory-for-glpi fusioninventory

URLS

PLUGINS

Main

http://plugins.glpi-project.org/#/

Specific

https://forge.glpi-project.org/attachments/download/2191/glpi-archires-2.4.0.tar.gz https://forge.glpi-project.org/attachments/download/2185/GLPI-dashboard_plugin-0.8.4.tar.gz https://github.com/pluginsGLPI/addressing/releases/download/2.5.0/glpi-addressing-2.5.0.tar.gz

TUTORIALS

https://www.tecmint.com/glpi-it-asset-management-with-fusion-inventory-in-debian-linux/3/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment