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.8 available

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

Private/custom MIBs not utilized by Unix agents

Hello,

I´m struggling with OCS Inventory´s SNMP scan of special network devices like APC UPS NMCs, Netgear smart managed switches, WD My Cloud NAS and Mediatrix VoIP Gateways. The elected or dedicated Unix agents obviously do not use the available private/custom MIBs for these devices although „snmpget“ and „snmpwalk“ commands do work as expected.

Server: v2.7,  Debian 10, PHP 7.3.19, Apache 2.4.38, Debian 10 version 10.3.23-MariaDB-0+deb10u1, VMware 15.5 platform

Agents: v2.6.1, Ubuntu 18.04.5 LTS on VMware 15.5 platform and Raspbian GNU/Linux 10 (Raspberry Pi OS Lite Linux Kernel 5.4.51) on Raspberry Pi ARMv6 platform

Those devices appear in agent´s debug log as:
[time-stamp][debug] [snmp] Scanning <IP-Address> device
[time-stamp][debug] [snmp] Launching Default
[time-stamp][debug] [snmp] Running Default MIB module
[time-stamp][debug] [snmp] Launching If_Mib
[time-stamp][debug] [snmp] Running If MIB module

The server´s SNMP inventory does contain these devices but with very poor information only (basically network interfaces and in case of NAS some drive and memory information too).

Interestingly our RICOH printer devices appear in agent´s debug log as:
[time-stamp][debug] [snmp] Scanning <IP-Address> device
[time-stamp][debug] [snmp] Launching Default
[time-stamp][debug] [snmp] Running Default MIB module
[time-stamp][debug] [snmp] Launching If_Mib
[time-stamp][debug] [snmp] Running If MIB module
[time-stamp][debug] [snmp] Launching Host_Resources_Mib
[time-stamp][debug] [snmp] Running Host Resources MIB module
[time-stamp][debug] [snmp] Launching Printer_Mib
[time-stamp][debug] [snmp] Running Printer MIB module

These devices show up with some more information in the server´s SNMP inventory.

I´ve tried to setup some SNMP types and labels in the SNMP configuration using the private/custom MIBs but that doesn´t have any effect. It seems to me that I don´t understand OCS Inventory´s  functionality right (yes I read the documentation thoroughly more than once!).

Is there any more detailed documentation about the SNMP functionality? Probably some working examples? Where´s my fault? 

Thanks a lot!

PS:
Agent console errors (debug mode):

pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
Argument "" isn't numeric in multiplication (*) at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm line 62.  
(<--- Yes I read post #12017 but still there on interactively installed agents with corrected Deb.pm ...)
Use of uninitialized value in subroutine entry at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 342.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 459.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 463.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 464.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 465.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 466.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 470.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 496.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 540.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 542.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 543.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 548.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 549.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 548.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 549.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 573.

in OCS Inventory NG agent for Unix by (330 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...