Skip to content

SNMP import error #401

Description

@smart11kft

Hello, it's a fresh installation.

Ubuntu 24 LTS
Apache 2.4.58
PHP 8.3.6
Mariadb 10.11.14

OCS Inventory: 2.12.3
GLPI: 11.0.5
GLPI OCS Inventory plugin: 2.1.7 (tested also with v2.1.11, I upgraded the plugin)

[2026-04-08 16:21:50] glpi.CRITICAL: *** Uncaught PHP Exception RuntimeException: "MySQL query error: Table 'ocsdb.snmp' doesn't exist (1146) in SQL query "SELECT DISTINCT snmp.ID
FROM snmp, snmp_accountinfo
WHERE snmp.SNMPDEVICEID NOT LIKE '_%'
AND snmp.ID = snmp_accountinfo.SNMP_ID "." at DBmysql.php line 405
Backtrace :
./src/DBmysql.php:405
./plugins/ocsinventoryng/src/OcsDbClient.php:1548 DBmysql->doQuery()
./plugins/ocsinventoryng/src/SnmpOcslink.php:2338 GlpiPlugin\Ocsinventoryng\OcsDbClient->getSnmp()
...s/ocsinventoryng/front/ocsngsnmp.import.php:130 GlpiPlugin\Ocsinventoryng\SnmpOcslink::showSnmpDeviceToAdd()
...Glpi/Controller/LegacyFileLoadController.php:64 require()
./vendor/symfony/http-kernel/HttpKernel.php:181 Glpi\Controller\LegacyFileLoadController->__invoke()
./vendor/symfony/http-kernel/HttpKernel.php:76 Symfony\Component\HttpKernel\HttpKernel->handleRaw()
./vendor/symfony/http-kernel/Kernel.php:197 Symfony\Component\HttpKernel\HttpKernel->handle()
./public/index.php:71 Symfony\Component\HttpKernel\Kernel->handle()

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions