Pb Inventaire (GLPI/OCS Inventory NG) / Ubunt

Fermé
nouabi Messages postés 143 Date d'inscription lundi 5 juin 2006 Statut Membre Dernière intervention 16 juillet 2010 - 3 févr. 2009 à 05:32
 born2bzh - 30 avril 2010 à 10:10
Bonjour tout le monde,

J'ai installer GLPI et OCS Inventory sur un server Ubuntu.
GLPI marche tres bien, OCS aussi pour ce qui concerne l'interface :

Le proble c'est quand je m'attaque à l'inventaire :
J'ai fait un ocspackage.exe et je l'execute manuelement sur mon poste.

Voila le contenu de mon fichier [non_de_post].log :

OCS INVENTORY ver. 4050  Starting session for Device <[Nom_post_client]> on Tuesday, February 03, 2009 15:21:17...
Command line parameters: <</INSTALL /SERVER:[@server] /PNUM:80 /NP /DEBUG  /auth_user: /auth_pwd:>>

HTTP SERVER: Connection WITHOUT proxy
HTTP SERVER: Opening Internet connection to download <http://[@server]:80/ocsinventory/deploy/label>...ERROR: HTTP status code 500
HTTP SERVER: Closing HTTP connection...OK
WMI Connect: Trying to connect to WMI namespace root\cimv2 on device <Localhost>...OK.
Registry Connect: Trying to connect to HKEY_LOCAL_MACHINE on device <Localhost>...OK.
CHECKINGS: read <[Nom_post_client]-2009-02-03-15-12-00> and <[@MAC_Client]> in ocsinventory.dat
IpHlpAPI GetNetworkAdapters...
IpHlpAPI GetNetworkAdapters: Calling GetIfTable to determine network adapter properties...OK
IpHlpAPI GetNetworkAdapters: Calling GetAdapterInfo to determine IP Infos...OK
IpHlpAPI GetNetworkAdapters: OK (1 objects).
CHECKINGS: write <[Nom_post_client]-2009-02-03-15-12-00> and <[@MAC_Client]> in ocsinventory.dat
HTTP SERVER: Creating CInternetSession to get inventory parameters...OK.
HTTP SERVER: Getting HTTP Connection to server [@server] port 80 using no authentication...OK.
HTTP SERVER: Sending prolog query...ERROR: HTTP status code 500
HTTP SERVER: Closing HTTP connection
WMI Disconnect: Disconnected from WMI namespace.
Writing last inventory state not required.
Execution duration: 00:00:01.


Je pense que ca viens de la config d'apache mais le code HTTP 500 n'est pas très expliciete (Problème Interne ..)

Sinon, dans mon fichier download.log, j'ai cela :

C:\Program Files\OCS Inventory Agent	-	
OCS INVENTORY DOWNLOAD ver. 1
C:\Program Files\OCS Inventory Agent	-	Starting on Tuesday, February 03, 2009 15:34:38...
Command line parameters: <</INSTALL /SERVER:[IP_server] /PNUM:80 /NP /DEBUG  /auth_user: /auth_pwd:>>
C:\Program Files\OCS Inventory Agent	-	ERROR: Can't chdir to <C:\Program Files\OCS Inventory Agent\\download> folder
C:\Program Files\OCS Inventory Agent	-	End of work


Merci de votre aide tout le monde
Nouabi
A voir également:

3 réponses

J'ai eu la même erreur (erreur 500 "Permission denied: access to /ocsinventory/deploy/ocspackage.exe denied
" + erreur "Can't call method Rollback" dans var/log/apache2/error.log).

Résolu en vérifiant le mot de passe utilisé dans /etc/apache2/conf.d/z-ocsinventory-server.conf (j'avais changé le mot de passe par défaut pour user ocs de mysql)

# Password for user
#PerlSetVar OCS_DB_PWD ocs
PerlSetVar OCS_DB_PWD mot_de_passe
1
nouabi Messages postés 143 Date d'inscription lundi 5 juin 2006 Statut Membre Dernière intervention 16 juillet 2010 8
3 févr. 2009 à 07:05
De plus, voici les logs de apache2 access.log :

10.160.100.22 - - [03/Feb/2009:16:31:42 +1100] "GET /ocsinventory/deploy/label HTTP/1.0" 500 684 "-" "OCS-NG_windows_client_Oct 10 2008"
10.160.100.22 - - [03/Feb/2009:16:31:42 +1100] "POST /ocsinventory HTTP/1.1" 500 684 "-" "OCS-NG_windows_client_v4050"


Lors d'une tentative d'inventaire.
Le chemin : /var/www/ocsinventory/deploy/label n'existe pas sur mon serveur !
sur mon server, c'est /var/www/ocsreports/ et il n'y a pas de deploy apres ...

Alors que mon interface ne pointe pas vers le même dossier en plus : (ca, ca marche)

10.160.100.22 - - [03/Feb/2009:15:57:37 +1100] "GET /ocsreports/index.php?multi=21 HTTP/1.1" 200 2482 "http://10.160.100.110/ocsreports/index.php?multi=20" $
10.160.100.22 - - [03/Feb/2009:15:57:39 +1100] "GET /ocsreports/index.php?multi=20 HTTP/1.1" 200 3261 "http://10.160.100.110/ocsreports/index.php?multi=21" $
10.160.100.22 - - [03/Feb/2009:15:58:16 +1100] "GET /ocsreports/index.php?multi=21 HTTP/1.1" 200 2482 "http://10.160.100.110/ocsreports/index.php?multi=20" $
10.160.100.22 - - [03/Feb/2009:15:58:18 +1100] "GET /ocsreports/index.php?multi=34 HTTP/1.1" 200 2707 "http://10.160.100.110/ocsreports/index.php?multi=21" $


Ou puis-je configurer tout ca ... please ... Help me

Nouabi
0
nouabi Messages postés 143 Date d'inscription lundi 5 juin 2006 Statut Membre Dernière intervention 16 juillet 2010 8
9 févr. 2009 à 06:40
Personne n'a d'idée SVP ???
0
Bonjour,

J'ai moi aussi le même problème, et je ne sais pas ou chercher.

Si quelqu'un a une idée sa me dépannerais pas mal.

Merci d'avance
0