Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG server
Viewing all 7071 articles
Browse latest View live

Answered: How to know the date device was first time added?

$
0
0
Hi,

To know this date you have to connect to database directly amd realize a request on this table => hardware => select lastcome,lastdate from hardware;

Regards

Frank

Answered: New guide for installing ocs2.5 on ubuntu 18.04

$
0
0
Hi, curious to compare with mine :-)

Regard

error after updating server to 2.6 RC

$
0
0

385/5000

After updating the OCS inventory server 2.5 to version 2.6 RC, I try to access the web console through "http://192.168.137.241/ocsreports" the window remains blank and when I enter chrome it shows the following error " HTTP ERROR 500 "
install everything in the OCS documentation that is found necessary, what could you do to solve the error?

Answered: error after updating server to 2.6 RC

Summary info lost in RC 2.6 version

$
0
0

This info is lost in the new ocs RC 2.6 version because was replaced by the new dashboard page:

Machines in DB xxxx
Machines Inventoried xxxx
Machines contacted today xxx
Machines Inventoried today xxx
Machines not seen in more than 30 day(s) xxx
Number of SNMP devices xxx
Number of non inventoried network interfaces xxxxxx

I wonder if it's possible to include a query of machines not seen in more than 30 days in assets category. It seems not because selecting computer -> lastdate, only specific (not relative) dates are allowed. I mean, you can use: lastdate > 28 nov/2018 but not lastdate > NOW() - INTERVAL 30 DAY.

Search function in REST API

$
0
0
I've been trying to get the REST API search function to work as documented here: http://wiki.ocsinventory-ng.org/09.Rest-API/GET-Routes/

My test query is: ocsapi/v1/computers/search?ID=2&start=0&limit=0
It doesn't seem to matter what I put after search? as it just returns a full array of every computer ID in the system. Has anyone else run into this issue? Is the search function implemented correctly in REST?

You don't have access to this data VM list

$
0
0
Using OCS Inventory Server 2.5

Error messages comes as "You don't have access to this data"

when clicking:

https://IP/ocsreports/index.php?function=computer&head=1&systemid=3055

Agent is sending vmware inventory to the NG-Server as expected when using "VMWare inventory" plugin from "Gilles Dubois"

Software categories doesn't work in RC 2.6


certifcate auth for agent client computer to OCS

$
0
0
Hi Ocs Support team,

We have implemented SSL authentication based on Using SSL certificates in Package deployment  and have installed server certificate file cacert.pem on each client computer into OCS Inventory Agent installation directory.Authentication works  and able to deploy the package into client computers.

The query is we would like to install separate certificate file for each client computer (Linux) , reason is not to use the same pem file for all client computers  in order to be more secure)and do the ssl authentication against Inventory Server certificate ( crt file)
Please do let us know if this possible in OCS NG Inventory ?

Regards

Karthik

No item in the deployment statistics lists

$
0
0
Hi,

All the lists are empty when I click on the number : "No data available in table". So i'm unable to known on which clients the package deployment are successfull or not.

I can see this line in Apache error log each time I try :

[Fri Jan 04 11:10:01.171630 2019] [:error] [pid XXXXX] [client my_IP_address:56766] PHP Warning:  mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/require/function_search.php on line 617, referer: https://server_IP_adress/ocsreports/index.php?function=visu_search&prov=stat&id_pack=1543418989&stat=***All%20the%20errors***

I run OCS Server 2.5 on Debian 9.0.

Let me know if I did'nt give required information.

Thanks a lot in advance.

Plugins not listed

$
0
0

Plugins are not showing up for installation.

I downloaded several plugins through the address https://plugins.ocsinventory-ng.org by saving directly to the directory "/usr/share/ocsinventory-reports/ocsreports/download", as I read in a documentation.

Even by doing the download process in the correct location, the plugins do not appear for installation.

Can someone help me?

Answered: New guide for installing ocs2.5 on ubuntu 18.04

$
0
0
Hello, can you share the guide ?
I follow the tutorials and it doesnt work.

I want to reinstall the server on ubuntu and use the latest guide to make this softsare work.

Jeremy
ps: sorry for my poor English, i'm french.

Problem with Perl or SQL after instalation

$
0
0

I was install Inventory server (2.3) on Debian 8 and try to connect using Windows Agent. In web application is only record with ID. Server and client connect without problems. In apache log i was found this:

