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
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?
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.
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?
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?
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
Bonjour,
avec quelques petites adaptations/rajouts pour ubuntu quand même
Je rajoute que debian est un peu plus performant qu'ubuntu
Cordialement
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?
Good Morning,
I'm using 2.6RC