Quantcast
Channel: Ocsinventory Q&A - Recent questions
Viewing all 4375 articles
Browse latest View live

HDD / SSD search for all computers

$
0
0
How can I find in the admin view which computer have HDD or SSD? I tried to find at inventory - search with various criteria -, but not able to choose the parameter where exactly get the correct results. Thanks!

How to generate encrypted password in win agent?

$
0
0
Hi devs,

I've enabled AUTH basic in apache, and now i found that I need to run the agent setup exe in order to generate a correct encrypted password into the ocsinventory.ini file.

Can I generate the username & password by other methods (like linux command line) without running the agent setup again?

Thanks.

Problem with deployment help

$
0
0
i have a several problem.

When i recibe a package from my server all goes Okay but i can't really found this package anywhere.

Logs says Ok, server seys sucess but i don't know where is this package i save.

Problem with multi-criteria search

$
0
0

Hello,

We have a problem with the multi-criteria search, in particular with the "Machines not seen in more than 5 day(s)" information displayed at the top of the Welcome page.

Using the DEBUG mode, we can see the SQL syntax used for this request (as of today January 23rd ) is the following:

SELECT SQL_CALC_FOUND_ROWS hardware.ID AS hardwareID , hardware.DEVICEID AS hardwareDEVICEID , hardware.NAME AS hardwareNAME , hardware.WORKGROUP AS hardwareWORKGROUP , hardware.USERDOMAIN AS hardwareUSERDOMAIN , hardware.OSNAME AS hardwareOSNAME , hardware.OSVERSION AS hardwareOSVERSION , hardware.OSCOMMENTS AS hardwareOSCOMMENTS , hardware.PROCESSORT AS hardwarePROCESSORT , hardware.PROCESSORS AS hardwarePROCESSORS , hardware.PROCESSORN AS hardwarePROCESSORN , hardware.MEMORY AS hardwareMEMORY , hardware.SWAP AS hardwareSWAP , hardware.IPADDR AS hardwareIPADDR , hardware.DNS AS hardwareDNS , hardware.DEFAULTGATEWAY AS hardwareDEFAULTGATEWAY , hardware.ETIME AS hardwareETIME , hardware.LASTDATE AS hardwareLASTDATE , hardware.LASTCOME AS hardwareLASTCOME , hardware.QUALITY AS hardwareQUALITY , hardware.FIDELITY AS hardwareFIDELITY , hardware.USERID AS hardwareUSERID , hardware.TYPE AS hardwareTYPE , hardware.DESCRIPTION AS hardwareDESCRIPTION , hardware.WINCOMPANY AS hardwareWINCOMPANY , hardware.WINOWNER AS hardwareWINOWNER , hardware.WINPRODID AS hardwareWINPRODID , hardware.WINPRODKEY AS hardwareWINPRODKEY , hardware.USERAGENT AS hardwareUSERAGENT , hardware.CHECKSUM AS hardwareCHECKSUM , hardware.SSTATE AS hardwareSSTATE , hardware.IPSRC AS hardwareIPSRC , hardware.UUID AS hardwareUUID , hardware.ARCH AS hardwareARCH , hardware.CATEGORY_ID AS hardwareCATEGORY_ID FROM hardware WHERE hardware.LASTCOME < 'str_to_date(01/18/2019 12:00, \'%m/%d/%Y %H:%i\')' GROUP BY hardware.id order by hardwareDEVICEID asc limit 0 , 10

The error returned for this request is :

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 3

Our setup is the following:

Software

  • PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 7.2.14
  • Apache/2.4.6 (CentOS) PHP/7.2.14 mod_perl/2.0.10 Perl/v5.16.3
  • MariaDB Server version 5.5.60-MariaDB
  • 2.5

                                                                                               

Could you please help us in troubleshooting this issue ?

Thanks in advance !

Best regards,

Yann

Administrative Data - Datetimepicker - 1970

$
0
0

Hi,

