zabbix_export: version: '6.0' date: '2021-11-21T21:57:08Z' groups: - uuid: a35c8b15fdd84824ba6fd27c43820b03 name: Zshare templates: - uuid: 6d0a0079ea1240fe961afb8183c6da9d template: 'Zshare Synology Cluster' name: 'Zshare Synology Cluster' description: | ## Description Template to monitor Synology HA Solution ## Overview Template is based on [Synology MIB Guide](https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_MIB_Guide.pdf) and monitor only an Synology HA Cluster Is based on snmp v2 data from section Synology SHA MIB Installation notes 1. Don't forget to set the right community name in template Macros section 2. Before add to host set/add in Zabbix-> Administration -> General -> Value mapping 1. Synology Cluster Status 0 ⇒ normal 1 ⇒ warning 2 ⇒ critical 3 ⇒ upgrading 4 ⇒ processing 2. Synology Heartbeat Status 0 ⇒ normal 1 ⇒ abnormal 2 ⇒ disconnected 3 ⇒ empty 3. Synology AutoFailover 1 ⇒ True 2 ⇒ False ### Features 1. Items are explained in details 2. Triggers are explained and contain tags to show the problem details depending on received value ### Environment Created and tested with: * Synology DSM 6.2-24922on following models: + RS820RP+ * Zabbix version 4.0.0 ### Note(s) You can write questions also to [tudorticau@mail.ru](mailto:tudorticau@mail.ru) Nice to read when will deploy Synology HA environment this [Synology HA White Paper](https://global.download.synology.com/download/Document/Software/WhitePaper/Package/HighAvailability/All/enu/Synology_SHA_White_Paper.pdf "Synology HA White Paper") ## Author Tudor Ticau groups: - name: Zshare items: - uuid: 611a8ec3caf240b2bff1d7b1f612aacc name: 'Active Server Name' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.1.0 key: activeNodeName delay: '60' trends: '0' value_type: CHAR description: 'Hostname of active server/NAS' request_method: POST tags: - tag: Application value: Cluster - uuid: e941f0733c7d43f3950bfb19a7269110 name: 'Cluster AutoFailover' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.3.0 key: clusterAutoFailover delay: '60' description: | Whether cluster can failover once something went wrong true (1) false (2) valuemap: name: 'Synology AutoFailover' request_method: POST tags: - tag: Application value: Cluster triggers: - uuid: 904b80b46fe84d9fa289d45b99581dd3 expression: 'last(/Zshare Synology Cluster/clusterAutoFailover)=2' name: '{HOST.NAME} AutoFailover is not enabled' priority: HIGH description: 'Cluster can''t do failover by itself. This can lead to big downtime' manual_close: 'YES' tags: - tag: State value: '{ITEM.VALUE}' - uuid: be52fed46d784b1eab184224e7a26cd1 name: 'Cluster Name' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.4.0 key: clusterName delay: '60' trends: '0' value_type: CHAR description: 'Hostname of High-Availability cluster' tags: - tag: Application value: Cluster - uuid: 49dd922fc7e14dedb33135643ae8337c name: 'Cluster Status' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.5.0 key: clusterStatus delay: '60' description: | Status of High-Availability cluster Possible values: normal (0) - The High-Availability cluster is healthy warning (1) - The High-Availability cluster has something went wrong. Action should be taken to resume High-Availability feature. Please refer to High-Availability Manager for more details. critical (2) - The High-Availability cluster is in danger, and should be resolved as soon as possible.Please refer to High-Availability Manager for more details. upgrading (3) - The High-Availability cluster is upgrading. processing (4) - The High-Availability cluster is undergoing some operation. valuemap: name: 'Synology Cluster Status' request_method: POST tags: - tag: Application value: Cluster triggers: - uuid: 7c8c552c465f4d0583e6c5c8da3c2225 expression: 'last(/Zshare Synology Cluster/clusterStatus)<>0' name: '{HOST.NAME} Cluster in Failed state' priority: DISASTER description: | The High-Availability cluster has something went wrong. Action should be taken to resume High-Availability feature. Possible values: normal (0) - The High-Availability cluster is healthy warning (1) - The High-Availability cluster has something went wrong. Action should be taken to resume High-Availability feature. Please refer to High-Availability Manager for more details. critical (2) - The High-Availability cluster is in danger, and should be resolved as soon as possible.Please refer to High-Availability Manager for more details. upgrading (3) - The High-Availability cluster is upgrading. processing (4) - The High-Availability cluster is undergoing some operation. manual_close: 'YES' tags: - tag: 'Cluster State' value: '{{ITEM.VALUE}.regsub([0], Healthy)}' - tag: 'Cluster State' value: '{{ITEM.VALUE}.regsub([1], Warning)}' - tag: 'Cluster State' value: '{{ITEM.VALUE}.regsub([2], Critical)}' - tag: 'Cluster State' value: '{{ITEM.VALUE}.regsub([3], Upgrading)}' - tag: 'Cluster State' value: '{{ITEM.VALUE}.regsub([4], Processing)}' - uuid: f42dbb9ea885476ab61c402debc45ab1 name: 'Heartbeat Latency' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.8.0 key: heartbeatLatency delay: '60' value_type: FLOAT units: s description: 'Heartbeat latency in microseconds (10^-6 seconds)' preprocessing: - type: MULTIPLIER parameters: - '0.000001' tags: - tag: Application value: Cluster triggers: - uuid: 7359fa1a21c04ca6a5351f1254813655 expression: 'min(/Zshare Synology Cluster/heartbeatLatency,#5)>10s' name: '{HOST.NAME} Heartbeat Latency is over 10 sec' priority: DISASTER description: 'Heartbeat Latency is over 10 sec on {HOST.NAME}. Check network between the NAS or maybe you have high traffic' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: fd2a80708d6e450aaadb41ddc51a2b42 name: 'Heartbeat Status' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.6.0 key: heartbeatStatus delay: '60' description: | Status of heartbeat connection Possible values: normal (0) - The heartbeat connection is normal abnormal (1) - Some information about heartbeat is not available disconnected (2) - The High-Availability cluster loses connection to passive server through heartbeat interface, or it is currently in split-brain mode empty (3) - The High-Availability cluster has no passive server. valuemap: name: 'Synology Heartbeat Status' tags: - tag: Application value: Cluster triggers: - uuid: 432abbd57ece4a0cb2dd88a425266928 expression: 'last(/Zshare Synology Cluster/heartbeatStatus)<>0' name: '{HOST.NAME} Heartbeat Failed' priority: DISASTER description: | Possible values: normal (0) - The heartbeat connection is normal abnormal (1) - Some information about heartbeat is not available disconnected (2) - The High-Availability cluster loses connection to passive server through heartbeat interface, or it is currently in split-brain mode empty (3) - The High-Availability cluster has no passive server. manual_close: 'YES' dependencies: - name: '{HOST.NAME} Cluster in Failed state' expression: 'last(/Zshare Synology Cluster/clusterStatus)<>0' tags: - tag: 'Heartbeat State' value: '{{ITEM.VALUE}.regsub([0], "Normal")}' - tag: 'Heartbeat State' value: '{{ITEM.VALUE}.regsub([1], Abnormal)}' - tag: 'Heartbeat State' value: '{{ITEM.VALUE}.regsub([2], "Disconnected - no connection to passive server")}' - tag: 'Heartbeat State' value: '{{ITEM.VALUE}.regsub([3], "Empty - no passive server")}' - uuid: cc68a536dffb4abfa7a57ee0ac1a37f7 name: 'Heartbeat Transfer Speed' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.7.0 key: heartbeatTxRate delay: '60' units: Bps description: 'Transfer speed of heartbeat in kilo-byte-per-second' preprocessing: - type: MULTIPLIER parameters: - '1000' tags: - tag: Application value: Cluster - uuid: 25148dd5eeaf4cbebe4ee20ed5993f48 name: 'Passive Server Name' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.6574.106.2.0 key: passiveNodeName delay: '60' trends: '0' value_type: CHAR description: 'Hostname of passive server' tags: - tag: Application value: Cluster macros: - macro: '{$SNMP_COMMUNITY}' value: public valuemaps: - uuid: e9b2a227b59b4324b3cc3be2a2706847 name: 'Synology AutoFailover' mappings: - value: '1' newvalue: 'True' - value: '2' newvalue: 'False' - uuid: fb3ba34f9fea434c9b80ddbea2317a68 name: 'Synology Cluster Status' mappings: - value: '0' newvalue: normal - value: '1' newvalue: warning - value: '2' newvalue: critical - value: '3' newvalue: upgrading - value: '4' newvalue: processing - uuid: c718f11147ab44ab9fab329a7c4eed4c name: 'Synology Heartbeat Status' mappings: - value: '0' newvalue: normal - value: '1' newvalue: abnormal - value: '2' newvalue: disconnected - value: '3' newvalue: empty graphs: - uuid: ca0c68517cbd48d3bfbc0eb2e55b8aef name: 'Heartbeat Latency' graph_items: - color: 1A7C11 item: host: 'Zshare Synology Cluster' key: heartbeatLatency