Skip to main content

Installation et configuration de OCS & GLPI

Les centres d'assistances : Helpdesk

Pour commencer, vous devez comprendre l'intérêt de ce qu'on appelle le Helpdesk ou centre
d'assistance. Vous lirez la documentation à l'adresse suivante :
http://fr.wikipedia.org/wiki/Centre_d'assistance puis répondrez aux questions.

Présentation des questions
1. Qui peut faire appel à un centre d'intervention, à quel moment, pour quels problèmes,
et qui y répond ?

    • Des utilisateurs de produits ou de services
    • A tous moments par mail ou via le web. Cependant, il faut respecter une plage horaire si c'est par téléphone.
    • C'est pour n'importe quel type de problème qui seront hiérarchisé par le centre d'assistance puis transmit à qui de droit (Techniciens, Entreprises, etc.).

2. En quelques mots, définissez ITIL et expliquez le lien qui existe entre ITIL et les centres d'assistance.

ITIL est un révérenciel méthodologique, il peut être utile aux centres d'assistance pour améliorer leurs rapidité ; Améliorer leurs QOS et diminuer les risques.


3. Retracez à l'aide d'un diagramme (diagramme de flux simple Visio) le cheminement
possible d'une question ou d'un problème informatique au travers des différents
niveaux d'intervention du helpdesk : Wikipedia.

image-1610997518816.png

 

Prérequis : 

➔ mysql-server
➔ apache2
➔ php
➔ libapache2-mod-php
➔ php-mysql

 

Pour les prérequis, vous pouvez simplement installer mon scripte : 

wget https://scripts.nehemiebarkia.fr/BASH/Installations/SSH-LAMP.sh ; bash SSH-LAMP.sh

Installation de GLPI :

Changement de répertoire : 

cd /var/www/html/

Suppression du contenue par défaut :

rm * -r

Téléchargement de GLPI :

wget https://github.com/glpi-project/glpi/releases/download/9.5.3/glpi-9.5.3.tgz

Extraction de l'archive : 

tar xvzf glpi-9.5.3.tgz

Suppression de l'archive : 

rm glpi-9.5.3.tgz

 

