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

Change in AUTO_DUPLICATE_LVL

$
0
0
Hi,

We want to change in our OCS 2.1.2 server the AUTO_DUPLICATE_LVL option. Now we have checked hostname, serial and macaddress but we want to check only serial because everytime a user changes its hostname it generates a new record. Will the server automatically merge all the records? If a computer does not contact again, what will happen? If in the future we want to change it again to hostname, serial and macaddress, will it work? If we only have serial and a computer does not have a serial field or is empty, what will happen?

thanks!

Duplicate office 2010

$
0
0
When doing the Office 2010 inventory, it shows me duplicate on all machines, 
for example, one machine shows that it has two office 2010 installed.



Linux Centos7
Ocs inventory ng:
Server 2.6
Agent: 2.4 - 32 bits
       2.6 - 64 bits

                       

Chave Key Windows Open

$
0
0
Hello

I have assembled machines and Dell, however windows 
server key mounted machines like windows 7 is not 
showing on the home screen, only the oem dell machines

Linux Centos7 PHP 7

 Ocs inventory ng: Server 2.6 

Agent: 2.4 - 32 bits       

           2.6 - 64 bits

Comment lister tous les clients linux ?

$
0
0

Bonjour,

Sur un serveur 2.4.1 que je ne contrôle pas, il y a tout un tas de clients enregistrés. lorsque je filtre avec "various criteria" => "computers: Operating system""Linux (ALL)", je n'obtiens qu'un sous ensemble des clients linux enregistrés. Si je règle le même filtre sur les autres choix possibles "Debian""Ubuntu""Centos" ou "Ubuntu 18.04", j'obtiens à chaque fois un sous ensemble différent des machines linux, comme on peut s'y attendre.

Le choix "Linux (ALL)" me semble rechercher les clients dont le nom de l'OS contient le terme "Linux". Manque de chance, j'ai des machines frappées par ce soucis où le nom de l'OS remonté est simplement "Debian" ou "Ubuntu" sans faire une quelconque mention de "Linux".

Ai-je bien compris le mécanisme "Linux (ALL)" ?

Puis-je suggérer à l'administrateur de ce serveur qu'il ajoute une requête personnalisée permettant de trouver tous les linux ? Est-ce possible ? Comment devrait-il faire ? Je suis prêt à lui préparer le travail.

Schplurtz

Anti-spam verification broken on site

$
0
0
Anyone know whats going on? few people in my organization have been trying to to create accounts here, "what is the name of our software" .. entering "inventory" in lower case doesnt work

Configure database credentials for version 2.6

$
0
0

Hello.

This is my first installation and I installed version 2.6 on Centos 7. Following the documentation for an RPM install, It installed successfully. But then following the documentation for securing the system, I was told to change the password on the database, which I did. I then also had to change the password in the /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php file, which I did so it looks like:

define("DB_NAME", "ocsweb");
define("SERVER_READ", "localhost");
define("SERVER_WRITE", "localhost");
define("COMPTE_BASE", "ocs");
define("PSWD_BASE", "newpassword");

I was also told to change it in z-ocsinventory-server.conf. That file does not exist on the filesystem, but I do have an ocsinventory-server.conf file in /etc/httpd/conf.d, and it appears to be the same file. I changed the setting in that file so that it looks like this:

PerlSetVar OCS_DB_PWD newpassword

under the # Master Database settings heading.

After restarting apache, I could not access the front end due to no database access. I went and changed the password on mariadb back to the default "ocs", and the system worked again. Deciding to leave it like that, I continued to install an agent on Windows. When the agent ran, it appeared to work, but nothing appeared in the front end. Tailing the apache error logs, I saw that it was trying to do a rollback on a non existing object. I set mariadb to log general queries, and saw that whenever the agent ran, it was getting an "access denied" error from the database. Going back to /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php, I set the password in there to the password that I originally changed to, then the agent started working.

On the web frontend, I get a security warning telling me that the password on the database is the default. Can somebody please explain to me how I should be changing that? I have noticed that changing it in either of the above mentioned files has no affect on the web front end. I set it to anything I want, and the front end still works.

Kind Regards.

Shaun

None data transmitted to OCS Inventory server

$
0
0
Hello,

