zorro2014
Goto Top

Softwareverteilung mit OCS-Inventory

Hallo Zusammen,

ich habe vor Kurzem OCS-Inventory für die Inventarisierung der Rechner aber vor allem zur Softwareverteilung (Firefox, Acrobat Reader, Flashpayer oder Java) entdeckt, den Server installiert und die Fehlermeldungen nach dem Video https://www.youtube.com/watch?v=E_XAc9pOvTU alle Fehlermeldungen beseitigt. Dann habe ich in der ocsinventory-server.conf die Werte für PerlSetEnv OCS_DB_USER und PerlSetVar OCS_DB_PWD angepasst.

Subnetmaske verwalten
Subnetz-Name (IP-Bereich): XXXXX
ID: local

IP-Adesse 192.1.2.0
Maske: 255.2155.255.0

Nun habe ich den Agenten mit OCS-NG-Agent-Deployment-Tool-Setup.exe erfolgreich verteilt und die cacert.pem in den Ordner c:\ProgramData\OCS Inventory NG\Agent\ kopiert, welche ich aus c:\xampp\apache\conf\ssl.crt\server.crt habe. Die Inventarisierung funktioniert mit SSL=0 und SSL=1 einwandfrei. Ich habe auch extension=php_openssl.dll in der php.ini aktiviert und in der Konfiguration Software-Verteilung

DOWNLOAD_URI_FRAG auf http://OCS-Server/download und DOWNLOAD_URI_INFO auf https://OCS-Server/download geändert.
Achtung: Hier ist es bessser statt des Alias die IP-Adresse erinzutragen. Dann tritt ist auch die Warnung (A) nicht mehr auf.

Nun habe ich nach dem Video https://www.youtube.com/watch?v=2zHLigI24Ms ein Paket für den AdbeRdr11009_de_DE.exe sowohl als Aktion Ausführen als auch Starten erstellt. Hierzu habe ich die Zip-Datei mit 7Zip "nur speichern" erstellt. Beim manuellen Aktivieren des Pakets tritt ein Fehler auf.

Warnung (A): Kann folgende Informations-Datei nicht finden: https://OCS-Server/download/1415694156/ ===> BEHOBEN.

Ich habe das Paket dennoch aktiviert und mit "benutzerdefiniert" einen PC durch "Paket hinzufügen" hinzugefügt. Nach einer Weile erscheint der rote Punkt und es steht "Status: NOTIFIED (Tue Nov 11 09:27:07 2014)"

Hier ein Auszug aus der Log-Datei mit mit SSL=1:
Starting OCS Inventory NG Agent on Wednesday, November 12, 2014 11:45:02.
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)
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) succesfully 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.1.1.1>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <SEKRETARIAT-PC-2014-11-04-14-09-05> and MACs <D4:BE:D9:9B:AC:2E> 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 => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://ocs-server/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent

COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1415694156> is located at <https://OCS-Server/download/1415694156/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending fileGet request to URL <https://OCS-Server/download/1415694156/info>
WARNING * COM SERVER => Failed to send HTTP Get request <SSL peer certificate or SSH remote key was not OK>
COM SERVER => Cleaning cURL library
ERROR
* DOWNLOAD => Failed to download Metadata file <https://OCS-Server/download/1415694156/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1415694156\info>
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:46.

Wie kann ich den Error " DOWNLOAD => Failed to download Metadata file ..." beseitigen und was bedeutet die Warnung oben "WARNUNG: Kann folgende Informations-Datei nicht finden: https://OCS-Server/download/1415694156/; ???
Die Warung COM SERVER ... triff bei SSL=0 nicht auf.

Dann kommt folgende Meldung in der Log-Datei:
AGENT => Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1415694156> is located at <https://OCS-Server/download/1415694156/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending fileGet request to URL <https://OCS-Server/download/1415694156/info>
COM SERVER => fileGet response received <HTTP Status Code #400>
COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <https://OCS-Server/download/1415694156/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1415694156\info>
DOWNLOAD => Download and setup tool successfully started

Zusatzfragen:
1. Kann man irgendwie die Log-Dateien vom Client am auf der HTML-Oberfläche sehen? Dazu müsste die Datei nach der Inventarisierung (ähnlich wie die Verteilung der Softwarepakete) vom Client-Agenten zum Server in ein bestimmtes Verzeichnis kopiert werden.
2. Kann man irgendwo sehen an welche Clients das Paket verteilt wurde?

Ich hoffe Ihr habt mein Problem verstanden und könnt mir helfen.
Gruß und Dank
Zorro

Content-Key: 254599

Url: https://administrator.de/contentid/254599

Printed on: April 23, 2024 at 20:04 o'clock