Bonjour,
avez-vous le fichier "uptime.conf" dans le dossier "/etc/ocsinventory-server/plugins/" du serveur ?
> Ce fichier est aussi important que Map.pm
Cordialement, Stéphane
Bonjour,
avez-vous le fichier "uptime.conf" dans le dossier "/etc/ocsinventory-server/plugins/" du serveur ?
> Ce fichier est aussi important que Map.pm
Cordialement, Stéphane
Hi, I hope you can help me, I've been looking for a solution for a week.
Install ocs inventory server 2.3.1 on a linux red-had server and everything goes well, but for the Apache to start, I have to delete the file z-ocsinventory-server.conf from the path / etc / httpd / conf. d /. If I leave this file, the Apache does not work and it generates this message:
Job for httpd.service failed because the control process exited with error code.
Hello frank
help my please...
https://ask.ocsinventory-ng.org/8185/red-hat-ocs-server-httpd-not-start-urgent-rpm
thank you...
Bonjour,
Je travaille sous Windows 2012 standard, avec OCSNG-Windows Server et xampp, mon problème est le suivant:
j'ai installé l'agent sur un poste manuellement pour teste la remontée de l'inventaire, mais malheureusement rien n'est affiché côté serveur. Lorsque j'ai vérifié le fichier log sur le poste client voici ce que je trouve :
Starting OCS Inventory NG Agent on Friday, November 24, 2017 15:42:47.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
et dans le fichier .ini l'url du serveur est correcte :
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://my_server_IP/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=1
User=1NvDrFSVUhkKCRmbz/oXLw==|||z1iaxPS0UDCS/zMmgTFjRKzbDOOEM2q7f0a1agsqElU=
Pwd=uRRQzYl/fLAcBmLiB0UK+Q==|||dC4feMi6/9MXdbfnyB1Evngd4gWpEyglU5HeohofNyU=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=120
INVENTORY_ON_STARTUP=0
Par contre lorsque j'essaie d'accéder à : http://my_server_IP/ocsinventory, l'erreur suivante est affichée:
L'URL demandée n'a pas pu être trouvée sur ce serveur. Si vous avez tapé l'URL à la main, veuillez vérifier l'orthographe et réessayer.
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter le webmestre.
my_server_IP
Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
Merci pour vos réponses
Bonjour,
Voici les caractéristiques du serveur :
Operating system
Software
Sur mon OCS reports les statistiques de déploiement disparaissent subitement lorsque le déploiement devient important. Plus aucunes statistique pour le paquet en cours de déploiement n'apparait.
D'où peut venir le problème? Quelles sont les pistes à observer?
Bien cordialement
Contexte :
- Server = OCSng 2.0.5 sur linux (SLES) en place depuis plusieurs années (1 seul server pour DB, invent & report ; déploy pas utilisé, uniquement inventaire)
- Clients = Agents Windows 2.0.5 sur plus de 5000 postes Windows7, opérationnels depuis plusieurs années
Pas de problème de contact du server (maj de l'info "dernier contact" normale), mais plus aucune remontée d'inventaire depuis 4 jours (dernier inventaire vendredi 24/11 à 08:05) sans qu'aucune modification coté server et postes n'ait eu lieu (en tout cas sur le server, la console de reporting étant elle utilisée quotidiennement ou presque).
L'interface de reporting semble totalement opérationnelle (y compris interface GLPI)
sur le server le log d'activité nous donne les infos suivantes
...
Mon Nov 27 15:41:42 2017;3665;311;P161294-2016-11-22-10-28-00;172.28.83.136;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:42 2017;3349;100;C145573-2017-11-20-15-02-28;172.17.19.47;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:42 2017;3349;311;C145573-2017-11-20-15-02-28;172.17.19.47;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:42 2017;3343;319;P140408-2014-10-03-08-38-43;172.28.15.21;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;found
Mon Nov 27 15:41:42 2017;3343;104;P140408-2014-10-03-08-38-43;172.28.15.21;OCS-NG_WINDOWS_AGENT_v2.0.5.0;inventory;incoming
Mon Nov 27 15:41:42 2017;3343;515;P140408-2014-10-03-08-38-43;172.28.15.21;OCS-NG_WINDOWS_AGENT_v2.0.5.0;end;error
Mon Nov 27 15:41:43 2017;3667;100;P170491-2017-06-14-08-20-58;172.28.77.176;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:43 2017;3667;311;P170491-2017-06-14-08-20-58;172.28.77.176;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:43 2017;3525;100;G175937-2017-03-16-12-22-44;172.19.252.21;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:43 2017;3525;311;G175937-2017-03-16-12-22-44;172.19.252.21;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:44 2017;3533;319;P160887-2016-10-20-08-55-59;172.28.14.18;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;found
Mon Nov 27 15:41:44 2017;3533;104;P160887-2016-10-20-08-55-59;172.28.14.18;OCS-NG_WINDOWS_AGENT_v2.0.5.0;inventory;incoming
Mon Nov 27 15:41:44 2017;3533;515;P160887-2016-10-20-08-55-59;172.28.14.18;OCS-NG_WINDOWS_AGENT_v2.0.5.0;end;error
Mon Nov 27 15:41:44 2017;3666;100;P080317-2009-06-16-16-37-01;172.28.49.18;OCS-NG_WINDOWS_AGENT_v2.0.4.0;prolog;accepted
Mon Nov 27 15:41:44 2017;3666;311;P080317-2009-06-16-16-37-01;172.28.49.18;OCS-NG_WINDOWS_AGENT_v2.0.4.0;session;started
Mon Nov 27 15:41:44 2017;3690;100;P140555-2014-11-04-12-29-53;172.28.34.129;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:44 2017;3690;311;P140555-2014-11-04-12-29-53;172.28.34.129;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:44 2017;3682;100;P150330-2015-08-25-14-34-54;172.28.68.123;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:44 2017;3682;311;P150330-2015-08-25-14-34-54;172.28.68.123;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:45 2017;3665;100;P161040-2016-11-15-11-33-29;172.28.45.120;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:45 2017;3665;311;P161040-2016-11-15-11-33-29;172.28.45.120;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
Mon Nov 27 15:41:46 2017;3349;100;P150446-2015-10-21-13-20-07;172.28.41.48;OCS-NG_WINDOWS_AGENT_v2.0.5.0;prolog;accepted
Mon Nov 27 15:41:46 2017;3349;311;P150446-2015-10-21-13-20-07;172.28.41.48;OCS-NG_WINDOWS_AGENT_v2.0.5.0;session;started
...
Côté poste, le log de l'agent nous donne
==============================================================================
Starting OCS Inventory NG Agent on Monday, November 27, 2017 13:29:29.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support registered for your installation. Check OCS Inventory NG support packages at http://www.ocsinventory-ng.com
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Communication Server ask for Registry Query
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
ERROR *** AGENT => Failed to send Inventory<HTTP Status Code #500>
AGENT => Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:22.
==============================================================================
Une injection d'inventaire depuis l'interface de reporting donne également une erreur 500
Auriez vous une idée sur la source du problème, le moyen d'obtenir des détails sur son origine, des logs à analyser, des tests à effectuer, une piste de recherche ...
Par avance Merci
Hello everyone,
I'm trying to install a new OCS server for my company but a have some problems.
I installed a Unix Server 2.3.1 in a CentOS, here is my server information.
Software
No problems to come here, but when i try to connect a client with the server i get this problem:
Starting OCS Inventory NG Agent on Tuesday, November 28, 2017 11:34:39.
AGENT => Running OCS Inventory NG Agent Version 2.3.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.3.1.1
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.1.1>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <XXXXX 2017-11-27-14-38-30> and MACs <XXXXX> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL <http://XXX.XX.XX.XX/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
I try to read about this error but no solution work for me.
This is my apache log:
[Tue Nov 28 12:05:02.135486 2017] [:error] [pid 20380] [client 172.25.18.12:6
3923] PHP Warning: mysqli_connect(): Headers and client library minor versio
n mismatch. Headers:50556 Library:50638 in /usr/share/ocsinventory-reports/oc
sreports/require/function_commun.php on line 160, referer: http://172.25.17.4
7/ocsreports/index.php?function=debug&head=1
[Tue Nov 28 12:05:02.138384 2017] [:error] [pid 20380] [client 172.25.18.12:6
3923] PHP Warning: mysqli_connect(): Headers and client library minor versio
n mismatch. Headers:50556 Library:50638 in /usr/share/ocsinventory-reports/oc
sreports/require/function_commun.php on line 160, referer: http://172.25.17.4
7/ocsreports/index.php?function=debug&head=1
[Tue Nov 28 12:09:29.816905 2017] [mpm_prefork:notice] [pid 20375] AH00171: G
raceful restart requested, doing restart
[Tue Nov 28 12:09:29.946414 2017] [alias:warn] [pid 20375] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 23 will pro
bably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946445 2017] [alias:warn] [pid 20375] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 102 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946451 2017] [alias:warn] [pid 20375] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 120 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946783 2017] [auth_digest:notice] [pid 20375] AH01757: g
enerating secret for digest authentication ...
[Tue Nov 28 12:09:29.947525 2017] [lbmethod_heartbeat:notice] [pid 20375] AH0
2282: No slotmem from mod_heartmonitor
[Tue Nov 28 12:09:29.963328 2017] [mpm_prefork:notice] [pid 20375] AH00163: A
pache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Tue Nov 28 12:09:29.963340 2017] [core:notice] [pid 20375] AH00094: Command
line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Nov 28 12:09:49.400414 2017] [mpm_prefork:notice] [pid 20375] AH00170: c
aught SIGWINCH, shutting down gracefully
[Tue Nov 28 12:09:50.490253 2017] [suexec:notice] [pid 20592] AH01232: suEXEC
mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 28 12:09:50.531537 2017] [alias:warn] [pid 20592] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 23 will pro
bably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.531578 2017] [alias:warn] [pid 20592] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 102 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.531586 2017] [alias:warn] [pid 20592] AH00671: The Alias
directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 120 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.532011 2017] [auth_digest:notice] [pid 20592] AH01757: g
enerating secret for digest authentication ...
[Tue Nov 28 12:09:50.533131 2017] [lbmethod_heartbeat:notice] [pid 20592] AH0
2282: No slotmem from mod_heartmonitor
[Tue Nov 28 12:09:50.560165 2017] [mpm_prefork:notice] [pid 20592] AH00163: A
pache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Tue Nov 28 12:09:50.560190 2017] [core:notice] [pid 20592] AH00094: Command
line: '/usr/sbin/httpd -D FOREGROUND'
I'm only trying with one client(172.25.18.32), but the IP is not the same like the apache log (172.25.18.12)
Any idea to solved it?
Thanks.
Merci Frank pour la réponse
Je vous confirme qu'il s'agissait bien d'un problème lié au champ ID de la table Software ...
... nous l'avons compris hier soir après avoir réussi à injecter un inventaire sans software.
Par contre, je ne comprends pas la solution que vous proposez (d'autres discussions du forum donne d'ailleurs la même info) car nous avons du faire exactement le contraire pour régler le problème ...
... en effet, par défaut le champ ID est un INT "standard" et pour régler le problème nous avons dû passer le champ ID en INT non signé.
- avant modif : `ID` int(11) NOT NULL auto_increment => min = -2147483648 & max = 2147483647
- après modif : `ID` int(11) unsigned NOT NULL auto_increment => min = 0 & max = 4294967295
Petites questions complémentaires :
1) ce problème est il réglé par les versions plus récentes d'OCSng (nous comptons évoluer en 2018) ?
2) sinon, y'a t'il une solution plus pérenne à mettre en oeuvre (on atteindra un jour ou l'autre le nouveau max) ?