SNMP MIB?

Discussion in 'Dahua' started by LostGuy, Jan 11, 2018.

Share This Page

  1. LostGuy

    LostGuy n3wb

    Joined:
    Dec 6, 2017
    Messages:
    13
    Likes Received:
    13
    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?
     
  2. giomania

    giomania Getting comfortable

    Joined:
    Jun 1, 2017
    Messages:
    634
    Likes Received:
    380
    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
     
    Hans007 and looney2ns like this.
  3. LostGuy

    LostGuy n3wb

    Joined:
    Dec 6, 2017
    Messages:
    13
    Likes Received:
    13
    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).
     
    Valiant likes this.
  4. LostGuy

    LostGuy n3wb

    Joined:
    Dec 6, 2017
    Messages:
    13
    Likes Received:
    13
    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?
     
  5. iTuneDVR

    iTuneDVR Getting the hang of it

    Joined:
    Aug 23, 2014
    Messages:
    343
    Likes Received:
    39
    Location:
    www.iTuneDVR.ru
    adamg and LostGuy like this.
  6. LostGuy

    LostGuy n3wb

    Joined:
    Dec 6, 2017
    Messages:
    13
    Likes Received:
    13
    Glad I asked again. Many thanks! Any chance you have the base MIB too?
     
  7. iTuneDVR

    iTuneDVR Getting the hang of it

    Joined:
    Aug 23, 2014
    Messages:
    343
    Likes Received:
    39
    Location:
    www.iTuneDVR.ru
  8. LostGuy

    LostGuy n3wb

    Joined:
    Dec 6, 2017
    Messages:
    13
    Likes Received:
    13
    Thanks! Submitted for inclusion in LibreNMS. This will make integration with existing alerting infrastructure so much easier...
     
  9. iTuneDVR

    iTuneDVR Getting the hang of it

    Joined:
    Aug 23, 2014
    Messages:
    343
    Likes Received:
    39
    Location:
    www.iTuneDVR.ru
  10. 0blar

    0blar Getting the hang of it

    Joined:
    May 17, 2017
    Messages:
    244
    Likes Received:
    21
  11. iTuneDVR

    iTuneDVR Getting the hang of it

    Joined:
    Aug 23, 2014
    Messages:
    343
    Likes Received:
    39
    Location:
    www.iTuneDVR.ru
Tags: