OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
348 stars 139 forks source link

Inventory by SNMP Inventory happening, XML sent but data is not inserted into the database and no error is displayed. #459

Open grcamposdev opened 4 months ago

grcamposdev commented 4 months ago

General information

Operating system: Ubuntu 22.04.04 PHP Version: 8.1.2 Web Server: Apache/2.4.52 (Ubuntu)

Server information

Perl version: 5, version 34, subversion 0 (v5.34.0) MySQL/Mariadb/Percona version: 10.6.16-MariaDB-0ubuntu0.22.04.1

OCS inventory information

Ocs server version: 2.12.1

Problem's description

Problem: SNMP inventory does not appear in the database after sending xml.

LINUX AGENT SCAN

When performing the SNMP scan, the agent can list the devices and their properties. However, when sending the XML at the end of the scan, the data is not stored in the database, but it is possible to see the data in the XML generated by the agent.

Note: there are no errors in the webserver, bank or OCS agent logs.

Below is a screenshot of the agent being executed

SNMP_SCAN

SNMP_XML

charleneauger commented 3 weeks ago

Hi @grcamposdev ,

Since the unix agent 2.8 version, the Ocsinventory::Agent::Modules::Snmp; not being used. Check your agent modules.conf file and replace the old module by the newest Ocsinventory::Agent::Modules::SnmpScan;.

Launch your agent and now, in your agent log file you should see [debug][snmpscan] instead of [debug][snmp].

Best regards, Charlene

grcamposdev commented 3 weeks ago

Hi @charleneauger

Thank you   I did as you mentioned, I enabled snmpscan and it showed an error as shown in the image below.   image

image

Could you direct me to validate what might be happening?

charleneauger commented 3 weeks ago

Hi @grcamposdev ,

Did you configure the SNMP on the administration console ?

You will find all documentations with the following links:

Also, do you have any error on your apache error log on your OCS server communication ?

Best regards, Charlene