Dahua NVR system name not being recognised

Tags: #<Tag:0x00007f84a1edb570> #<Tag:0x00007f84a1edb4a8>

Hello All,

we have several dahua NVRs recording our security cameras. I was able to enable SNMP and librenms has found the first one, and scanned it. However, it won’t find the system name.

Because it hasn’t found the system name, I can’t add any further units, as the system says that it already has one by that name.

When I do an SNMP walk, it returns nothing for system name, as shown here.

SNMPv2-MIB::sysName.0 = STRING: (none)

When I do an SNMP walk, I can find the NVR’s name with a particular OID as such:

.1.3.6.1.4.1.1004849.2.1.2.9.0 = STRING: “DVR2”

Is there anyway (via a config file or something) to tell librenms to use that OID to get the system name?
Is there some way I can do this under the custom OID area?

There is some further information on the issue in this thread.

However, I seem to be mostly working, except I can’t get the system name recognised.

Any assistance would be greatly appreciated.

Regards,
Chris.

====================================

Component Version
LibreNMS 21.7.0
DB Schema 2021_06_07_123600_create_sessions_table (211)
PHP 7.4.20
Python 3.6.9
MySQL 10.5.11-MariaDB-1:10.5.11+maria~bionic
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 2.1.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

One further thing, as a byproduct of this issue, I’m unable to add any more of these devices, as the system is saying I have a duplicate name. (note the first device is dvr2.xxxxx)

1 Like

It looks like the system name should be pulled from the DAHUA-SNMP-MIB Line 171

DAHUA-SNMP-MIB::machineName.0

However I am unsure how to override it or if it’s even possible.