This is about the plugin "runningProcess" (https://github.com/PluginsOCSInventory-NG/runningProcess/)

I'm using OCS Inventory server 2.6 on an Ubuntu 19.04 and OCS Inventory agent UNIX, Linux & MacOs 2.4.2 on an Ubuntu 18.04. This is new fresh install to test the solution.

I have installed this extension "runningProcess" successfully on both side. When I run the agent, I have the following logs:

```

[Thu Oct 31 16:47:15 2019][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.4.2

[Thu Oct 31 16:47:15 2019][debug] Log system initialised (File)

[Thu Oct 31 16:47:15 2019][debug] --scan-homedirs missing. Don't scan user directories

[Thu Oct 31 16:47:15 2019][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__ocs.local.com_ocsinventory/ocsinv.adm

[Thu Oct 31 16:47:15 2019][debug] OCS Agent initialised

[Thu Oct 31 16:47:15 2019][debug] Turns hooks on for /etc/ocsinventory/modules.conf

...

[Thu Oct 31 16:47:20 2019][debug] Calling handlers : `inventory_handler'

[Thu Oct 31 16:47:20 2019][debug] [download] Calling download_inventory_handler

[Thu Oct 31 16:47:20 2019][debug] [processes] Yeah you are in Processes_inventory_handler:)

[Thu Oct 31 16:47:20 2019][debug] [uptime] Yeah you are in uptime_inventory_handler :)

[Thu Oct 31 16:47:20 2019][debug] Section DRIVES has changed since last inventory

...

    <RUNNING_PROCESSES>

      <COMMANDLINE>/sbin/init splash</COMMANDLINE>

      <CPUUSAGE>0.0</CPUUSAGE>

      <PROCESSID>1</PROCESSID>

      <PROCESSMEMORY>0.0</PROCESSMEMORY>

      <STARTED>2019-10-30 1:41</STARTED>

      <TTY>?</TTY>

      <USERNAME>root</USERNAME>

      <VIRTUALMEMORY>167072</VIRTUALMEMORY>

    </RUNNING_PROCESSES>

    <RUNNING_PROCESSES>

      <COMMANDLINE>[kthreadd]</COMMANDLINE>

      <CPUUSAGE>0.0</CPUUSAGE>

      <PROCESSID>2</PROCESSID>

      <PROCESSMEMORY>0.0</PROCESSMEMORY>

      <STARTED>2019-10-30 0:00</STARTED>

      <TTY>?</TTY>

      <USERNAME>root</USERNAME>

      <VIRTUALMEMORY>0</VIRTUALMEMORY>

    </RUNNING_PROCESSES>

...

</REQUEST>

[Thu Oct 31 16:47:21 2019][debug] =BEGIN=SERVER RET======

