Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

UNIX AGENT 2.1.1 works, but 2.3 and 2.4 | OCS 2.4 [closed]

Hi.

I've installed ocs agent 2.4 on a virtual machine and tried to send the inventory, got no errors in logs nor the inventory in the server.

Then I tried ocs-ng 2.3 and the same thing happened.

After this I've installed ocs agent 2.1.1 and send the inventory to the server and this time it worked.
closed with the note: Problem solved
in OCS Inventory NG server for Unix by (550 points)
closed by

7 Answers

0 votes
Hi,

Run ocsinventory-agent in debug mode and post ocsinventory-agent.log file content.

Regards

Frank
by (90.2k points)
0 votes
Ok, Frank, I'll send it, but I need to replace my virtual machine, because after removing the 2.1.1 and reinstalling the 2.4 agent it acts like 2.1.1!

The inventory "works" like a 2.1.1 inventory.

I'll come back soon.
by (550 points)
0 votes
Ok, now I have the log file of version 2.4 of agent.
(I removed some log lines for better reading)
[Qua 28 Fev 2018 15:01:01 -03] Running ocsinventory-agent --wait 100
[Wed Feb 28 15:01:01 2018][info] Accountinfo file doesn't exist. I create an empty one.
[Wed Feb 28 15:02:20 2018][info] [snmp] Agent is running in local mode...disabling module
[Wed Feb 28 15:02:20 2018][info] [download] Agent is running in local mode...disabling module
[Wed Feb 28 15:02:20 2018][error] [download] LWP::Protocol::https perl module is missing !!
[Wed Feb 28 15:02:20 2018][error] [download] Humm my prerequisites are not OK...disabling module :( :(
[Wed Feb 28 15:02:25 2018][info] Inventory saved in /var/lib/ocsinventory-agent/c7ocs24-2018-02-28-15-01-01.ocs
 --server ignored since you also use --local
 OCS Agent initialised
 Turns hooks on for /etc/ocsinventory/modules.conf
 Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3.1
 Log system initialised (File)
 [snmp] Agent is running in local mode...disabling module
  - Net::SNMP loaded
 [download] Agent is running in local mode...disabling module
  - LWP loaded
[Wed Feb 28 15:04:07 2018][error] [download] LWP::Protocol::https perl module is missing !!
[Wed Feb 28 15:04:07 2018][error] [download] Humm my prerequisites are not OK...disabling module :( :(
 Failed to load Ocsinventory::Agent::Backend::OS::Generic::Repository::Debian: Search pattern not terminated at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Generic/Repository/Debian.pm line 29.
Compilation failed in require at (eval 219) line 1.
BEGIN failed--compilation aborted at (eval 219) line 1.
  - dmidecode found
  - Sys::Hostname loaded
  - lspci found
  - lspci found
  - lsusb found
  - yum found
 Ocsinventory::Agent::Backend::OS::Generic::Repository::Rhel ignored
  - monitor-get-edid-using-vbe found
  - /proc/cpuinfo can be read
  - hostname found
  - /etc/resolv.conf can be read
  - df found
  - pvs found
  - /proc/meminfo can be read
  - ip found
  - ip found
  - route found
  - Net::IP qw(:PROC) loaded
  - lspci found
  - lsscsi found
  - smartctl found
  - mount found
  - /proc/uptime can be read
  - dmidecode found
  - Sys::Hostname loaded
  - dumpe2fs found
  - xfs_db found
  - pvs found
  - vgs found
  - lvs found
 Running Ocsinventory::Agent::Backend::OS::Linux::Mem
 Running Ocsinventory::Agent::Backend::OS::Linux::Network::IP
  - ip found
 Running Ocsinventory::Agent::Backend::OS::Linux::Network::Networks
  - ip found
 Running Ocsinventory::Agent::Backend::OS::Linux::Sounds
 Running Ocsinventory::Agent::Backend::OS::Linux::Storages
  - udevadm found
  - udevadm found
 Running Ocsinventory::Agent::Backend::OS::Linux::Sys
 Running Ocsinventory::Agent::Backend::OS::Linux::Uptime
 Calling handlers : `inventory_handler'
 Section INPUT has changed since last inventory
 Section BIOS has changed since last inventory
 Section PRINTERS has changed since last inventory
 Section VIDEOS has changed since last inventory
 Section HARDWARE has changed since last inventory
 Section SOUNDS has changed since last inventory
 Section BATTERIES has changed since last inventory
 Section SOFTWARES has changed since last inventory
 Section MEMORIES has changed since last inventory
 Section CONTROLLERS has changed since last inventory
 Section VIRTUALMACHINES has changed since last inventory
 Section STORAGES has changed since last inventory
 Section NETWORKS has changed since last inventory
 Section MODEMS has changed since last inventory
 Section MONITORS has changed since last inventory
 Section DRIVES has changed since last inventory
 Section PORTS has changed since last inventory
 Section REGISTRY has changed since last inventory
 Section SLOTS has changed since last inventory
 Section CPUS has changed since last inventory
 Missing value(s): SSN . I will send this inventory to the server BUT important value(s) to identify the computer are missing
 Inventory saved in /var/lib/ocsinventory-agent/c7ocs24-2018-02-28-15-04-07.ocs
 Calling handlers : `end_handler'

I'm using Centos 7 in both server and client.
by (550 points)
edited by
LWP::Protocol::https perl module is missing

So if you use Centos 7, if you don't want to have missing dependancies : use our repository : https://www.ocsinventory-ng.org/en/rpm-repository-is-available-for-rhelcentosfedora/
0 votes
A missing dependency....

But, I've used the repository from rpm.ocsinventory-ng.org.

Ok, installed this package: perl-LWP-Protocol-https via yum, but the problem persists.

Still searching a solution.
by (550 points)
edited by
0 votes
Ok guys, after trying send the inventory I found in the log file the server parameter was ignored.

Then I put my server address in /etc/ocsinventory/ocsinventory-agent.cfg and now it worked!

Thanks.
by (550 points)
0 votes
Hi! where did you download unix agen 2.4? Could you please share URL?
by (400 points)
0 votes
Sure!

Just follow the instructions: https://www.ocsinventory-ng.org/en/rpm-repository-is-available-for-rhelcentosfedora/

Well, the RPM package is in version 2.4, but OCS server still identify as a ocs agent version 2.3.1.
by (550 points)
 
Powered by Question2Answer
...