Maintenant, nous allons accéder à notre nouveau site (http://IPDUSERVEUR/glpi)

 

On clique sur "OK"

image-1611095207639.png

On lit la License, puis on l'accepte et enfin on clique sur "Continuer"

image-1611095259411.png

On clique sur "Installer".

image-1611095357494.png

Les erreurs suivantes s'affichent  : 

image-1611095437547.png

Attribution des droits sur le dossier GLPI pour l'utilisateur de PHP.

chown www-data:www-data /var/www/html/glpi -R

Changement des droits pour l'accès "Autre utilisateur".

chmod 775 /var/www/html/glpi -R 

Activation du module de réécriture d'Apache.

a2enmod rewrite ; systemctl restart apache2

Ajout des extensions PHP nécessaires.

apt-get install php-{ldap,apcu,cas} -y

Modification de la configuration apache.

nano /etc/apache2/sites-available/000-default.conf

On y ajoute (à l'intérieur du Virtualhost) : 

<Directory /var/www/html/glpi>
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>

Redémarrage pour tout prendre en compte.

reboot

 

Après le redémarrage du serveur, tous les résultats sont validés.

image-1611097309281.png

 

Création d'un utilisateur et attributions des privilèges dans MariaDB.

Pour entrer dans MariaDB il suffit simplement d'écrire "mysql"

GRANT ALL PRIVILEGES ON *.* TO 'glpi'@'localhost' IDENTIFIED BY 'MYSUPERPASSWORD' WITH GRANT OPTION;

 

Maintenant on peut spécifier les informations suivantes dans GLPI, puis on clique sur "Continuer".

image-1611097593442.png

On spécifie le nom de la base de donnée puis on clique sur "Continuer".

image-1611097695145.png

Après avoir cliqué sur continuer, une page de chargement apparaitra. Il suffira de patienter. Puis vous pourrez vous connecter (Utilisateur : glpi ; Mot de passe : glpi). 

image-1611171296469.png

Après avoir cliqué sur "Envoyer", vous aurez accès à GLPI comme ci-dessous  :

image-1611171378656.png

 

Installation d'OCS :

cd /usr/src 
wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.8.1/OCSNG_UNIX_SERVER_2.8.1.tar.gz
tar -xvzf OCSNG_UNIX_SERVER_2.8.1.tar.gz

 

Pour entrer dans MariaDB il suffit simplement d'écrire "mysql"

GRANT ALL PRIVILEGES ON *.* TO 'ocs'@'localhost' IDENTIFIED BY 'ocs' WITH GRANT OPTION;
apt install make 
 apt-get install libapache2-mod-perl2
apt install libxml-simple-perl libapache-dbi-perl libnet-ip-perl perl
perl -MCPAN -e 'install Mojolicious'
perl -MCPAN -e 'install Switch'
perl -MCPAN -e 'install Plack'
/usr/src/OCSNG_UNIX_SERVER_2.8.1/setup.sh

image-1611175368228.png

image-1611175408035.png

image-1611175425341.png

 

image-1611175446753.png

 

image-1611175467498.png

 

image-1611175483866.png

 

image-1611175502359.png

 

image-1611175528906.png

 

image-1611175547874.png

 

image-1611175572338.png

 

image-1611175616308.png

 

 

image-1611175634999.png

 

image-1611175655457.png

 

image-1611175670107.png

 

image-1611177021441.png

 

image-1611177047753.png

 

image-1611177062829.png

 

image-1611177085955.png

 

image-1611177101255.png

 

image-1611177110007.png

 

image-1611177130815.png

a2enconf z-ocsinventory-server
a2enconf ocsinventory-reports
systemctl restart apache2.service

 

Maintenant, nous allons accéder à notre nouveau site (http://IPDUSERVEUR/ocsreports)

 

image-1611177541306.png

 

Installation d'OCS Inventory :image-1611177556870.png

 

 

image-1611177626718.png

 

chown www-data:www-data /var/lib/ocsinventory-reports

On actualise 

image-1611177768671.png

Connexion : 

  • Utilisateur : admin
  • Mot de passe : admin

 

 

OCS est bien fonctionnel : 

image-1611177847020.png

 

Tables créés par OCS  :

 

TableMoteur?Interclassement?Longueur des données?Longueur de l'index?Espace inutilisé?Incrément automatique?Lignes?Commentaire?
accesslogInnoDButf8_general_ci16,38432,768010 
accountinfoInnoDButf8_general_ci16,38416,3840 0 
accountinfo_configInnoDButf8_general_ci16,384003~ 2 
archiveInnoDButf8_general_ci16,38416,384010 
assets_categoriesInnoDButf8_general_ci16,3840010 
batteriesInnoDButf8_general_ci16,38449,152010 
biosInnoDButf8_general_ci16,38432,7680 0 
blacklist_macaddressesInnoDButf8_general_ci16,38416,384015~ 14 
blacklist_serialsInnoDButf8_general_ci16,38416,384035~ 34 
blacklist_subnetInnoDButf8_general_ci16,38416,384010 
configInnoDButf8_general_ci16,38400 ~ 67 
conntrackMEMORYutf8_general_ci000 0 
controllersInnoDButf8_general_ci16,38416,384010 
cpusInnoDButf8_general_ci16,38416,384010 
cve_searchInnoDButf8_general_ci16,38400 0 
cve_search_correspondanceInnoDButf8_general_ci16,3840010 
cve_search_historyInnoDButf8_general_ci16,3840010 
deleted_equivInnoDButf8_general_ci16,38416,384010 
deployInnoDButf8_general_ci16,38400 0 
devicesInnoDButf8_general_ci16,38465,536010 
devicetypeInnoDButf8_general_ci16,3840010 
dico_ignoredInnoDButf8_general_ci16,38400 0 
dico_softInnoDButf8_general_ci16,38400 0 
downloadwk_conf_valuesInnoDButf8_general_ci16,3840010 
downloadwk_fieldsInnoDButf8_general_ci16,3840011~ 10 
downloadwk_historyInnoDButf8_general_ci16,3840010 
downloadwk_packInnoDButf8_general_ci16,3840010 
downloadwk_statut_requestInnoDButf8_general_ci16,3840010~ 9 
downloadwk_tab_valuesInnoDButf8_general_ci16,384006~ 5 
download_affect_rulesInnoDButf8_general_ci16,3840010 
download_availableInnoDButf8_general_ci16,38400 0 
download_enableInnoDButf8_general_ci16,38416,384010 
download_historyInnoDButf8_general_ci16,38400 0 
download_serversInnoDButf8_general_ci16,38400 0 
drivesInnoDButf8_general_ci16,38416,384010 
engine_mutexMEMORYutf8_general_ci000 0 
engine_persistentInnoDButf8_general_ci16,38416,384010 
extensionsInnoDButf8_general_ci16,38400 0 
filesInnoDButf8_general_ci16,38400 0 
groupsInnoDButf8_general_ci16,38400 0 
groups_cacheInnoDButf8_general_ci16,38400 0 
hardwareInnoDButf8_general_ci16,384114,688010 
hardware_osname_cacheInnoDButf8_general_ci16,38416,384010 
inputsInnoDButf8_general_ci16,38416,384010 
itmgmt_commentsInnoDButf8_general_ci16,38416,384010 
javainfoInnoDButf8_general_ci16,38400 0 
journallogInnoDButf8_general_ci16,38416,384010 
languagesInnoDButf8_general_ci16,38400 0 
locksMEMORYutf8_general_ci000 0 
memoriesInnoDButf8_general_ci16,38416,384010 
modemsInnoDButf8_general_ci16,38416,384010 
monitorsInnoDButf8_general_ci16,38416,384010 
netmapInnoDButf8_general_ci16,38432,7680 0 
networksInnoDButf8_general_ci16,38481,920010 
network_devicesInnoDButf8_general_ci16,38416,384010 
notificationInnoDButf8_general_ci16,384004~ 3 
notification_configInnoDButf8_general_ci16,3840010 
operatorsInnoDButf8_general_ci16,38400 0 
portsInnoDButf8_general_ci16,38416,384010 
printersInnoDButf8_general_ci16,38416,384010 
prolog_conntrackMEMORYutf8_general_ci00010 
regconfigInnoDButf8_general_ci16,38416,384010 
registryInnoDButf8_general_ci16,38432,768010 
registry_name_cacheInnoDButf8_general_ci16,38416,384010 
registry_regvalue_cacheInnoDButf8_general_ci16,38416,384010 
repositoryInnoDButf8_general_ci16,38416,384010 
saasInnoDButf8_general_ci16,38400 0 
saas_expInnoDButf8_general_ci16,3840010 
save_queryInnoDButf8_general_ci16,3840010 
schedule_WOLInnoDButf8_general_ci16,3840010 
simInnoDButf8_general_ci16,38416,384010 
slotsInnoDButf8_general_ci16,38416,384010 
snmp_communitiesInnoDButf8_general_ci16,3840010 
snmp_configsInnoDButf8_general_ci16,3840010 
snmp_labelsInnoDButf8_general_ci16,3840010 
snmp_linksInnoDButf8_general_ci16,3840010 
snmp_mibsInnoDButf8_general_ci16,3840010 
snmp_typesInnoDButf8_general_ci16,3840010 
softwareInnoDButf8_general_ci16,38465,536010 
softwares_name_cacheInnoDButf8_general_ci16,38416,384010 
software_categoriesInnoDButf8_general_ci16,3840010 
software_category_expInnoDButf8_general_ci16,38416,384010 
software_nameInnoDButf8_general_ci16,38416,384010 
software_publisherInnoDButf8_general_ci16,38416,384020 
software_versionInnoDButf8_general_ci16,38416,384020 
soundsInnoDButf8_general_ci16,38416,384010 
ssl_storeInnoDButf8_general_ci16,3840010 
storagesInnoDButf8_general_ci16,38416,384010 
subnetInnoDButf8_general_ci16,38416,3840 0 
tagsInnoDButf8_general_ci16,38432,7680 0 
temp_filesInnoDButf8_general_ci16,3840010 
unixusersInnoDButf8_bin16,3840010 
usbdevicesInnoDButf8_general_ci16,38416,384010 
videosInnoDButf8_general_ci16,38416,384010 
virtualmachinesInnoDButf8_general_ci16,38416,384010 
 95 au total

 

 

Suppression des fichiers d'installations :

rm /usr/share/ocsinventory-reports/install.php
rm /usr/share/glpi/install/install.php