Project

General

Profile

Tâche #20580

Scénario #20579: Qualification OCS

Qualifier la dissociationr le client ocs-inventory du serveur de même nom

Added by Emmanuel IHRY over 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Start date:
06/06/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

voir Scénario #20143


Related issues

Related to eole-ocsinventory-agent - Tâche #20290: Rendre indépendant le client et le serveur ocs Fermé 04/18/2017

History

#1 Updated by christophe guerinot over 6 years ago

  • Assigned To set to christophe guerinot

#2 Updated by christophe guerinot about 6 years ago

  • Status changed from Nouveau to En cours

#3 Updated by christophe guerinot about 6 years ago

  • Related to Tâche #20290: Rendre indépendant le client et le serveur ocs added

#4 Updated by christophe guerinot about 6 years ago

  • Status changed from En cours to Résolu
  • Remaining (hours) changed from 4.0 to 0.0

Qualification OK

(1) cas d'un esBl-2.6.2 de base, OCSinventory n'est pas installé, ni les paquets web

root@sbl26-140:~# CreoleGet --list|grep ocs
activer_agent_ocs="oui" 
ocs_contact_cron="0 * * * *" 
ocs_contact_tempo="3600" 
ocs_serveur_national="remontees-ocs.e2.rie.gouv.fr" 
root@sbl26-140:~# dpkg -l|grep ocs
ii  eole-ocsinventory-agent               2.6.2-2                                    all          Templates, dictionnaire et scripts
ii  ocsinventory-agent-pneedt             2.1.1-3                                    all          Hardware and software inventory tool (client)

root@sbl26-140:~# CreoleGet activer_ocsinventory
root - Variable inconnue activer_ocsinventory
root@sbl26-140:~# dpkg -l|grep "\-web" 
ii  eole-ead-web                          2.6.2-9                                    all          Frontend Web pour l'outil EAD
ii  python-tiramisu-web                   2.6.2-1                                    all          json generator for tiramisu web
ii  python-twisted-web                    16.0.0-1                                   all          twisted dummy package for HTTP protocol implementation
ii  python-twisted-web2                   8.1.0-3build1                              all          An HTTP/1.1 Server Framework

root@sbl26-140:~# dpkg -l|grep mysql
ii  libdbd-mysql-perl                     4.033-1ubuntu0.1                           amd64        Perl5 database interface to the MySQL database
ii  libmysqlclient20:amd64                5.7.18-0ubuntu0.16.04.1                    amd64        MySQL database client library
ii  mysql-common                          5.7.18-0ubuntu0.16.04.1                    all          MySQL database common files, e.g. /etc/mysql/my.cnf

avec par défaut 'activer_agent_ocs' à "oui"

root@sbl26-140:~# cat /etc/cron.d/eole-ocs_nat

0 * * * * root PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin; /usr/bin/ocsinventory-agent -S remontees-ocs.e2.rie.gouv.fr -T "Serveur ESBL/production/ECO/OCS" -W 3600  &>/dev/null

les remontées sont effectives sur le serveur OCS national

~$ cat Téléchargements/export.csv 
Account info: TAG;Machine(s): Dernier contact;Machine(s): Dernier inventaire;Machine(s): Système;Machine(s): Type agent;Machine(s): Utilisateur;Machine;
Serveur ESBL/production/ECO;2017-07-13 08:04:48;2017-07-13 08:04:48;Ubuntu 16.04.2 LTS;OCS-NG_unified_unix_agent_v2.1.1;root;sbl26-140;

si on désactive les remontées vers le serveur national

root@sbl26-140:~# CreoleSet activer_agent_ocs non
root@sbl26-140:~# reconfigure

la tâche cron est bien supprimée

root@sbl26-140:~# cat /etc/cron.d/eole-ocs_nat
cat: /etc/cron.d/eole-ocs_nat: Aucun fichier ou dossier de ce type

