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

Cannot establish communication : 500 Internal Server Error

$
0
0

When installing new ocsinventory-agents inventory is not sent and the error occurs: "Cannot establish communication : 500 Internal Server Error" . Agents that are already installed work normally and send the inventory correctly. The versoin of OcsINventory-server  2.3.1 and OCSInventory-agent 2.0.5. SO of server is  Debian 8 and clients are Ubuntu 14 and 16. All softwares requirements of server were attended.

Latest lines from Apache error log : [mpm_prefork:notice] Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_perl/2.0.9dev Perl/v5.20.2 configured --resuming normal operations

and activity.log

Fri May 12 08:57:30 2017;21325;103;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;prolog;new_deviceid
Fri May 12 08:57:30 2017;21325;103;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;snmp;error: agent must communicate using https to be able to get SNMP communities (only affects OCS unix agent) !!
Fri May 12 08:57:30 2017;21325;100;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;prolog;accepted
Fri May 12 08:57:30 2017;21325;311;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;session;started
Fri May 12 08:57:33 2017;21325;319;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;session;found
Fri May 12 08:57:33 2017;21325;104;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;inventory;incoming
Fri May 12 08:57:33 2017;21325;528;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;accountinfos;missing
Fri May 12 08:57:34 2017;21325;515;cibld313-2017-05-12-08-14-29;10.25.25.218;OCS-NG_unified_unix_agent_v2.0.5;end;error


Answered: Install OCSNG on Windows. File does not exist C:/xampp/htdocs/ocsinventory

$
0
0
As latest version of OCS is not supported on windows, you must use an agent in the sames version of your server : 2.1 and not 2.3.

Downgrad your agent or change your server for a linux to be in 2.3.

Answered: Mise à jour de la demo du serveur OCS Inventory

$
0
0
L'intégration de plugin serait cool si seulement j'avais des machines avec MS Office pour avoir des remontés :D

Sinon oui ça serait bien d'avoir de nouvelles machines dans la démo (pour l'upgrade on est en 2.3 et l'interface est similaire en 2.3.1).

Mais promis c'est dans ma todo list :)

N'hésites pas à passer sur IRC si tu as des XML de machines qui trainent pour la démo :)

Answered: OCS NG serveur pour Windows est-il obsolète définitivement ?

$
0
0
La version avec Xampp est obsolète et ne sera plus jamais mis à jour. Perso j'aimerai bien l'enlever si ça ne tenait qu'à moi ...

Mais ça ne veut pas dire qu'on ne pense pas à windows.

En gros l'installation sur windows à toujours été considéré comme une sorte de démo pour tester le produit avec un support parfait des plateforme unix pour la production. Aujourd'hui, un composant qui n'existe plus sous windows et qui pourrait disparaitre sous linux nous bloque : mod_perl. Nous avons commencé à développé sur une alternative mais cela prend du temps.

Donc on a pas oublié windows mais faudra être patient. Une alternative en attendant pourrait être docker ou Ubuntu sur windows.

Utilisation de SNMP avec OCS

$
0
0

Bonjour à tous,

J'ai réalisé l'installation suivante sur des machines virtuelles Hyper V :

- Windows Server 2012R2 --> OCS + Base de données

OCS server version 2.1.2 - OCS agent version 2.1.1.1

- Windows Server 2012R2 --> GLPI 9.1.3

- Centos7 --> SNMP

Tout fonctionne correctement au niveau d'OCS et de GLPI.

Le problème est que mon entreprise souhaite placer la base de données dans une DMZ privée, ce qui fait au vu de mon installation qu'OCS se trouverait lui aussi en DMZ privée.

J'ai cru comprendre que pour utiliser SNMP - IPDISCOVER il faut que le serveur OCS puisse communiquer avec l'agent SNMP (ici mon serveur centos7).

Ma question est donc la suivante :Peut-on utiliser la fonction SNMP - IPDISCOVER sur le serveur OCS, avec comme serveur SNMP ma machine Centos7 ?

Sachant que le serveur OCS est en DMZ privée, et qu'il ne pourra donc pas communiquer avec le serveur SNMP.

Je vous remercie de votre aide et bonne journée ! :)

Error download.exe in windows agent, we can't teledeploy

$
0
0

Hi,

We can't teledeploy programs in windows systems using OCS, 

The problem is in the windows agent after the client recieve the zip file. We have tried windows xp (agent 2.1.1.1), windows 7 (agent 2.3.0.0) and windows 10 (agent 2.3.0.0) and in all of the we find the same problem with Dowload.exe after the install software prompt window.

 

Do you know what's the problem?

