Skip to main content
Version: v1.7.x

Monitor Dahua Devices

Monitor Dahua devices through HTTP interface to collect health data.

Configuration

ParameterDescription
HostTarget IP/Domain
NameUnique monitor name
PortNetwork port (default 80)
TimeoutRequest timeout in ms
UsernameDevice username
PasswordDevice password
SSLEnable HTTPS
IntervalCollection interval (≥30s)

Metrics

Network Info

  • Default Interface
  • Domain Name
  • Hostname
  • eth0 IP Address
  • eth0 Gateway
  • eth0 MAC
  • eth0 Subnet Mask
  • eth0 MTU
  • DNS Servers

User Info

  • Client Address
  • Username
  • Login Type
  • Login Time

NTP Info

  • NTP Server
  • NTP Port
  • Sync Interval

Implementation

Access device APIs via:

  1. Network: /cgi-bin/configManager.cgi?action=getConfig&name=Network

  2. Users: /cgi-bin/userManager.cgi?action=getActiveUserInfoAll

  3. NTP: /cgi-bin/configManager.cgi?action=getConfig&name=NTP

Using Digest Auth and parsing config format responses.