(2) cas d'un esBl-2.6.2 sur lequel OCSinventory a été installé

apt-get install eole-mysql eole-web eole-esbl-ocs

root@sbl26-142:~# dpkg -l|grep ocs
ii  eole-esbl-ocs                         2.6.2-1                                    all          Templates et dictionnaires pour la configuration du paquet OCS Inventory EOLE
ii  eole-ocsinventory-agent               2.6.2-2                                    all          Templates, dictionnaire et scripts
ii  esbl-ocs                              2.6.2-1                                    all          Environnement d'inventaire/déploiement basé sur l'application OcsInventory.
ii  esbl-ocs-pkg                          2.6.2-1                                    all          Métapaquet pour l'installation de l'environnement d'inventaire sur les modules EOLE.
ii  ocsinventory-agent-pneedt             2.1.1-3                                    all          Hardware and software inventory tool (client)
root@sbl26-142:~# CreoleGet --list|grep ocs
activer_agent_ocs="oui" 
activer_ocsinventory="oui" 
ocs_contact_cron="0 * * * *" 
ocs_contact_tempo="3600" 
ocs_db_mode="default" 
ocs_download_dir="/data/applications/ocsinventory/" 
ocs_ipdiscover_ipd_dir="/data/applications/ocsinventory/" 
ocs_serveur_national="remontees-ocs.e2.rie.gouv.fr" 
test_ocsinventory="oui" 
(2-1) cas avec serveur ocs local activé
root@sbl26-142:~# CreoleGet activer_ocsinventory
oui
root@sbl26-142:~# cat /etc/cron.d/eole-ocs_nat 

0 * * * * root PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin; /usr/bin/ocsinventory-agent -S remontees-ocs.e2.rie.gouv.fr -T "Serveur ESBL/production/ECO/OCS" -W 3600  &>/dev/null

les remontées sont effectives sur le serveur OCS national

:~$ cat Téléchargements/export.csv 
Account info: TAG;Machine(s): Dernier contact;Machine(s): Dernier inventaire;Machine(s): Système;Machine(s): Type agent;Machine(s): Utilisateur;Machine;
Serveur ESBL/production/ECO;2017-09-04 11:08:55;2017-09-04 11:08:55;Ubuntu 16.04.3 LTS;OCS-NG_unified_unix_agent_v2.1.1;;sbl26-142;

si on désactive les remontées vers le serveur national

root@sbl26-142:~# CreoleSet activer_agent_ocs non
root@sbl26-142:~# reconfigure

la tâche cron est bien supprimée

root@sbl26-142:~# cat /etc/cron.d/eole-ocs_nat
cat: /etc/cron.d/eole-ocs_nat: Aucun fichier ou dossier de ce type

le serveur OCS local est de son coté toujours fonctionnel sur https://172.26.63.142/ocsreports

(2-2) cas avec serveur ocs local désactivé

root@sbl26-142:~# CreoleSet activer_ocsinventory non
root@sbl26-142:~# reconfigure 

le serveur OCS local n'est plus fonctionnel

The requested URL /ocsreports/ was not found on this server.

tâche cron du client ocs toujours active

root@sbl26-142:~# cat /etc/cron.d/eole-ocs_nat 

0 * * * * root PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin; /usr/bin/ocsinventory-agent -S remontees-ocs.e2.rie.gouv.fr -T "Serveur ESBL/production/ECO/OCS" -W 3600  &>/dev/null

et les remontées sur le serveur national fonctionnelles

root@sbl26-142:~# /usr/bin/ocsinventory-agent -S remontees-ocs.e2.rie.gouv.fr -T "Serveur ESBL/production/ECO/OCS" 
[info] No support detected. Registration key: N/A
[info] [download] Beginning work. I am 12584.
[info] [download] No more package to download.

mise à jour sur remontees-ocs.e2.rie.gouv.fr effectuée

#5 Updated by Emmanuel IHRY about 6 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100

Also available in: Atom PDF