Download log  don't show errors and finish with:

DOWNLOAD => Executing action <LAUNCH> for package <1495451116>

How do I change the user who launches the agent ?

$
0
0

Hi ,

I installed a network script on the server and copy the vbs file into the plugins directory of my clients.

The problem is : WARNING *** EXECUTABLE PLUGIN => Plugin <C:\Program Files (x86)\OCS Inventory Agent\plugins\networkshare.vbs> does not produce any output

I read "The agent is not launched using the current user but the system user".

My question is, how can I launch my agent with current user ? Ocs is deploy by GPO

Thanks !

2.3.0 agent is not working with 2.2.1 server for me.

$
0
0

Hi,

I have deployed a docker container OCS Inventory server version 2.2.1 (the one which is currently available in Github). I tried to add some Windows 2.3.0 agents but always get this issue:

Starting OCS Inventory NG Agent on Monday, May 29, 2017 00:51:48.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.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.3.0.0>
 AGENT => Sending getLabel request
 COM SERVER => Initializing cURL library for getFile
 COM SERVER => Using cURL without server authentication
 COM SERVER => Disabling cURL proxy support
 COM SERVER => Disabling cURL SSL server validation support
 COM SERVER => Sending fileGet request to URL <http://127.0.0.1:8080/ocsinventory/deploy/label>
 WARNING *** COM SERVER => Failed to send HTTP Get request <Couldn't connect to server>
 COM SERVER => Cleaning cURL library
 AGENT => Failed to retrieve Label <Couldn't connect to server>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <ES00058849-2017-05-26-12-32-26> and MACs <FC:15:B4:E8:8E:AC3C:A9:F4:93:4B:2848:5A:B6:EF:73:6702:80:37:EC:02:0008:00:27:00:A8:7800:50:56:C0:00:0100:50:56:C0:00:0802:50:F2:00:00:0100:FF:B0:3B:82:0D> in file <ocsinventory.dat>
 DID_CHECK => writing DeviceID <ES00058849-2017-05-26-12-32-26> and MACs <FC:15:B4:E8:8E:AC3C:A9:F4:93:4B:2848:5A:B6:EF:73:6702:80:37:EC:02:0008:00:27:00:A8:7800:50:56:C0:00:0100:50:56:C0:00:0802:50:F2:00:00:0102:05:85:7F:EB:8000:FF:10:D0:95:0C> in file <C:\ProgramData\OCS Inventory NG\Agent\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://127.0.0.1:8080/ocsinventory>
 WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
 COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:02.

 

Not sure if the problem is with 2.2.1 server or not. I tried with 2.1.1 windows agent and seems to work fine. The problem is that I need to add Windows 2012 / Windows 7 servers and 2.1.1 is for XP and 2003R2. The agent still works but not sure if full functionality will be avaiable.... my guess is no. Questions:

1) What are the functionalities I can loose using 2.1.1 agent on Windows 7 / 2012?

2) Is there any way to make 2.3.0 agent work with 2.2.1 server?


Answered: OCS NG serveur pour Windows est-il obsolète définitivement ?

$
0
0
Ok, merci kapouik pour ta réponse !

Deploing packages (more then 100 computers)

$
0
0
Hi,

I have more then 300 computers in my network. How to deploy package to all of them ?
Filter allows to see  only 100 computers. It is vary annoying.

No new inventories since server update

$
0
0

Hi all,

I upgraded our OCS NG server to v2.3.1 on Monday 29th May. Install appeared to go fine. We've been using OCS for over 5 years, through quite a number of versions, so the upgrade process has become quite routine.

The problem is, however, that if we look at the computers (i.e.: http://ocsserver.our-domain.local/ocsreports/?function=visu_computers), no new inventories have come in since 2017-05-29 10:26:32.

A sample of my Apache error log file for OCS:

[root@svr-h001194 ocsserver.hayley-group.co.uk]# tailf error_log
[Wed May 31 14:27:43 2017] [error] [client 213.205.195.113] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:27:47 2017] [error] [client 149.254.248.31] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:28:10 2017] [error] [client 213.205.195.115] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:28:14 2017] [error] [client 149.254.248.116] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:28:39 2017] [error] [client 10.11.31.103] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:28:42 2017] [error] [client 10.11.22.137] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:28:54 2017] [error] [client 10.11.22.147] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
[Wed May 31 14:29:04 2017] [error] [client 213.205.199.60] Can't call method "do" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory/Server/System.pm line 189.\n
...

Unfortunately, I don't know how I can fix this (if it's even the cause).

Can anyone offer any suggestions?

Thank you.

EJ

