Skip to main content

Hikvision NVR SNMP

Pack Assets​

Templates​

The Centreon Pack Hikvision NVR SNMP brings 1 host template:

  • HW-Device-Hikvision-Nvr-SNMP-custom

It brings the following Service Templates:

Service AliasService TemplateDefaultDiscovery
DisksHW-Device-Hikvision-Nvr-Disks-SNMPX
MemoryHW-Device-Hikvision-Nvr-Memory-SNMPX
UptimeHW-Device-Hikvision-Nvr-Uptime-SNMPX

Collected metrics & status​

Metric nameDescriptionUnit
statusStatus of the disk
disks.total.countCurrent number of disks
disks.errors.countCurrent number of disks with status: abnormal, smartfailed
disk_name#disk.space.usage.bytesSpace used on the diskB
disk_name#disk.space.free.bytesFree space left on the diskB
disk_name#disk.space.usage.percentageSpace used on the disk in percentage%

Prerequisites​

SNMP Configuration​

To use this pack, the SNMP service must be properly configured on your device.

Network flow​

The target equipment must be reachable from the Centreon Poller on the UDP/161 SNMP port.

Setup​

  1. Install the Centreon Plugin package on every Centreon poller expected to monitor Hikvision NVR SNMP resources:
yum install centreon-plugin-Hardware-Devices-Hikvision-Nvr-Snmp
  1. On the Centreon Web interface, install the Hikvision NVR SNMP Centreon Pack on the Configuration > Plugin Packs page.

Configuration​

Host​

  • Log into Centreon and add a new Host through Configuration > Hosts
  • Fill the Name, Alias & IP Address / DNS fields according to your Hikvision NVR SNMP server settings
  • Select the HW-Device-Hikvision-Nvr-SNMP-custom template to apply to the Host

If you are using SNMP Version 3, use the SNMPEXTRAOPTIONS Macro to configure your own SNMPv3 credentials combo.

MandatoryNameDescription
SNMPEXTRAOPTIONS(Default: 'Configure your own SNMPv3 credentials combo')

How to check in the CLI that the configuration is OK and what are the main options for?​

Once the plugin is installed, log into your Centreon Poller CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins/centreon_hikvision_nvr_snmp.pl \
--plugin=hardware::devices::hikvision::nvr::snmp::plugin \
--mode=memory \
--hostname='10.0.0.1' \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--warning-usage-prct='' \
--critical-usage-prct='' \
--verbose

The expected command output is shown below:

OK: Memory total: 500.00 MB used: 25.00 MB (5.00%) free: 475.00 MB (95.00%) | 'memory.usage.bytes'=26214400B;;;0;524288000 'memory.free.bytes'=498073600B;;;0;524288000 'memory.usage.percentage'=5.00%;;;0;100

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_hikvision_nvr_snmp.pl \
--plugin=hardware::devices::hikvision::nvr::snmp::plugin \
--mode=memory \
--help

All available options for a given mode can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins/centreon_hikvision_nvr_snmp.pl \
--plugin=hardware::devices::hikvision::nvr::snmp::plugin \
--list-mode

Troubleshooting​

Please find all the troubleshooting documentation for the Centreon Plugins in the dedicated page.