[Thu Oct 31 16:47:21 2019][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>

<REPLY>

  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>

</REPLY>

';

[Thu Oct 31 16:47:21 2019][debug] =END=SERVER RET======

[Thu Oct 31 16:47:21 2019][debug] Calling handlers : `end_handler'

[Thu Oct 31 16:47:21 2019][debug] [download] Calling download_end_handler

[Thu Oct 31 16:47:21 2019][debug] [snmp] Calling snmp_end_handler

[Thu Oct 31 16:47:21 2019][info] [download] Beginning work. I am 28251.

[Thu Oct 31 16:47:21 2019][info] [download] Option turned off. Exiting.

[Thu Oct 31 16:47:21 2019][debug] [download] End of work...

```

Regarding the logs, the plugin seems to work as there are the XML data. But on server side, there is nothing in database and logs shows:

```

Thu Oct 31 15:47:21 2019;18582;318;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;session;missing

Thu Oct 31 15:47:21 2019;18582;114;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;no_session

Thu Oct 31 15:47:21 2019;18582;104;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;incoming

Thu Oct 31 15:47:21 2019;18582;113;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:drives

Thu Oct 31 15:47:21 2019;18582;113;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:cpus

Thu Oct 31 15:47:21 2019;18582;113;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:uptime

Thu Oct 31 15:47:21 2019;18582;113;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:repository

Thu Oct 31 15:47:21 2019;18582;101;PC-Jerome-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;transmitted

```

There is no trace of the plugin. I have none problem with uptime extension. What is going wrong?

CSRF Attack error on package build

$
0
0

I am trying to build my first deployment package and I keep getting the above error. I have gone through and completed the steps detailed in the articles I have found involving increase the php_value post_max_size and the php_value upload_max_filesize. I have also increased the values for file uploads in the php.ini file.

I have checked the config to see where my logs should be kept and there are no logs there. I have checked and logging is turned on. I have checked the syslog and the mysql logs for any errors there and have found none. I have also checked the apache error log and the only issue there is " PHP Warning:  Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://192.168.100.55/ocsreports/index.php?function=admin_conf"

I am running version 2.6 on Ubuntu 18.04LTS. 

Any suggestions greatly appreciated.


All computers page shows no systems

$
0
0
server Ubuntu 18.04.03

PHP 7.2.24 OCSReport 2.6

My dashboard shows 103 Unix systems, though 3 are Windows, the All computers page does not show any systems

No data available in table

from apache logs:

 array_key_exists() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/search/Search.php on line 1017, referer: https://centaur.sr.unh.edu/ocsreports/index.php?first

On Inventory page, I see all my tags, all software shows data

How do I get the all computers page to show data?

REGISTRY update from agent, not working

$
0
0
Hi,

im using this amazing tool works fine. Only i have a little trouble for send some registry, for get info installed software like Spotify (not detected). I setup a key SOFTWARE\Microsoft\Windows\CurrentVersion\Run for get Spotify. This one works fine if i do manual agent running, adding /force or if i install from zero a client works too. Updates, not update the info.

Here some logs,

<REPLY>
  <OPTION>
    <NAME>REGISTRY</NAME>
    <PARAM REGTREE="1" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" NAME="Spotify">Spotify</PARAM>
    <PARAM NAME="Zoom" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" REGTREE="1">Zoom</PARAM>
  </OPTION>
  <OPTION>

AGENT =>  Communication Server asks for Registry Query
    REGISTRY => Executing query asked by server
    REGISTRY => 2 query successfully executed

================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>

Hope any can guide more.

Thx again!

Ocs server migration

$
0
0
Hello,

I made the update of my server OCS 2.1 => 2.6

Linux Distribution: Ubuntu 16.04 LTS

The update was successful.

Since this update, agents in 2.4 or 2.6 do not make me go back inventories.
Here are the agent logs:

Apache Log:

Ocs-server log:

However, older agents that are older than version 2.3 work.

If you have an idea, I'm interested :)

Thx
MDF

Delete old computers in inventory

$
0
0

Hi. In my system there are duplicate computers, one of which are computers that no longer exist. how can i delete them?

How to scan multiple networks with IP Discover

$
0
0
Hello,

Is it possible to scan multiple networks with one agent using IP Discover ?

Thanks

Local import - Manual Entry doesn't work

$
0
0
Hi,

We've just upgrade to 2.6 and can't add computers manually anymore.

Manual entry import reports computers (even just one) to be added but no one found in computers entries.

ocs file import is ok, it's only when making a manual entry import.

Regards.

WindowsAgent - Failed to talk with Com. Server

$
0
0

Bonjour,

J'essaye de mettre en place un serveur OCS Inventory mais depuis quelques jours je bloque avec le WindowsAgent. J'arrive à faire remonter l'inventaire de la machine Windows mais seulement en clair (HTTP). Dés que j'essaye de mettre en HTTPS, il n'arrive plus à communiquer avec le serveur : OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server). 

Pourtant j'ai bien générer mon certificat et l'ai placé au bon endroit (j'ai essayé avec un chemin relatif ou absolu les 2 ne fonctionnent pas).

Edit : Je ne possède pas de serveur DNS donc pas de nom de domaine. Est-ce que cela peut causer des problèmes avec le certificat ? J'ai spécifié le nom de ma machine lors de la création du certificat.

Merci d'avance.


Importing computers to other asset type in GLPI

$
0
0
Would anyone know of a way to distinguish between invetoried computers and servers?

I need separate access rights for computers and servers, and using genericobject GLPI plugin I can create a new asset type (Servers) in GLPI, but I cannot figure out how to get OCS to sync computers to this new Servers type.

Thank you for your help!

get OS without agent?

$
0
0
Hey guys,

i would like to know if its is possible to get the Operating System from a host via IPDiscovery or SNMP-Scan. The problem is that the host has no OCS-Agent installed. Is there a way to do this or is it impossible?

thx in advance
Florian

OCS Agent service error

$
0
0

Hello, The OCS Agent service returns an error in the windows event log. No log is generated and no contact with the server is made. The TTO_Wait of the INI file is modified. error :

Can't launch OCS Inventory NG Agent (敇⁴佃卍䕐⁃牅潲㩲䔠牲牯挠摯〲″‽敌猠獹敭渠憒瀠獡琠潲癵⃩鉬灯

 

This error appears on different windows version.

I am using Agent 2.4
if I start the inventory manually,

it works perfectly.
thank you for your help

                       

Agent 2.4 generates win app log err until reboot.

$
0
0
So I've installed the Agent 2.4.0.0 on a bunch of machines and for most machines it runs smoothly but on some of them the service wont start and it also generates a massive amount of errors in the windows application log. If I reboot the machines the problem goes away. How ever, theese servers we realy dont want to reboot.

Parameters ocsinventory.ini package

$
0
0

I've just built a new deploy package of Windows agent using ocspackager.exe 2.6 setting these command line parameters:

/SERVER=http://ocsinventory/ocsinventory /S /NOW /NO_SYSTRAY /NOSPLASH /PROXY_TYPE=0 /DEBUG=2

It gets installed but ocsinventory.ini created contains only:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll

server is not configured. Do you know why it is creating a so empty ini file?

Regards

Viewing all 4376 articles
Browse latest View live


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