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.
opened 10:57AM - 22 Jan 18 UTC
closed 01:45PM - 26 Apr 18 UTC
Device
DO NOT DELETE THIS INFORMATION.
> Please read this information carefully.
… GitHub issues is for known/validated bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our [Discord server](https://t.libren.ms/discord) to ask questions or our [community site](https://community.librenms.org).
If you have a feature request please post this on our [community site](https://community.librenms.org/c/feature-requests).
Please confirm each of the sections below by putting an `x` in the box like `[x]`.
- [X] Is your install up to date? [Updating your install](http://docs.librenms.org/General/Updating/)
Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
- [ X] Please include all of the information between the `====================================` section of `./validate.php` which you can run from the cli.
Component | Version
--------- | -------
LibreNMS | 1.33-382-gfbca432
DB Schema | 230
PHP | 7.0.25
MySQL | 10.1.30-MariaDB
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.2
- [ X] Please provide ALL info asked for [here](http://docs.librenms.org/Support/FAQ/#faq20).
Dahua Network Video recorder not detected.
Actual Product: Dahua DH-NVR4108HS-8P-4KS2 Video Camera Recorder
http://www.dahuasecurity.com/products/productDetail/8261
./discovery.php -h nvr,secureconsult.com.au -d | ./pbin.sh: https://p.libren.ms/view/75d5dffc
./poller.php -h nvr.secureconsult.com.au -r -f -d | ./pbin.sh: https://p.libren.ms/view/75d5dffc
snmpbulkwalk -OUneb -v2c -c public nvr . | ./pbin.sh: https://p.libren.ms/view/4f1a670f
[root@family librenms]# ./discovery.php -h nvr.secureconsult.com.au -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.12148.10.2.6.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.12148.10.2.6.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: Q-BRIDGE-MIB::dot1qVlanVersionNumber.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: BRIDGE-MIB::dot1dStpProtocolSpecification.0
title:
name: root
private: 1
expire: 0
- [ X] Please provide as much detail as possible.
Nessus scanner says its running OS:Linux Kernel 2.6
It also runs 8 Dahua POE cameras (Dahua NT-HDW1220SP-0280B 2Mp Cameras), which each have an ethernet interface which produce SNMP stats
http://www.dahuasecurity.com/products/productDetail/5471
- [x] Please do NOT post more than 10 lines of debug information here, use a pastebin service or GitHub Gists.
Love librenms? Please consider supporting our collective:
👉 https://t.libren.ms/donations
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.
system
Closed
11 November 2021 14:53
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.