Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
grcamposdev opened this issue May 31, 2024 · 4 comments

Comments

@grcamposdev
Copy link

grcamposdev commented May 31, 2024

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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

@githubdanieldiehl
Copy link

githubdanieldiehl commented Oct 30, 2024

You have 2 problem!

1 problem: configure user.pm line 109

image

2 problem:
Configure ocsinventory-agent.conf
Your "server=http..." are maybe wrong!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants