OCSInventory-NG / UnixAgent

This is the OCS unified agent for Unix operating systems
http://www.ocsinventory-ng.org/en/
GNU General Public License v2.0
89 stars 84 forks source link

Agent (installed from apt repository) doesn't download and execute packages #428

Closed topinet closed 1 year ago

topinet commented 1 year ago

General informations

Operating system : Debian 11 Perl version : v5.32.1

OCS Inventory informations

Unix agent version : 2.10.0

Problem's description

Agent (installed from apt repository) doesn't download and execute packages. In the agent logfile nothing is printed after the line "[Thu Feb 16 12:13:47 2023][debug] =END=SERVER RET======"

In the same host, uninstalling ocsinventory-agent and installing it from tarball, the agent downloads and executes packages as expected. In this second case, after the line "[Thu Feb 16 12:13:47 2023][debug] =END=SERVER RET======" it prints the lines:

[Thu Feb 16 12:13:47 2023][debug] Calling handlers : `end_handler'
[Thu Feb 16 12:13:47 2023][debug] [download] Calling download_end_handler
[Thu Feb 16 12:13:47 2023][debug] [snmpscan] Calling snmp_end_handler
[Thu Feb 16 12:13:47 2023][info] [download] Beginning work. I am 49558.
[Thu Feb 16 12:13:47 2023][debug] [download] Checking timeout for 1676545967... OK
[...]

Inventory log file ( optional )

Use github cloud or trusted upload website

topinet commented 1 year ago

I've found the problem, if it helps:

modules.conf file (under /etc/ocsinventory folder) returns an error on the packaged agent, because of failing to locate Ocsinventory/Agent/Modules/Snmp.pm.

Commenting that line Snmp.pm, the download module works well.