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

agent = failed to send prolog couldn't resolve host name

$
0
0
Olá

Agent não se envia informações para OCS Inventory Server_Unix

o log do agent apresenta este erro agent = failed to send prolog couldn't resolve host name

The agent does not communicate with the server

$
0
0
==============================================================================
Starting OCS Inventory NG Agent on Thursday, September 15, 2016 18:40:13.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.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.1.1.3>
    AGENT => Sending getLabel request
    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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://192.168.1.15/ocsreports/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <PC360-2016-07-20-18-14-34> and MACs <1C:6F:65:D6:E6:2100:50:56:C0:00:0800:50:56:C0:00:010A:00:27:00:00:09> 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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.15/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:00.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, September 15, 2016 18:40:32.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.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.1.1.3>
    AGENT => Sending getLabel request
    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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://192.168.1.15/ocsreports/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <PC360-2016-07-20-18-14-34> and MACs <1C:6F:65:D6:E6:2100:50:56:C0:00:0800:50:56:C0:00:010A:00:27:00:00:09> 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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.15/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:00.

Plugin documentation for server-side

$
0
0
I've been looking for documentation on writing plugins for server-side, but all I"ve seen are client-side. Can someone point me in the correct direction?

Thank you

Machines ne rejoignent plus les groupes dynamiques

$
0
0
Bonjour,

depuis quelques temps je rencontre de plus en plus de problèmes avec les groupes dynamiques. Pour certains groupes le cache n'est jamais recalculé et les nouvelles machines correspondant aux critères ne rejoignent plus ces groupes (il y a un écart entre "Toutes les machines (rejouer)" et "Toutes les machines (cache)".

J'ai essayé de supprimer les groupes et de les recréer mais le problème revient. Savez-vous d'où cela vient? Est-il possible de forcer le calcul du cache en ligne de commande ou autre?

Merci d'avance de vos réponses.

Mica

ERROR *** AGENT => Failed to send Prolog

$
0
0
I have done the checks on the server and everything seems to be correct.
The firewall is disabled, perl modules are installed and active and I changed the URL path.
The result is the same.

==============================================================================
Starting OCS Inventory NG Agent on Monday, September 19, 2016 18:55:59.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.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.1.1.3>
    AGENT => Sending getLabel request
    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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://192.168.1.15/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <PC360-2016-07-20-18-14-34> and MACs <1C:6F:65:D6:E6:2100:50:56:C0:00:0800:50:56:C0:00:010A:00:27:00:00:0B> 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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.15/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.

About the deploy with vbs

$
0
0
Hi ,

I'm new for the OCS inventory NG, and i just installed the server on a windows, and try build a package, which include the 7z 32 & 64 bit msi, a powershell script and a vbs that used for run the powershell.

the package was success build and return the exit code 1. below is the download log VBS and the powershell .and also i have tested the VBS and the PS can install the the 7z.

=============================================Download Log

       DOWNLOAD => Processing packages for cycle 8 on Tuesday, September 20, 2016 10:43:51
    DOWNLOAD => Pausing for cycle latency (5 seconds)
    DOWNLOAD => Processing packages for cycle 9 on Tuesday, September 20, 2016 10:43:56
    DOWNLOAD => Pausing for cycle latency (5 seconds)
    DOWNLOAD => Processing packages for cycle 10 on Tuesday, September 20, 2016 10:44:01
DOWNLOAD => Building package <1474339320>
    PACKAGE => Verifying fragment files of package <1474339320>
    PACKAGE => Checking free disk space for package <1474339320>
    PACKAGE => Building ZIP for package <1474339320>
    PACKAGE => Verifying ZIP signature for package <1474339320>
    DOWNLOAD => Package <1474339320> built successfully
DOWNLOAD => Executing action <LAUNCH> for package <1474339320>
    PACKAGE => Launching command <install.vbs> for package <1474339320> on <Tuesday, September 20, 2016 10:44:01>
    PACKAGE => Package <1474339320> successfully launched. Command exit code is <1>. Package return code is <EXIT_CODE_1>
    PACKAGE => No post execution command provided for package <1474339320>
