Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

CENTOS 7 remonté d'inventaire impossible

Bonjour,

 

J'ai installer la dernière version d'OCS sur un linux Centos 7 grâce au tuto de remi collet.

Sur mes clients en windows 7, rien ne remonte. J'ai aucun inventaire je voie aucun pc sur mon serveur...

Sous windows, j'ai cette erreur dans les log agent: Failed to send Prolog <HTTP Status Code #504>

J'ai besoin d'aide car ça va faire 3 mois que j'essai de faire fonctionner tous un parc windows.. Enfin bref, la galère !

Petite précision: mon Centos 7 se trouve sur un esxi :)

 

D'avance, merci !!
in OCS Inventory NG server for Unix by (460 points)

12 Answers

0 votes
Bonjour,

Poste le contenu du fichier error_log d'apache.
by (90.4k points)
0 votes

Bonjour frankb merci pour cette réponse rapide !

Voici la fin du log:

[Tue Mar 24 13:54:13.502373 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655673 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 33, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655723 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 34, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655735 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655742 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655750 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655758 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first
[Tue Mar 24 13:54:13.655767 2015] [:error] [pid 2651] [client 10.44.2.70:61004] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.44.15.10/ocsreports/index.php?first

by (460 points)
0 votes
Comment est configuré le client ocs?

Poste la ligne server=
by (90.4k points)
0 votes
Server=http://10.44.15.10/ocsinventory
by (460 points)
0 votes
Pour test, augmente la valeur de Timeout dans le fichier httpd.conf. Redémarre apache ensuite, puis lance un inventaire.

Tiens-moi informer du résultat
by (90.4k points)
Ok je fais ça de suite ! la commande c'est bien ocsinventory-agent ? sans rien d'autre ?
je n'ai pas trouver de ligne avec un Timeout dans le fichier httpd.conf ni les fichier ocs dans conf.d
0 votes
J'ai chercher un peu et je pense que c'est bon pour le Timeout (j'ai ajouter Timeout 600 après serverRoot dans httpd.conf)

Toujours le même problème avec l'agent windows.

J'ai installer l'agent sous linux et la j'ai plusieurs problème:

[Tue Mar 24 16:50:52 2015][info] [download] Agent is running in local mod...disabling module

[Tue Mar 24 16:50:52 2015][error] [download] LWP::Protocol::https perl module is missing !!

[Tue Mar 24 16:50:52 2015][error] [download] Humm my prerequisites are not OK.. Disabling module :( :(

[Tue Mar 24 16:50:52 2015][info] Inventory saved in /var/lib/ocsinventory-agent/centocs-2015-03-24-08-42-14.ocs
by (460 points)
j'abandonne pour ce soir, je suis la dès demain 9h30 ! Merci pour ton aide ! A demain j'espère :)
0 votes
As tu pensé à ouvrir le firewall ? si ce n'est pas le cas, tape ces deux commandes :

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
by (22k points)
Pour les test j'ai carrément désactiver le firewall, du coup je l'ai réactiver et j'ai fais les 2 commandes. Merci

Par contre le problème reste le même :/
0 votes
Youpi !! Après une demi journée de recherche et d'essai j'ai résolu une partie de mon problème !

L'agent linux envoi enfin l'inventaire et il est visible dans mon interface web !

Comment j'ai fais ? ===> setenforce 0

SElinux.... désactiver et paf !

Plus que le problème avec Windows  à résoudre !
by (460 points)
0 votes
J'ai installer un autre système centos sur l'hyperviseur ou se trouve le serveur Centos, l'agent fonctionne donc soit c'est un problème avec windows, soit un problème a propos de l'hyperviseur ? J'installe un centos un pc a part et je vous dit quoi !!
by (460 points)
Ca fonctionne !! Donc le problème concerne windows..
0 votes
Bonjour

Merci de poster le contenu du fichier ocsinventory.log.
by (90.4k points)
 
Powered by Question2Answer
...