i have create a new data (

Plugins crashed my server

$
0
0
Hi,

I`ve installed 2 plugins ( winusers and bitlocker ) and after extract them to the extensions folder and install them via browser, i keep getting a blank page for everything. already tried to reboot the machine and restart the services but no good. the plugins sucesfully installed but now i cant use OCS server. i just hit the login page and when i log in is a blank page and i followed everything your tutorial said.

Please advise

Thanks

"All Software" list shows wrong versions

$
0
0

There seems to be a problem with the "All Software" list in version 2.6RC:

According to the list, only 5 computers of 226 computers do have "AnyDesk" version 4.3.0 installed:

If I click on the 5 hits I get these computers listet:

If I do a crosscheck by opening a computer that is not on this list, i get:

In fact the version is installed on almost every computer but OCS does show the correct version only in the computer object details....

Known bug?

automate the deletion of old inventories

$
0
0

Hello, I'm using version 2.5 of OCS on a server with CentOS 7, we need to enable the INVENTORY_VALIDITY option so that old inventories are automatically deleted, but this option is grayed out and can not be enabled. How do I enable or if there is another option that I can automate the deletion of old inventories tell me how I should do it. Thank you.


Alter the Charset to utf8 could crash de OCS bd?

$
0
0
Hi people,

I had change the Charset configuration, because when I get by html the softwares names, some special characters don't show as I need.

Now, when a windows agent try to communicate to ocs-server can't change the data! How to fix this problem? what is the default charset to read the inventories?

My ocs server is installed on CentOS 7

HTTP console don't reachable after update

$
0
0
Hello to everyone,

today I updated my version of OCS inventory NG installed on Linux CentOS server, since I updated the server, procedure that seems to have been successful, I can no longer reach the http: \\ IP_server \ ocsreports page, as if the service was off, apache I checked the service correctly httpd service is up and running, php also and both are updated to the latest version, what can I check to see where the problem is?

MAY I INSTALL ANOTHER OCS-SERVER ?

$
0
0
Hi guys!

I need to install another ocs server, but I don't know if I will need to reinstall the agents on the clients, even I use the same IP adrress.

Could you help me?

Agent info between networks

$
0
0
Greets,

I've a OCS server to collect info about computers in my school. I've got a diferent network in one classroom and teacher's PC makes NAT to routing to the other network (it's the router of the classroom).

When i install ocs agent in one PC of the classroom they sent info to server, but when i install next one it's info substitutes before one and i just can collect info of one of them...

Thetre's any way to collect info of all of them although there's a router in the middle?

PCs have got a Debian 9 installation (even teacher PC/router)

Thanks

Je n'arrive pas a lier mon agent ocs à mon serveur

$
0
0
Bonjour,

Je viens de procéder a l'installation de mon serveur OCS inventory qui est donc en 2.5, j'ai réaliser sont installation tout a l'air d'être ok de ce coté j'ai mon serveur sur un vhost qui est sur le port 82, j'accède bien a l'interface web d'OCS mais je n'arrive pas a faire remonter l'inventaire d'un pc sur le visuel de l'interface web.

Je ne sais pas de quelle informations avais vous besoin pour savoir d'ou peux provenir le problème.

Il m'a bien créer toutes les tables dans la base de données etc...

J'ai juste un soucis je pense c'est au niveau du nom de mon serveur OCS puisque j'utilise le port 82 j'ai donc mit dans l'url au niveau de l'agent http://monip:82/ocsinventory

J'ai aussi essayer sans le port mais rien n'y fait je n'ai aucun retour d'inventaire.

Virtual IP Linux Client doesn't show in Inventory

$
0
0

Hi,

in a linux client (centOS 7) i have one physical network with 2 Virtual IP address configured on it:

ls ifcfg-*

ifcfg-ens33  (physical 192.168.175.129)

ifcfg-ens33:1  (virtual 192.168.175.140)

ifcfg-ens33:2  (virtual 192.168.175.150)

ifcfg-ens37 (physical 192.168.175.130)

In the main page of ocs inventory frontend (administrative data) I can see the 3 IP address

192.168.175.129 / 192.168.175.140 / 192.168.175.150 

I found IT in the XML under HARDWARE--> IPADDR

<IPADDR>::1/1/192.168.175.129/192.168.175.140/192.168.175.150/fe80::878b:c02e:ca49:d96c//192.168.175.130/fe80::745e:9f1b:f01e:bb5c/</IPADDR>

But in the Network TAB I see only ens33 and ens37 physical Interface with only the IP of the physical Network (192.168.175.129 and 192.168.175.130).

I need to inventory all the IP address (both physical and virtual). Is there any way?

Client: ocsinventory-agent-2.4.0-1.el7.ocs.x86_64

Server: ocsinventory-server-2.4.1-1.el7.ocs.noarch

Many thanks

Office Plugin error

$
0
0

While installing office plugin I get following error: 

"ERROR: check if Map.pm and [pluginName].conf exist


500 Internal Server Error - mysql OK

$
0
0

Bonjour,

Je suis en train d'installer en ce moment OCS pour faire remonter un parc informatique pour ensuite pouvoir m'en servir avec l'application GLPI.

J'ai suivi dans les grandes lignes le tutoriel suivant :

https://anthonyducamps.wordpress.com/2017/03/20/installation-de-ocs-glpi/

Après la mise en place de la partie serveur de OCS, j'ai tenté la communication d'un poste client vers le lien : http://<adresse_ip_serveur_ocs>/ocsinventory
Je me retrouve avec le message suivant :



J'ai donc vérifié ce que j'avais défini pour l'accès à la base ocs dans le fichier z-ocsinventory-server.conf et dbconfig.inc.php. Mes informations sont bien définis. J'ai vérifié également, je peux me connecter en MySQL sur la base avec le nom d'utilisateur et le mot de passe qui a été défini dans ces fichiers.
Après la tentative d'ouverture du lien http://<adresse_ip_serveur_ocs>/ocsinventory; si je fais un tail de mon fichier /var/log/apache2/error.log, je me retrouve avec les erreur suivantes :

DBD::mysql::dr connect warning:  at /usr/share/perl5/Apache/DBI.pm line 213.
[Thu Feb 07 11:48:05.763869 2019] [perl:error] [pid 13911] [client xx] Can't call method "rollback" on an undefined value at /usr/local/share/perl/5.24.1/Apache/Ocsinventory/Server/System.pm line 282.\n

Savez-vous d'où cela peut venir ?

Merci d'avance

L'agent ne remonte pas de donnée

$
0
0

Bonjour, 

Je viens de remettre en place un serveur OCS avec la dernière version et je il n'y a aucune donnée qui est remonté dans la base.

J'ai activé les logs mysql et je l'ai trouvé bizarre car il n'y a aucune insertion.

Voici le OCSInventory.ini : 

==============================================================================

Starting OCS Inventory NG Agent on Thursday, February 07, 2019 16:21:29.

AGENT => Running OCS Inventory NG Agent Version 2.4.0.0

AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0

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.4.0.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <MROBINNE-2019-02-06-12-19-25> and MACs <DC:4A:3E:4F:F4:4A0A:00:27:00:00:0A> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>

COM SERVER => Sending HTTP Post request to URL <http://192.168.1.35/ocsreports/>

COM SERVER => HTTP Post response received <HTTP Status Code #200>

COM SERVER => Cleaning cURL library

================= TRACE START ===============

================= TRACE STOP ===============

AGENT => Prolog successfully sent

AGENT => Prolog Frequency set to 10 hour(s)

AGENT => Inventory on startup option set to  

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

Log mysql : 

2019-02-07T15:09:17.950354Z       223 Query     SHOW COLUMNS FROM printers

2019-02-07T15:09:17.951009Z       223 Query     SHOW COLUMNS FROM prolog_conntrack

2019-02-07T15:09:17.951576Z       223 Query     SHOW COLUMNS FROM regconfig

2019-02-07T15:09:17.952155Z       223 Query     SHOW COLUMNS FROM registry

2019-02-07T15:09:17.952744Z       223 Query     SHOW COLUMNS FROM registry_name_cache

2019-02-07T15:09:17.953289Z       223 Query     SHOW COLUMNS FROM registry_regvalue_cache

2019-02-07T15:09:17.953871Z       223 Query     SHOW COLUMNS FROM repository

2019-02-07T15:09:17.954569Z       223 Query     SHOW COLUMNS FROM saas

2019-02-07T15:09:17.955165Z       223 Query     SHOW COLUMNS FROM saas_exp

2019-02-07T15:09:17.955720Z       223 Query     SHOW COLUMNS FROM sim

2019-02-07T15:09:17.956323Z       223 Query     SHOW COLUMNS FROM slots

2019-02-07T15:09:17.956959Z       223 Query     SHOW COLUMNS FROM snmp

2019-02-07T15:09:17.957623Z       223 Query     SHOW COLUMNS FROM snmp_accountinfo

2019-02-07T15:09:17.958168Z       223 Query     SHOW COLUMNS FROM snmp_blades

2019-02-07T15:09:17.958710Z       223 Query     SHOW COLUMNS FROM snmp_cards

2019-02-07T15:09:17.959340Z       223 Query     SHOW COLUMNS FROM snmp_cartridges

2019-02-07T15:09:17.959920Z       223 Query     SHOW COLUMNS FROM snmp_communities

2019-02-07T15:09:17.960510Z       223 Query     SHOW COLUMNS FROM snmp_computers

2019-02-07T15:09:17.961048Z       223 Query     SHOW COLUMNS FROM snmp_cpus

2019-02-07T15:09:17.961617Z       223 Query     SHOW COLUMNS FROM snmp_drives

2019-02-07T15:09:17.962234Z       223 Query     SHOW COLUMNS FROM snmp_fans

2019-02-07T15:09:17.962840Z       223 Query     SHOW COLUMNS FROM snmp_firewalls

2019-02-07T15:09:17.963431Z       223 Query     SHOW COLUMNS FROM snmp_inputs

2019-02-07T15:09:17.963995Z       223 Query     SHOW COLUMNS FROM snmp_laststate

2019-02-07T15:09:17.964840Z       223 Query     SHOW COLUMNS FROM snmp_loadbalancers

2019-02-07T15:09:17.965410Z       223 Query     SHOW COLUMNS FROM snmp_localprinters

2019-02-07T15:09:17.965951Z       223 Query     SHOW COLUMNS FROM snmp_memories

2019-02-07T15:09:17.966505Z       223 Query     SHOW COLUMNS FROM snmp_mibs

2019-02-07T15:09:17.967129Z       223 Query     SHOW COLUMNS FROM snmp_modems

2019-02-07T15:09:17.967706Z       223 Query     SHOW COLUMNS FROM snmp_networks

2019-02-07T15:09:17.968481Z       223 Query     SHOW COLUMNS FROM snmp_ports

2019-02-07T15:09:17.969045Z       223 Query     SHOW COLUMNS FROM snmp_powersupplies

2019-02-07T15:09:17.969641Z       223 Query     SHOW COLUMNS FROM snmp_printers

2019-02-07T15:09:17.970234Z       223 Query     SHOW COLUMNS FROM snmp_softwares

2019-02-07T15:09:17.970806Z       223 Query     SHOW COLUMNS FROM snmp_sounds

2019-02-07T15:09:17.971362Z       223 Query     SHOW COLUMNS FROM snmp_storages

2019-02-07T15:09:17.971980Z       223 Query     SHOW COLUMNS FROM snmp_switchinfos

2019-02-07T15:09:17.972534Z       223 Query     SHOW COLUMNS FROM snmp_switchs

2019-02-07T15:09:17.973163Z       223 Query     SHOW COLUMNS FROM snmp_trays

2019-02-07T15:09:17.973731Z       223 Query     SHOW COLUMNS FROM snmp_videos

2019-02-07T15:09:17.974296Z       223 Query     SHOW COLUMNS FROM snmp_virtualmachines

2019-02-07T15:09:17.974907Z       223 Query     SHOW COLUMNS FROM software_categories

2019-02-07T15:09:17.975414Z       223 Query     SHOW COLUMNS FROM software_category_exp

2019-02-07T15:09:17.975995Z       223 Query     SHOW COLUMNS FROM softwares

2019-02-07T15:09:17.976690Z       223 Query     SHOW COLUMNS FROM softwares_name_cache

2019-02-07T15:09:17.977249Z       223 Query     SHOW COLUMNS FROM sounds

2019-02-07T15:09:17.977874Z       223 Query     SHOW COLUMNS FROM ssl_store

2019-02-07T15:09:17.978436Z       223 Query     SHOW COLUMNS FROM storages

2019-02-07T15:09:17.979080Z       223 Query     SHOW COLUMNS FROM subnet

2019-02-07T15:09:17.979580Z       223 Query     SHOW COLUMNS FROM tags

2019-02-07T15:09:17.980121Z       223 Query     SHOW COLUMNS FROM temp_files

2019-02-07T15:09:17.980799Z       223 Query     SHOW COLUMNS FROM usbdevices

2019-02-07T15:09:17.981392Z       223 Query     SHOW COLUMNS FROM videos

2019-02-07T15:09:17.981978Z       223 Query     SHOW COLUMNS FROM virtualmachines

2019-02-07T15:09:17.984725Z       223 Query     select NAME,IVALUE,TVALUE,COMMENTS from config where NAME in  (  'PASSWORD_VERSION' )

2019-02-07T15:09:17.985196Z       223 Query     select NAME,IVALUE,TVALUE,COMMENTS from config where NAME in  (  'CUSTOM_THEME' )

2019-02-07T15:09:17.985506Z       223 Query     select NAME,IVALUE,TVALUE,COMMENTS from config where NAME in  (  'CUSTOM_THEME' )

2019-02-07T15:09:17.985810Z       223 Query     select NAME,IVALUE,TVALUE,COMMENTS from config where NAME in  (  'CUSTOM_THEME' )

2019-02-07T15:09:17.987060Z       223 Quit

2019-02-07T15:09:17.987070Z       222 Quit

Les logs apache me remonte une 200 comme le log de l'agent, le module perl est bien activé et il n'y a pas d'erreur qui est remonté (je ne l'ai pas mis en verbeux).

Merci d'avance pour toute aide !

Peace !

sort Database by winsat score

OCS agent ne remonte rien sur le serveur OCS

$
0
0
Bonjour à tous,

information sur mon environnement :

j'ai un serveur xubuntu (4.15.0-43-generic) sur lequel j'ai installé la dernière version de OCS inventory (version 2.2 ? sans certitude car je ne trouve pas la commande me permettant de faire afficher clairement  ma version d'OCS inventory. Je sais juste que si je lance un apt-get install ocsinventory-server, il me dit que la version est la plus récente (2.2++dfsg-0.1))

Logiciel Version de PHP :5.6.36-1+ubuntu17.10.1+deb.sury.org+1 (apache2handler)

Serveur Web : Apache/2.4.29 (Ubuntu)

Serveur SQL : (Ubuntu) version 5.7.25-0ubuntu0.18.04.2

Je lance un OCS agent 2.4.0.0 sur un PC windows. L'inventaire ne remonte pas sur le serveur OCS.

contenu du ocsinventory.ini :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.1.52/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=0
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10

contenu du  OCSinventory log :

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 11, 2019 09:29:41.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
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.4.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <DESKTOP-COSS3QV-2019-01-18-15-38-06> and MACs <4C:ED:FB:3D:FE:F7> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.52/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 11, 2019 09:30:30.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
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.4.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <DESKTOP-COSS3QV-2019-01-18-15-38-06> and MACs <4C:ED:FB:3D:FE:F7> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.52/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

je vois bien qu'il y a un Failed to send Prolog <HTTP Status Code #500> mais je ne sais pas comment le résoudre.
A votre disposition si besoin de plus d'info.
D'avance merci pour votre aide.
Cordialement,

AGENT => Failed to send Prolog

$
0
0

Bonjour, je viens d'installer ocs inventory voici la config

  • Distribution : Debian GNU/Linux 9 (stretch)
  • Version de PHP :7.0.33
  • Serveur Web :Apache/2.4.25 (Debian)
  • Serveur SQL :Debian 9.6 version 10.1.37-MariaDB-0+deb9u1
  • Version OCSReports:2.6RC

J'ai un problème avec le certificat SSL, les informations de la machine ne remontent pas sur ocs :
ERROR *** AGENT => Failed to send Prolog <SSL peer certificate or SSH remote key was not OK>

Pour créer mon certificat, j'ai fait les commandes :

openssl genrsa -out server.key 2048

openssl req -new -key server.key -out server.csr

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

D'après les forums d'aide, il faut faire attention au CN, j'ai donc mis "ocs.avec le nom de mon domaine"

Ma machine se nomme ocs, et l'entrée dns est ocs avec l'ip correspondante.

J'ai ensuite renommé le fichier server.crt en cacert.pem que j'ai placé dans le fichier etc/ssl/certs

J'ai ensuite modifié la config du site ocs en renseignant les informations SSL en rajoutant ces 2 lignes :

SSLCertificateFile      /etc/ssl/certs/cacert.pem
SSLCertificateKeyFile   /etc/ssl/server.key

J'ai récupérer le fichier cacert.pem que je charge dans ocspackager avec l'agent et les informations relatives au serveur. Mais j'obtiens donc le message d'erreur ERROR *** AGENT => Failed to send Prolog <SSL peer certificate or SSH remote key was not OK>

La remontée d'inventaire ne fonctionne que si je sélectionne l'installation de l'agent sans ce fameux cacert.pem

Avez vous une idée ?

Merci par avance pour votre aide

Viewing all 4375 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>