ERROR *** DOWNLOAD => Will not register package <1474339320> in history: result <EXIT_CODE_1> not a success
DOWNLOAD => Sending result code <EXIT_CODE_1> for package <1474339320>
    DID_CHECK => Read DeviceID <TESTING-PC-2016-09-12-09-59-26> and MACs <F0:DE:F1:37:FF:4058:94:6B:90:6A:3458:94:6B:90:6A:3558:94:6B:90:6A:355C:AC:4C:C2:6F:B9> 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://tpfshk1/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
    DOWNLOAD => Result code request successfully sent
    DOWNLOAD => Pausing for fragment latency (10 seconds)
    DOWNLOAD => Pausing for cycle latency (5 seconds)
    DOWNLOAD => Pausing for period latency (10 seconds)
DOWNLOAD => Starting new period of 10 cycles
    DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:01:27.

=====================================VBS

Dim objShell
Set objShell = Wscript.CreateObject ("Wscript.Shell")
   objShell.Run "cmd /c powershell -noprofile -executionpolicy bypass -file install.ps1"

====================================powershell

$Software = "7-Zip"
$Version = "9.20.00.0"

    #Check the OS Architecture and install 32bit or 64bit
    $oscheck = (Get-WmiObject Win32_OperatingSystem).OSArchitecture
    #Check Remote PC installed and Version for 32bits OS
    If ($oscheck -eq '32-bit')
        {   
            
            #Get the List of Installed Sofrtware(DisplayName and DisplayVersion) for 32bits
            $SWNames = Invoke-command {Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName}
            $SWVersion = Invoke-command {Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayVersion}
            foreach($SWName in $SWNames)
                {
                    #Check if 7-Zip in List
                    if( $SWName -match $Software)
                        {
                            #Get the 7-Zip Version
                            $PVersion = $SWVersion[[array]::IndexOf($SWNames,$SWName)]
                        }
                }
            #Check if Previous Version not current or empty
            if(!$PVersion -or $PVersion -notmatch $Version)
                {
                    #uninstall the old version and Install 7z
                    if ($PVersion -notmatch $Version -and $PVersion)
                        {
                            $app = Get-WmiObject win32_product | Where-Object {$_.name -match $Software}
                            $SUID = $app.identifyingNumber
                            msiexec.exe /x "$SUID" /quiet /norestart
                            msiexec.exe /i 7z920.msi /quiet /norestart
                        }
                    else
                    #Install 7z
                        {
                            msiexec.exe /i 7z920.msi /quiet /norestart
                        }
                        
                }
        }
    else
        {
            
            #Get the List of Installed Software(DisplayName and DisplayVersion) for 64bits    
            $SWNames = Invoke-command {Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName}
            $SWVersion = Invoke-command {Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayVersion}
            $SWNames += Invoke-command {Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName}
            $SWVersion += Invoke-command {Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayVersion}
            foreach($SWName in $SWNames)
                {
                    #Check if 7-Zip in List
                    if( $SWName -match $Software)
                        {
                            $PVersion = $SWVersion[[array]::IndexOf($SWNames,$SWName)]
                        }
                }
            #Check if Previous Version not current or empty
            if(!$PVersion -or $PVersion -notmatch $Version)
                {
                    #uninstall the old version and Install
                    if ($PVersion -notmatch $Version)
                        {
                            $app = Get-WmiObject win32_product | Where-Object {$_.name -match $Software}
                            $SUID = $app.identifyingNumber
                            msiexec.exe /x "$SUID" /quiet /norestart
                            msiexec.exe /i 7z920-x64.msi /quiet /norestart
                          
                        }
                    else
                    #Install 7z
                        {
                            msiexec.exe /i 7z920-x64.msi /quiet /norestart
                        }
                        
                }
        }

==============================================END

OCS service not starting error "Windows could not start the service Error 193: 0xc1"

$
0
0
Hi...I certain machines OCS inventory agent service not able to start, it shows error as "Windows could not start the service Error 193: 0xc1"...Other windows services able to restart and no issues..I have almost 1000 client system and nearly 50 out of 1000  have same issue..Pls advice what I can do to resolve this issue.

