zabbix_export: version: '6.0' date: '2021-11-21T21:53:28Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 62ccbdad40514a86bd8af2039ddf23de template: Hikvision name: Hikvision description: | ## Overview ### Brief information: Template for Hikvision company NVR's (Network Video Recorder) using SNMPv2. Tested on Zabbix v4.4 and Hikvision NVR 9664-i8 ### Information covered by a template: * Low Level Discovery + LLD of installed HDD's statuses + LLD of installed HDD's capacity + LLD of installed HDD's free space * Triggers + HDD count change + HDD state change * Items + Count of installed HDD's + Device uptime + Number of NIC + Device description * Mappings + HDD disk state mappings ## Author Omar Bayramov, David Sitnikov groups: - name: Templates items: - uuid: 18a372afa62c4bdf8310938f46669bb8 name: 'Installed HDD count' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.50001.1.240.0 key: hikDiskNum.0 delay: 6h tags: - tag: Application value: HDD triggers: - uuid: 4c0ade8a166949c99e9cacdfcc851f61 expression: change(/Hikvision/hikDiskNum.0)>=1 name: 'HDD count changed on {HOST.NAME}' priority: AVERAGE - uuid: 60fa7e501ddb4e83bca1886a28b552fd name: 'Number of network interfaces' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifNumber.0' key: ifNumber delay: 1h history: 7d description: 'The number of network interfaces (regardless of their current state) present on this system.' - uuid: 8f872464aa15443e87f8a3416bbb95fb name: 'Device description' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysDescr.0' key: sysDescr delay: 4h history: 7d trends: '0' value_type: CHAR description: 'A textual description of the entity. This value should include the full name and version identification of the system''s hardware type, software operating-system, and networking software.' inventory_link: HARDWARE tags: - tag: Application value: General - uuid: 808c020edfde4f4f87895d0657123a93 name: 'Device uptime' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysUpTime.0' key: sysUpTime delay: '60' history: 7d units: uptime description: 'The time since the network management portion of the system was last re-initialized.' preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: General discovery_rules: - uuid: d8723268100044d798a47e70c424efb6 name: DIskVolume type: SNMP_AGENT snmp_oid: 'discovery[{#HIKDINDEX}, HIKVISION-MIB::hikDiskIndex,{#HIKVOLUME}, HIKVISION-MIB::hikDiskVolume, {#HIKDISKSTATUS}, HIKVISION-MIB::hikDiskStatus, {#HIKDISKFS},HIKVISION-MIB::hikDiskFreeSpace, {#HIKDISKCAP}, HIKVISION-MIB::hikDiskCapability]' key: hikDiskVolume delay: 30s item_prototypes: - uuid: 0f6d8fe22fb94b3daa1f7fab38435d83 name: 'HDD capability on {#HIKDINDEX}' type: SNMP_AGENT snmp_oid: 'HIKVISION-MIB::hikDiskCapability.{#HIKDINDEX}.0' key: 'hikDiskCapability[{#HIKDINDEX}]' delay: 12h history: 30d tags: - tag: Application value: HDD - uuid: bdea8699456b4990a942a5f88a47e2f4 name: 'HDD free space on {#HIKDINDEX}' type: SNMP_AGENT snmp_oid: 'HIKVISION-MIB::hikDiskFreeSpace.{#HIKDINDEX}.0' key: 'hikDiskFreeSpace[{#HIKDINDEX}]' delay: 3h history: 30d valuemap: name: 'Hikvision HDD state mapping' tags: - tag: Application value: HDD - uuid: a3871c0ca1794c0e884502a0233444ad name: 'HDD Status on {#HIKDINDEX}' type: SNMP_AGENT snmp_oid: 'HIKVISION-MIB::hikDiskStatus.{#HIKDINDEX}.0' key: 'hikDiskStatus[{#HIKDINDEX}]' delay: 30m history: 30d valuemap: name: 'Hikvision HDD state mapping' tags: - tag: Application value: HDD valuemaps: - uuid: ba2e2f02fc02474c8471bc6fe1a30645 name: 'Hikvision HDD state mapping' mappings: - value: '0' newvalue: normal - value: '1' newvalue: unformatted - value: '2' newvalue: abnormal - value: '3' newvalue: smartfailed - value: '4' newvalue: mismatch - value: '5' newvalue: idle - value: '6' newvalue: notonline - value: '10' newvalue: repairing - value: '11' newvalue: formatting