This template is designed for the effortless deployment of Hikvision cameras monitoring by Zabbix via HTTP and doesn't require any external scripts.
Zabbix version: 7.4 and higher.
This template has been tested on:
Zabbix should be configured according to the instructions in the Templates out of the box section.
Set the hostname or IP address of the Hikvision ISAPI host in the {$HIKVISION_ISAPI_HOST}
macro.
Set the user name and password in the {$PASSWORD}
and {$USER}
macros.
Change other macros according to your camera configuration if necessary.
Name | Description | Default |
---|---|---|
{$CPU.UTIL.CRIT} | 90 |
|
{$HIKVISIONISAPIHOST} | The hostname or IP address of the Hikvision ISAPI host. |
<SET ISAPI HOST> |
{$HIKVISIONISAPIPORT} | ISAPI port on device |
80 |
{$HIKVISIONMAINCHANNEL_ID} | Main video stream ID |
101 |
{$HIKVISIONSTREAMHEIGHT} | Main video stream image height |
1080 |
{$HIKVISIONSTREAMWIDTH} | Main video stream image width |
1920 |
{$MEMORY.UTIL.MAX} | 95 |
|
{$PASSWORD} | 1234 |
|
{$USER} | admin |
Name | Description | Type | Key and additional info |
---|---|---|---|
Boot loader released date | Dependent item | hikvisioncam.bootreleased_date Preprocessing
|
|
Boot loader version | Dependent item | hikvisioncam.bootversion Preprocessing
|
|
CPU utilization | CPU utilization in % |
Dependent item | hikvision_cam.cpu.util Preprocessing
|
Current device time | Dependent item | hikvisioncam.currentdevice_time Preprocessing
|
|
Device description | Dependent item | hikvisioncam.devicedescription Preprocessing
|
|
Device ID | Dependent item | hikvisioncam.deviceid Preprocessing
|
|
Device location | Dependent item | hikvisioncam.devicelocation Preprocessing
|
|
Device name | Dependent item | hikvisioncam.devicename Preprocessing
|
|
Device type | Dependent item | hikvisioncam.devicetype Preprocessing
|
|
Encoder released date | Dependent item | hikvisioncam.encoderreleased_date Preprocessing
|
|
Encoder version | Dependent item | hikvisioncam.encoderversion Preprocessing
|
|
Firmware released date | Dependent item | hikvisioncam.firmwarereleased_date Preprocessing
|
|
Firmware version | Dependent item | hikvisioncam.firmwareversion Preprocessing
|
|
Get device info | Used to get the device information |
HTTP agent | hikvisioncam.getinfo Preprocessing
|
Get device info: Login status | Dependent item | hikvisioncam.getinfo.login_status Preprocessing
|
|
Get system status | It is used to get the status information of the device |
HTTP agent | hikvisioncam.getstatus Preprocessing
|
Get system status: Login status | Dependent item | hikvisioncam.getstatus.login_status Preprocessing
|
|
Get streaming channels | Used to get the properties of streaming channels for the device |
HTTP agent | hikvisioncam.getstreaming Preprocessing
|
Get streaming channels: Login status | Dependent item | hikvisioncam.getstreaming.login_status Preprocessing
|
|
Hardware version | Dependent item | hikvisioncam.hardwareversion Preprocessing
|
|
MACaddress | Dependent item | hikvisioncam.macaddress Preprocessing
|
|
Memory utilization | Memory utilization in % |
Dependent item | hikvision_cam.memory.usage Preprocessing
|
Model | Dependent item | hikvision_cam.model Preprocessing
|
|
Serial number | Dependent item | hikvisioncam.serialnumber Preprocessing
|
|
Supported beep | Dependent item | hikvisioncam.supportbeep Preprocessing
|
|
Supported video loss | Dependent item | hikvisioncam.supportvideo_loss Preprocessing
|
|
System contact | Dependent item | hikvisioncam.systemcontact Preprocessing
|
|
Telecontrol ID | Dependent item | hikvisioncam.telecontrolid Preprocessing
|
|
Uptime | The system uptime expressed in the following format: "N days, hh:mm:ss". |
Dependent item | hikvision_cam.uptime Preprocessing
|
Name | Description | Expression | Severity | Dependencies and additional info |
---|---|---|---|---|
Hikvision: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Hikvision camera by HTTP/hikvision_cam.cpu.util,5m)>{$CPU.UTIL.CRIT} |Warning |
||
Hikvision: Version has changed | Hikvision camera version has changed. Acknowledge to close the problem manually. |
last(/Hikvision camera by HTTP/hikvision_cam.firmware_version,#1)<>last(/Hikvision camera by HTTP/hikvision_cam.firmware_version,#2) and length(last(/Hikvision camera by HTTP/hikvision_cam.firmware_version))>0 |Info |
Manual close: Yes | |
Hikvision: Authorisation error | Check the correctness of the authorization data |
last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=1 or last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=1 or last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=1 |Warning |
Manual close: Yes | |
Hikvision: Error receiving data | Check the availability of the HTTP port |
last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=2 or last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=2 or last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=2 |Warning |
Manual close: Yes | |
Hikvision: High memory utilization | The system is running out of free memory. |
min(/Hikvision camera by HTTP/hikvision_cam.memory.usage,5m)>{$MEMORY.UTIL.MAX} |Average |
||
Hikvision: Camera has been replaced | Camera serial number has changed. Acknowledge to close the problem manually. |
last(/Hikvision camera by HTTP/hikvision_cam.serial_number,#1)<>last(/Hikvision camera by HTTP/hikvision_cam.serial_number,#2) and length(last(/Hikvision camera by HTTP/hikvision_cam.serial_number))>0 |Info |
Manual close: Yes | |
Hikvision: Camera has been restarted | Uptime is less than 10 minutes. |
last(/Hikvision camera by HTTP/hikvision_cam.uptime)<10m |Info |
Manual close: Yes |
Name | Description | Type | Key and additional info |
---|---|---|---|
PTZ discovery | HTTP agent | hikvision_cam.ptz.discovery Preprocessing
|
Name | Description | Type | Key and additional info |
---|---|---|---|
Channel "{#PTZCHANNELID}": Get PTZ info: Channel "{#PTZCHANNELID}": Login status | Dependent item | hikvisioncam.getptz.loginstatus[{#PTZCHANNEL_ID}] Preprocessing
|
|
Channel "{#PTZCHANNELID}": Get PTZ info | High precision positioning which is accurate to a bit after the decimal point |
HTTP agent | hikvisioncam.getptz[{#PTZCHANNELID}] Preprocessing
|
Channel "{#PTZCHANNELID}": Absolute zoom | Dependent item | hikvisioncam.ptz.absolutezoom[{#PTZCHANNELID}] Preprocessing
|
|
Channel "{#PTZCHANNELID}": Azimuth | Dependent item | hikvisioncam.ptz.azimuth[{#PTZCHANNEL_ID}] Preprocessing
|
|
Channel "{#PTZCHANNELID}": Elevation | Dependent item | hikvisioncam.ptz.elevation[{#PTZCHANNEL_ID}] Preprocessing
|
Name | Description | Expression | Severity | Dependencies and additional info |
---|---|---|---|---|
Hikvision: Channel "{#PTZCHANNELID}": Authorisation error | Check the correctness of the authorization data |
last(/Hikvision camera by HTTP/hikvision_cam.get_ptz.login_status[{#PTZ_CHANNEL_ID}])=1 |Warning |
Manual close: Yes Depends on:
|
|
Hikvision: Channel "{#PTZCHANNELID}": Error receiving data | Check the availability of the HTTP port |
last(/Hikvision camera by HTTP/hikvision_cam.get_ptz.login_status[{#PTZ_CHANNEL_ID}])=2 |Warning |
Manual close: Yes Depends on:
|
|
Hikvision: Channel "{#PTZCHANNELID}": PTZ position changed | The direction of the camera has changed |
last(/Hikvision camera by HTTP/hikvision_cam.ptz.absolute_zoom[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.absolute_zoom[{#PTZ_CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.ptz.azimuth[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.azimuth[{#PTZ_CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.ptz.elevation[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.elevation[{#PTZ_CHANNEL_ID}],#2) |Info |
Manual close: Yes |
Name | Description | Type | Key and additional info |
---|---|---|---|
Streaming channels discovery | HTTP agent | hikvision_cam.streaming.discovery Preprocessing
|
Name | Description | Type | Key and additional info |
---|---|---|---|
Channel "{#CHANNEL_ID}": Constant bitRate | Dependent item | hikvisioncam.constantbitrate[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Fixed quality | Dependent item | hikvisioncam.fixedquality[{#CHANNEL_ID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": GovLength | Dependent item | hikvisioncam.govlength[{#CHANNEL_ID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": H264Profile | Dependent item | hikvisioncam.h264Profile[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Key frame interval | Dependent item | hikvisioncam.keyframeinterval[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Frame rate (max) | Dependent item | hikvisioncam.maxframerate[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Smoothing | Dependent item | hikvisioncam.smoothing[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Snapshot image type | Dependent item | hikvisioncam.snapshotimagetype[{#CHANNEL_ID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": VBR lower | Dependent item | hikvisioncam.vbrlowercap[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": VBR upper | Dependent item | hikvisioncam.vbruppercap[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Video codec type | Dependent item | hikvisioncam.videocodectype[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Video quality control type | Dependent item | hikvisioncam.videoqualitycontroltype[{#CHANNEL_ID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Resolution height | Dependent item | hikvisioncam.videoresolutionheight[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Resolution width | Dependent item | hikvisioncam.videoresolutionwidth[{#CHANNELID}] Preprocessing
|
|
Channel "{#CHANNEL_ID}": Video scan type | Dependent item | hikvisioncam.videoscantype[{#CHANNELID}] Preprocessing
|
Name | Description | Expression | Severity | Dependencies and additional info |
---|---|---|---|---|
Hikvision: Channel "{#CHANNEL_ID}": Invalid video stream resolution parameters | expected: {$HIKVISIONSTREAMWIDTH} px x {$HIKVISIONSTREAMHEIGHT} px |
last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}])<>{$HIKVISION_STREAM_HEIGHT} or last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}])<>{$HIKVISION_STREAM_WIDTH} |Warning |
Manual close: Yes | |
Hikvision: Channel "{#CHANNEL_ID}": Parameters of video stream are changed | last(/Hikvision camera by HTTP/hikvision_cam.fixed_quality[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.fixed_quality[{#CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.constant_bit_rate[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.constant_bit_rate[{#CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.video_quality_control_type[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_quality_control_type[{#CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}],#2) or last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}],#2) |Info |
Manual close: Yes |
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums