SNMP MIB?

LostGuy

n3wb
Dec 6, 2017
13
11
Does anyone know where the MIB for Dahua cameras can be found? The devices are reporting quite a bit over SNMP, but without a MIB it's a bit of guesswork to figure out what each OID is reporting. Would ultimately like to get discovery and monitoring sorted for our NMS. I couldn't turn up the MIB via Google or a search here or on the Dahua site(s)...anyone?
 
Not sure what most of those acronyms are , but you need to prevent the cameras from accessing the internet. Hit the “Cliff Notes” link in my signature for some good information.


Sent from my iPhone using Tapatalk
 
Thanks. Your Cliff Notes were helpful in getting the cams integrated into the environment. At this point, the network is well sorted. The cams and BI are isolated in their own VLAN, and access is controlled via both firewall rules and OpenVPN running on the pfSense router on the network edge. Only the BI server has any access external to the VLAN.

SNMP is a standard protocol for tracking the health and status of network connected devices. The cams report a ton of useful information via SNMP (model, hostname, network configuration & utilization, uptime, firmware version) on (mostly) standard SNMPv2 OIDs. However, when I snmpwalk the devices, they are also reporting quite a bit via enterprise OIDs. For example:

Code:
.1.3.6.1.4.1.1004849.2.3.1.1.1.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.1004849.2.3.1.1.1.1.2.1 = STRING: "H.264H"
.1.3.6.1.4.1.1004849.2.3.1.1.1.1.3.1 = INTEGER: 15
.1.3.6.1.4.1.1004849.2.3.1.1.1.1.4.1 = STRING: "1080P"
.1.3.6.1.4.1.1004849.2.3.1.1.1.1.5.1 = INTEGER: 2048

This appears to be the codec, fps, resolution and bitrate of the main video stream. Similar information is available for the substreams.

Generally, when a vendor reports information unique to the device, they provide a MIB that provides a mapping of the numerical OID (the string of numbers - e.g. .1.3.6.1.4.1.1004849.2.3.1.1.1.1.2.1) to a description of what is being reported. Having this information would allow us to monitor additional health, status and configuration information for every camera in our centralized network management system (in our case, LibreNMS).
 
  • Like
Reactions: Valiant
Taking one more crack at this to see if anyone has any ideas on where the MIBs can be acquired. LibreNMS has recently added basic detection for Dahua cams and NVRs, but further progress is stalled without the MIB files. Dahua references the files in their manuals (e.g. BASE-SNMP-MIB, NVR-SNMP-MIB) but they don't seem to be available anywhere... @EMPIRETECANDY any ideas?
 
Thanks! Submitted for inclusion in LibreNMS. This will make integration with existing alerting infrastructure so much easier...