Cannot establish communication : 500 Can't connect to

$
0
0

I have a problem with SNMP function and I would need help to know if there's a cert problem or a server installation mistake. I read that we need to configure ocsinventory-agent.cfg this way to make SNMP function works:

basevardir=/var/lib/ocsinventory-agent
debug=1
download=1
ca=/etc/pki/CA/certs/cacert.pem
tag=OCS Server
server=https://10.194.97.125/ocsinventory
logfile=/var/log/ocsinventory.log

I have the next log when ocsinventory-agent.cfg is configured this way:

 [Tue Sep 20 14:32:04 2016][debug] [download] Calling download_start_handler
[Tue Sep 20 14:32:04 2016][debug]  - LWP loaded
[Tue Sep 20 14:32:04 2016][debug]  - LWP::Protocol::https loaded
[Tue Sep 20 14:32:04 2016][debug] Compress::Zlib is available.
[Tue Sep 20 14:32:04 2016][debug] Calling handlers : `prolog_writer'
[Tue Sep 20 14:32:04 2016][debug] sending XML
[Tue Sep 20 14:32:04 2016][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>ocsinventory-ng-2016-09-20-12-23-35</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Tue Sep 20 14:32:04 2016][error] Cannot establish communication : 500 Can't connect to 10.194.97.125:443

Otherwise, when we configure the ocsinventory-agent.cfg file with server=http://10.194.97.125/ocsinventory ( without https ), we get this log:

  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';
[Tue Sep 20 14:37:59 2016][debug] =END=SERVER RET======
[Tue Sep 20 14:37:59 2016][debug] Calling handlers : `end_handler'
[Tue Sep 20 14:37:59 2016][debug] [snmp] Calling snmp_end_handler
[Tue Sep 20 14:37:59 2016][debug] [download] Calling download_end_handler
[Tue Sep 20 14:37:59 2016][info] [download] Beginning work. I am 3245.
[Tue Sep 20 14:37:59 2016][info] [download] No more package to download.
[Tue Sep 20 14:37:59 2016][debug] [download] End of work...

So the agent is reaching the server, but obviously  can't execute the SNMP function because the current ocsinventory-agent.cfg configuration.

--------------------------------------------------

Said that, why is there an 500 connection error when we configure ocsinventory-agent.cfg file with server=https://10.194.97.125/ocsinventory, if in fact the server is configure this way ?


gestion multi-moniteurs

$
0
0

Bonjour,

Est-il possible de gérer plusieurs écrans par machine ?

Je peux avoir le détail des écrans d'une machine dans l'onglet "périphériques" :

mais une recherche multicritère ne me retourne que le 1er écran de chaque machine :

Est-ce un bug ou une limitation du soft ?

EVENT VIEWER information

$
0
0
Hye everybody

  Does it available access to information in the computer's network with the client OCSNG?  I would like to monitor a flag warning or error in eventviewer system or application.

Thank

Sylvain

Compte administrateur lors deploement

$
0
0
Bjr je voulais savoir quel compte admin utilse ocs pour un de ploielent sur des postes de travail avec droit non administrateur merci

Export XML: ACCESS DENIED

$
0
0
Hello

At the inventory screen of a single computer I want to export the XML file of its inventory.  When I click on the link, I get taken to a new page with only ACCESS DENIED on it. How can I fix that or disable the Export function? It doesn't work to disable it with administer profiles.

I've installed OCS Server 2.1.2 on Windows Server. Do you have a suggestion of a solution for this problem?

Thanks in advance.
Regards Mike

Inventory of office keys on Windows7

$
0
0
Good afternoon!

Can you give me a link for creating of plugin for inventory of office keys?

 Server on machine with Windows 7,clients computers are also on Windows 7

Agents not communicating after reinstalling OCS server to a different hardware

$
0
0
I have changed the OCS server to a different hardware but did not modify the ip-address of the server.

OCS WIndows Agent download package hang

$
0
0
Hi Frank,