OCs inventory for VMware

$
0
0
im trying to install ocs inventory on Vmware

I tryed it with serveral versions of linux, but no succes

there seems to be a pre installed vmware edition of OCS server , but the download link isnt working.

Can i still get this job done?

thanks for reading !

greetz

bram

Multiple OCS inventory - Glpi link

$
0
0
Hello everyone,

Today we use OCS inventory for one client we would like to use it for multiple client is that possible on same server ? And if it is there is a tutorial or something to get started ?

We use GLPI to manage our clients. Each client have his own entity can we import OCS inventory to one entity ?

The goal is to have multiple ocs inventory and one glpi and to sync each ocs to one glpi entity.

Thank you for help

How frequent the agent would update the server?

$
0
0
Hi All,

I have checked that there is a parameter "FREQUENCY" about how frequent the agent would update the server (correct if I am wrong).

However, I have a windows machine with agent installed, I wait for more than 24 hrs, however, I cannot see there is any update to the server (I can manually update the server my running the agent).

Is that normal?

Thanks!

Rgds,

Kenneth

Answered: Importer des fichiers OCS d'une DMZ / Import OCS files located in DMZ - SOLVED

$
0
0
Bonjour,

merci à vous 2 pour vos idées. J'ai finalement suivis vos conseils mais afin de sécuriser un peu l'envoie des fichiers OCS hors de la DMZ j'ai créé un script permettant la copie en SFTP.

Ensuite c'est l'injector sur le serveur de destination et tout roule.

@echo off
::==================================================
::///////////////////////////////////////////////////////////////////////////////////////////////////
::///
::/// OCS-Copy.bat - Copy OCS files to OCS server using WinSCP
::///
::///////////////////////////////////////////////////////////////////////////////////////////////////
::==================================================

::-------------------------------------------------------------------------------------------
::/// Check if OCS files exist in OCS server
::-------------------------------------------------------------------------------------------
set REMOTE_PATH=/home/USER/*.ocs
 
"C:\Program Files (x86)\WinSCP 5.7.7\winscp.com" /command ^
    "open sftp://USER:PASSWORD@SERVER" ^
    "option failonnomatch on" ^
    "ls %REMOTE_PATH%" ^
    "exit"
if %ERRORLEVEL% equ 0 goto error

::-------------------------------------------------------------------------------------------
::/// OCS files not present on destination
::-------------------------------------------------------------------------------------------
echo OCS files not detected in %REMOTE_PATH%, copy in progress...
"C:\Program Files (x86)\WinSCP 5.7.7\winscp.com" /command ^
    "open sftp://USER:PASSWORD@SERVER" ^
    "put d:\OCS\*.* /home/USER/" ^
    "exit"
exit /b 1

::-------------------------------------------------------------------------------------------
::/// OCS files present on destination
::-------------------------------------------------------------------------------------------
:error
echo OCS files detected in %REMOTE_PATH%
exit /b 0

Answered: No new inventories since server update

$
0
0
Got to the bottom of it.

Updated "/etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php" after the upgrade, but forgot about "/etc/httpd/conf.d/z-ocsinventory-server.conf".

Clearly my upgrade process was not so "routine" :)

Answered: Collect registry keys for Windows 2000 / Collect du registre pour Windows 2000

$
0
0
Salut, c'était la version 2.0.5

Il n'y a toutefois plus besoin de poursuivre les investigations car les serveurs ont (enfin) été retirés de la production.

Aucune remonté d'infos de plugin vers la base de données

$
0
0

Bonjour,

Après 2 jours de recherche, je ne sais plus ou chercher !

-----------

Etat des lieux:

  • Serveur OCS 2.3 sur debian 8 --> Operationnel avec remonté d'info des PCs
  • Installation des plugins depuis https://github.com/PluginsOCSInventory-NG avec les derniers releases (Office / uptime / Windows Update / security / teamviever...)
  • Sur le Serveur, présence des tables dans la base de données + présence des dossiers et fichiers des plugins dans etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins...
  • Sur les postes, vérification de la présence des section "uptime" / "officePack" / .... dans le fichier .XML généré avec les options "/local /Force /xml"

Ce qui ne marche pas

  • L'import du fichier XML depuis l'interface OCS me donne droit à un "Erreur" --> impossible de trouver la trace de ce message d'erreur

HELP ME !!

Cordialement, 

Christophe

Select lits order in 2.3

$
0
0
Hi.

I have created two select list for my computers, but i do not see anywhere to change the order.

Cya.

Answered: Network Discovery on UNIX Agent with vlans

Viewing all 11967 articles
Browse latest View live


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