[Tue Nov 20 12:48:04.803998 2018] [mpm_prefork:notice] [pid 5388] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev P
erl/v5.20.2 configured -- resuming normal operations
[Tue Nov 20 12:48:04.804010 2018] [core:notice] [pid 5388] AH00094: Command line: '/usr/sbin/apache2'
DBD::mysql::st execute failed: Table 'ocsweb.software_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apach
e/Ocsinventory/Interface/SoftwareCategory.pm line 48.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/SoftwareCategory.pm line 50.
DBD::mysql::st execute failed: Table 'ocsweb.assets_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apache/
Ocsinventory/Interface/AssetCategory.pm line 78.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/AssetCategory.pm line 80.
DBD::mysql::db do failed: Unknown column 'CATEGORY_ID' in 'field list' at /usr/local/share/perl/5.20.2/Apache/Ocsinve
ntory/Server/Inventory/Update/Hardware.pm line 49.
DBD::mysql::st execute failed: Table 'ocsweb.software_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apach
e/Ocsinventory/Interface/SoftwareCategory.pm line 48.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/SoftwareCategory.pm line 50.
DBD::mysql::st execute failed: Table 'ocsweb.assets_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apache/
Ocsinventory/Interface/AssetCategory.pm line 78.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/AssetCategory.pm line 80.
DBD::mysql::db do failed: Unknown column 'CATEGORY_ID' in 'field list' at /usr/local/share/perl/5.20.2/Apache/Ocsinve
ntory/Server/Inventory/Update/Hardware.pm line 49.
DBD::mysql::st execute failed: Table 'ocsweb.software_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apach
e/Ocsinventory/Interface/SoftwareCategory.pm line 48.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/SoftwareCategory.pm line 50.
DBD::mysql::st execute failed: Table 'ocsweb.assets_categories' doesn't exist at /usr/local/share/perl/5.20.2/Apache/
Ocsinventory/Interface/AssetCategory.pm line 78.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/share/perl/5.20.2/Apache/Ocsinventory
/Interface/AssetCategory.pm line 80.
DBD::mysql::db do failed: Unknown column 'CATEGORY_ID' in 'field list' at /usr/local/share/perl/5.20.2/Apache/Ocsinve
ntory/Server/Inventory/Update/Hardware.pm line 49.


Version mysql = 5.5.62, perl = 5.20.2,

I was try older version newer version but it was problems too. How to resolve this problem?

Answered: New guide for installing ocs2.5 on ubuntu 18.04

http error 500 after system upgrade (mariadb)

$
0
0

Hi,
ocsinventory-ng server on a Debian Stretch.

After the last system upgrade

(Install: libconfig-inifiles-perl(2.94-1), Upgrade: mariadb-common(10.1.26-0+deb9u1, 10.1.37-0+deb9u1), mariadb-server-core-10.1(10.1.26-0+deb9u1, 10.1.37-0+deb9u1), mariadb-server-10.1(10.1.26-0+deb9u1, 10.1.37-0+deb9u1), mariadb-client-10.1(10.1.26-0+deb9u1, 10.1.37-0+deb9u1), mariadb-client-core-10.1(10.1.26-0+deb9u1, 10.1.37-0+deb9u1), libmariadbclient18:i386 (10.1.26-0+deb9u1, 10.1.37-0+deb9u1)

all agents now receive a http error 500:

Starting OCS Inventory NG Agent on Monday, November 26, 2018 11:31:58.
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 <WUT-2018-11-25-15-48-17> and MACs <BA:71:75:85:97:6F> 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 <cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://ocsinventory.cgil.int.cgil.tn.it/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.

in /var/log/apache2/error.log I see these errors, for every agent connection tried:

DBD::mysql::dr connect warning:  at /usr/share/perl5/Apache/DBI.pm line 213.
[Mon Nov 26 11:44:49.289317 2018] [perl:error] [pid 352] [client 192.168.31.113:52312] 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

ocsinventory-ng server version is 2.5, and agents versions are from 2.3.1 to 2.4

Is there a fix for this? Thanks


Answered: New guide for installing ocs2.5 on ubuntu 18.04

Use of Plugins - for example winusers

$
0
0

Hi,

I wan't to use plugins with OCS Inventory.

Debian Server with ocs 2.5 -> Inventory and deployment works on windows agent.

I wan't to user for exampl ethe winusers plugin.

Download and copy to: /usr/share/ocsinventory-reports/ocsreports/download
and install it through the Plugin Manger. All semms good.

Then I copied the winusers.vbs on Windows Agent to: C:\Program Files (x86)\OCS Inventory Agent\Plugins

The map.mp file is in: /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Winusers

I added following entry to /etc/ocsinventory-agent/modules.conf: use Ocsinventory::Agent::Modules::Winusers;

But it doesn't work.
Can somebody tell me whats wrong?
 

Answered: Plugins not listed

$
0
0
Hi,

Which versions of OCS you use?

Regards

Frank

Answered: Plugins not listed

Answered: Plugins not listed

Viewing all 7071 articles
Browse latest View live


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