This is Steven again, i got another issue about deploy the package to the PC via OCS 2.1.2.

The PC is windows 7 agent 2.1.1.3.

and i create a package for Microsoft Office 2010 around 1.47GB, as the MS Office to large, so I tried to let it 5,10,50 & 100 fragments for testing. but at the PC alway only download around 50-70 MB then download stop.

I tried end the download.exe process in taskmanager and re-run the agent, it will start download again, but again 50-70 MB then stop again.

Any ideas?

Thanks,

Steven

OCS agent not connecting to OCS Server

$
0
0
Hello all,

I have installed OCS on Linux debian and can see and login to UI.

after that I have installed agent on windows on multiple system but its not connecting to server.

On windows, it shows started but dont see any error.

Has anyone any idea??

Regards,

Sandip Bankewar

Dynamic or Static Group in Linux (CentOS7) Possible ?

$
0
0
CentOS7/OCS2.2.1/PHP5.4.16/Perl 5.16.3

I have tried to create static or dynamic but group creation in GUI showed successful for selected search paramerters but I don't see any groups under group category. Also, I see error in apache logs. Anyone faced this issue?

DBD::mysql::st execute failed: Table 'ocsweb.groups' doesn't exist at /usr/local/share/perl5/Apache/Ocsinventory/Server/Groups.pm

problème télédéploiement

$
0
0

bonjour je re-post car je ne comprend pas comment faire remonter un post dans ce "forum".

J'ai le soucis exposé dans le post suivant http://ask.ocsinventory-ng.org/4973/teledeploy-broken
C'est l'erreur 436 qui est indiqué.

J'ai supprimé la base et j'en ai créé une nouvelle avec toujours le même problème pourtant elle est vide.

J'aimerai bien essayer de comprendre le problème mais je n'arrive pas à trouver d'où ça peut venir. Le mode "debug" de la 2.2.1 n'apporte rien (où je ne sais pas le lire) .

La documentation sur le wiki ne parle que des versions 2.1.crying

Merci pour votre aide....

Les postes ne remontent pas suite à une réinstallation

$
0
0
Bonjour à tous !

Je viens vers vous car la je sèche un peu.

J'ai un serveur Windows server 2012 sur lequel j'ai mis à jour XAMPP pour pouvoir utiliser la dernière version de GLPI (j'avais besoin d'une version plus récente de PHP).

J'ai donc sauvegarder ma base MySQL pour GLPI et OCS. J'ai donc installé la nouvelle version de XAMPP, de GLPI et OCS Server (2.1.2, même version que j'avais avant la réinstallation).

Tout c'est parfaitement passé. La liaision OCS => GLPI fonctionne.

Le soucis, c'est que les postes de mon parc ne remontent plus sous OCS.

Et je ne vois pas bien d'où vient le problème, car j'ai gardé la même IP, les mêmes comptes, la même version de OCS Server. Mais rien y fait.

J'ai fait un test avec un agent FusionInventory, ça remontent bien sur le plugin GLPI. MAis la connexion avec le serveur OCS ne se fait (pas de de remonté, comme avec l'agent OCS).

J'ai tenté d'installer OCS Server sur un poste lambda avec le package OCS (xampp 1.7.7 + OCS Server), idem je n'ai pas de remonté.

Il y a t-il une version de XAMPP (ou apache /sql / php) à respecter ? Car à part cela je ne vois pas d'où vient le problème. Je n'ai pas de firewall, ni d'antivirus qui bloquent.

Autre question: lors de l'installation de l'agent Windows, on nous demande l'adresse du serveur (pas de problème pour cela) et un login/mot de passe. On doit entrer un compte OCS Serveur ou un compate accès MySQL ?

Merci par avance.

Agent (windows & Linux) dont send information to server ocs

$
0
0
Hello All,

I have installed OCS on Linux (Cent os 7) and can see and login to UI.

after that I have installed agent on windows also Linux on multiple system but its not connecting to server.

On windows, it shows started but dont see any error.

Has anyone any idea??

Regards,
Viewing all 4379 articles
Browse latest View live


Latest Images

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