Installation on Debian and Ubuntu¶
METHOD 1: manually install FusionInventory Sid packages¶
Latest FusionInventory Agent Debian and Ubuntu compatible packages are now integrated in Debian Sid.
At the time of this writing, fusioninventory-agent_2.5.2-1 is available from github release.
The agent will be included in Debian Buster (Debian 10) planed to be released on 2019 jul 06.
Info
Tested Debian version | Agent version | Tested Ubuntu version | Agent version | |
---|---|---|---|---|
Buster - Debian 10 - Stable | 2.5.2-1 | Ubuntu 18.04.1 LTS (bionic) | 2.5.2-1 | |
Stretch - Debian 9 - OldStable | 2.5.2-1 |
Install dependencies as root :¶
For fusioninventory-agent, you'll need to install these dependencies:
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
For fusioninventory-agent-task-network, you'll need to install these other dependencies:
apt -y install libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl
If you need SNMPv3 support for network inventory, you should also install this one:
apt -y install libdigest-hmac-perl
For fusioninventory-agent-task-deploy, you'll need to install these other dependencies:
apt -y install libfile-copy-recursive-perl libparallel-forkmanager-perl
If you need to run WakeOnLan task, you'll need to instal this other dependency:
apt -y install libwrite-net-perl
Download desired packages from Deb fusioninventory-agent tracker :¶
Packages | Included tasks |
---|---|
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 |
Install desired packages as root :¶
Only fusioninventory-agent deb package is mandatory
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
Configure the agent :¶
Edit /etc/fusioninventory/agent.cfg
setting at least one target
Start the agent :¶
systemctl restart fusioninventory-agent
On configuration change, reload the agent :¶
systemctl reload fusioninventory-agent
To start an immediate run :¶
You can send USR1 signal to the process with the following command to start a run immediatly :
pkill -USR1 -f -P 1 fusioninventory-agent
METHOD 2: using FusionInventory Debian (and Ubuntu) packages:¶
These packages are based on deprecated source versions.
Info
Debian version | Agent version | Ubuntu version | Agent version | |
---|---|---|---|---|
Wheezy - Debian 7 - OldStable | 2.2.3-8 | Ubuntu 16.04.2 LTS (xenial) | 2.3.16-1 | |
Jessie - Debian 8 - Stable | 2.3.10.1-1 | |||
Sid - Unstable | 2.3.16-1 |
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¶
Info
Tested on Debian 7 - Wheezy, Debian 8 - Jessie, Debian 9 - Stretch/Testing
Debian packaging for recent version is under developement" %}
The FusionInventory project maintained a debian package until 2.3.16 version, in a extra 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
METHOD 3¶
Info
Tested date | Agent version | Debian version | Tested date | Agent version | Debian version |
---|---|---|---|---|---|
2017/06/07 | 2.3.20 | Debian 8 minimal | 2017/05/22 | 2.3.19 | Debian 8 minimal |
2017/06/07 | 2.3.20 | Debian 9 minimal (stretch/testing) | 2017/05/22 | 2.3.19 | Debian 9 minimal (stretch/testing) |
2017/06/07 | 2.3.20 | Ubuntu 16.04.2 LTS (xenial) | 2017/05/22 | 2.3.18 | Debian 9 minimal (stretch/testing) |
Install from source¶
Install dependencies :¶
apt-get -y install wget dmidecode make hwdata
apt-get -y install perl perl-modules libmodule-build-perl libmodule-install-perl
apt-get -y install libfile-which-perl libfile-copy-recursive-perl libuniversal-require-perl
apt-get -y install libtest-http-server-simple-perl libhttp-server-simple-authen-perl libhttp-proxy-perl
apt-get -y install libio-capture-perl libipc-run-perl libnet-snmp-perl
apt-get -y install libtest-compile-perl libtest-deep-perl libtest-exception-perl
apt-get -y install libtest-mockmodule-perl libtest-mockobject-perl libtest-nowarnings-perl
apt-get -y install libxml-treepp-perl libproc-daemon-perl
apt-get -y install libparallel-forkmanager-perl libnet-ip-perl libparse-edid-perl
apt-get -y install libdigest-sha-perl libtext-template-perl libsocket-getaddrinfo-perl
Download¶
wget https://github.com/fusioninventory/fusioninventory-agent/releases/download/2.4.2/FusionInventory-Agent-2.4.2.tar.gz
tar xvzf FusionInventory-Agent-2.4.2.tar.gz
cd FusionInventory-Agent-2.4.2
Build and install¶
perl Makefile.PL
make
make install
Configure¶
- edit
/usr/local/etc/fusioninventory/agent.cfg
Install agent as service¶
Create systemd service¶
Edit /etc/systemd/system/fusioninventory-agent.service
file setting this content:
[Unit]
Description=FusionInventory agent
Documentation=man:fusioninventory-agent
After=syslog.target network.target
[Service]
ExecStart=/usr/local/bin/fusioninventory-agent --daemon --no-fork
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
P.S.: You can also fix and copy contrib/unix/fusioninventory-agent.service
from source
Enable the service¶
systemctl enable fusioninventory-agent
Start the service¶
systemctl start fusioninventory-agent
P.S.: The service will not start if no target is setup in /usr/local/etc/fusioninventory/agent.cfg