You probably need a "super administrator" account, with "sadmin" in NEW_ACCESS VL, not "admin"...
Regards,
Bexounet.
OCS asks me to install the ZipArchive module to be able to work as this is done
sorry for my English
Bonjour,
Je suis Epoc.
Globalement ma question est porte sur deux points qui je pense sont en relation:
J'ai découvert OCS il y a quelque temps, mais la mise en place était assez compliquée, j'ai laissé tombé..
Puis je suis revenu à la charge, quelques mois plus tard, mais sur un serveur Linux (Debian 7), en utilisant LAMP...mon installation à fonctionner...mais j'ai effectué une mise à jour de l'OS, et mon serveur OCS à cessé de fonctionner... j'ai tout recommencé, mais je n'ai jamais effectué les MAJ de Debian...et depuis plus de 3 ans...
et tout fonctionne.
Premier point: les MAJ de l'OS sont elles recommandées sur un serveur Linux avec OCS.
Il y a 15 jours, j'ai remonter un autre serveur Linux, toujours Debian, mais cette fois j'ai fait toutes les MAJ, j'ai installé le version OCS 2.3, une fois arrivé sur la page web, j'ai constaté que la version 2.3.1 est dispo.
Deuxième point: quelle est la procédure pour effectuer la mise à jour ? Je peux la télécharger, et l'exécuter le setup à partir du /tmp comme pour l'installation d'origine ?
Ou existe-t-il une MAJ comme pour GLPI ? sans perdre la BD ?
Merci d'avance,
Cordialement,
Hi,
I just updated my OCS NG server (debian Jessie) from version 2.0.5 to the latest 2.3, everything went OK during update.
When i want to log in ocsreports i always get an invalid user or password message with every user, when I check the error apache logs, this only error occurs when I try to log in :
[Tue Aug 22 11:40:05.486848 2017] [:error] [pid 16151] [client XX.XX.XX.XX:XX] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/local.php on line 27, referer: https://XX.XX.XX/ocsreports/index.php
Can anyone tell me what's going wrong when trying to authenticate and how to fix it ?
The database is OK, I can see my users in the operator table and my hardware also. Communication server works fine, I see my clients contacting the server in the logs
Thank you for your replies
Bonjour OCS community,
Je viens de mettre en place ocs comme solution d'inventaire packagé sous eyes of netowrk 5.0 centos 7
D'où le serveur OCS est 2.2 ,un serveur SQL :MariaDB Server version 5.5.52-MariaDB,
un Serveur Web :Apache/2.4.6 (CentOS)
OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 avec le module mod_ssl bien installé
mod_ssl-2.4.6-45.el7.centos.4.x86_64
tout d'abord le ping depuis la machine client (où l'agent soit installé ) vers la machine serveur est bien faite ainsi que pas de firewall activés
Pour le moement on n'est pas appelé à utiliser https ou ssl donc une remontée est suffisante actuellement
j'ai installé OCSNG-Windows-Agent-2.0.5 sur une machine Windows 7 32 bits qui se trouve sous le meme réseau sans avoir définir une certificat cacert.pem (SSL=0) juste on mentionne l'adresse http du serveur
et voilà notre fichier .ini
[HTTP]
Server=http://192.168.42.100/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
concernant les paramétres de connexion à la base de donnés les paramétres de connexion du Serveur OCSNG avec comme Hote localhost,Base ocsweb,Utilisateur root ,Mot de passe root66 nous donne une Connexion à la base de données réussie Version et Configuration OCSNG valide
meme si on teste avec (user,pwd)(ocs ,ocs66) la connexion est toujours réussie
sous /etc/httpd/conf.d/ocsinventory-server.conf on a ceci
PerlSetEnv OCS_DB_HOST localhost
# Replace 3306 by port where running MySQL server, generally 3306
PerlSetEnv OCS_DB_PORT 3306
# Name of database
PerlSetEnv OCS_DB_NAME ocsweb
PerlSetEnv OCS_DB_LOCAL ocsweb
# User allowed to connect to database
PerlSetEnv OCS_DB_USER ocs
# Password for user
PerlSetVar OCS_DB_PWD ocs66
ainsi que cette requete sql nous donne
Grants for ocs@localhost |
+------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'ocs'@'localhost' IDENTIFIED BY PASSWORD '*9614222E086C90E6B4AB9A1966C60E2379EA5705' |
| GRANT ALL PRIVILEGES ON `ocsweb`.* TO 'ocs'@'localhost'
voilà le résultat des inventaires lancés
un extrait de journal d'évenement de windows pour OCS est
OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)
sous le serveur var/log/httpd/ j'aurais ce message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
sous C:\ProgramData\OCS Inventory NG\Agent et comme premier inventaire sans remontée voici le contenu du .log
Comme premier essai on a dans le fichier log
Starting OCS Inventory NG Agent on Friday, August 18, 2017 12:16:53.
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)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <380-INF-FARHAT-2015-04-17-16-33-03> and MACs <74:27:EA:55:89:2E> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without 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://192.168.42.100/ocsreports>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Prolog Frequency set to 10 hour(s)
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:05.
Puis nous avons relancé un deuxieme inventaire voici le message
Starting OCS Inventory NG Agent on Friday, August 18, 2017 13:06:49.
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
ERROR *** AGENT => Failed to send Prolog <Unsupported protocol>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
Team
This is the biggest nightmare I've ever experienced. I'm a Windows person and our Linux Server fell over. So having to rebuild the VM server and Ubuntu 16.04 and now up to the OCS Inventory installation.
I've spent 4 days trying to get this working
I gave up on Ubuntu the first time and tried Windows, but Windows didnt work either following these instructions but it had more errors than Microsoft could dream of.
http://wiki.ocsinventory-ng.org/index.php?title=Documentation:Server#Under_Windows_Operating_System.
Im using a 32bit Dell Server running Ubuntu 16.04.
I'm following these instructions which look very complete - but they dont work.
http://ask.ocsinventory-ng.org/4554/tutorial-ocs-on-ubuntu-16-04
Everything was going smooth uptil this part
sh setup.sh
The sh setup.sh appears to be running fine, but it keeps having errors.
I finally found some sort of log file ... /OCSNG_UNIX_SERVER-2.2/ocs_server_setup.log some how and it has these errors..
See screen shots.
Can someone help me please. Im lost without OCS here.
Can this still be installed and run on either windows or Ubuntu?? If so is there a complete step by step instruction on how to?? I thought it would be easy, but it seems impossible.
Thanks