OCS Inventory NG permet de réaliser un inventaire du parc informatique (machines, réseau, logiciels). GLPI est un gestionnaire de parc informatique qui centralise les données d'OCS et permet leur exploitation via une interface web.
OCS-GLPI.ens33 : IP statique (172.20.0.15/24).ens37 : NAT/DHCP.apt install apache2 mariadb-server php -y
apt install -y libapache2-mod-perl2 libxml-simple-perl libnet-ip-perl libsoap-lite-perl
libapache2-mod-perl2-dev make php-mysql php-gd php-mbstring php-soap php-xml php-curl
perl -MCPAN -e "install XML::Entities"
cpan Apache2::SOAP SOAP::Lite Mojolicious::Lite Switch
apt install wget
wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.10.0/OCSNG_UNIX_SERVER-2.10.0.tar.gz
tar xvzf OCSNG_UNIX_SERVER-2.10.0.tar.gz
cd OCSNG_UNIX_SERVER-2.10.0
./setup.sh
mysql -u root
create database ocsweb;
GRANT ALL PRIVILEGES ON *.* TO ocs@'localhost' IDENTIFIED BY 'ocs';
FLUSH PRIVILEGES;
exit;
service mariadb restart
service apache2 restart
http://<IP_debian>/ocsreports.ocs.ocs.ocsweb.apt install ocsinventory-agent
http://172.20.0.15/ocsreports.ocsinventory-agent
http://172.20.0.15/ocsinventory.
mysql -u root
create database dbglpi;
GRANT ALL PRIVILEGES ON dbglpi.* TO glpiuser@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;
wget https://github.com/glpi-project/glpi/releases/download/10.0.3/glpi-10.0.3.tgz
cd /var/www/html
tar xvzf glpi-10.0.3.tgz
chown -R www-data:www-data /var/www/html/glpi
Accéder à : http://<IP_debian>/glpi. Identifiants par défaut : glpi / glpi.
cd /var/www/html/glpi/plugins
wget https://github.com/pluginsGLPI/ocsinventoryng/releases/download/2.0.2/glpi-ocsinventoryng-2.0.2.tar.bz2
tar xvjf glpi-ocsinventoryng-2.0.2.tar.bz2
Une fois terminé, tu pourras importer les données d'inventaire dans GLPI.