diff --git a/template-whastminer.yaml b/template-whastminer.yaml deleted file mode 100644 index 9e64bd3..0000000 --- a/template-whastminer.yaml +++ /dev/null @@ -1,175 +0,0 @@ -zabbix_export: - version: '5.2' - date: '2021-10-07T01:19:45Z' - groups: - - - name: Whatsminer - templates: - - - template: Whatsminer - name: Whatsminer - groups: - - - name: Whatsminer - applications: - - - name: WhatsHW - - - name: WhatsInfo - - - name: WhatsState - items: - - - name: Fan-In - type: DEPENDENT - key: FanIn - delay: '0' - history: 1d - trends: '0' - value_type: FLOAT - applications: - - - name: WhatsHW - preprocessing: - - - type: JSONPATH - parameters: - - '$[0][''Fan Speed In'']' - master_item: - key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]' - - - name: Fan-Out - type: DEPENDENT - key: FanOut - delay: '0' - history: 1d - trends: '0' - value_type: FLOAT - applications: - - - name: WhatsHW - preprocessing: - - - type: JSONPATH - parameters: - - '$[0][''Fan Speed Out'']' - master_item: - key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]' - - - name: Hashrate - type: DEPENDENT - key: Hash - delay: '0' - history: 1d - trends: '0' - value_type: FLOAT - units: TH/s - applications: - - - name: WhatsHW - preprocessing: - - - type: JSONPATH - parameters: - - '$[0][''MHS av'']' - master_item: - key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]' - - - name: UpDown - type: SIMPLE - key: icmpping - delay: 60s - history: 1d - trends: '0' - applications: - - - name: WhatsState - valuemap: - name: 'Service state' - - - name: Asic - type: SIMPLE - key: 'net.tcp.service[tcp,,4028]' - delay: 60s - history: 1d - trends: '0' - applications: - - - name: WhatsState - valuemap: - name: 'Service state' - request_method: POST - - - name: Temperature - type: DEPENDENT - key: Temp - delay: '0' - history: 1d - trends: '0' - value_type: TEXT - applications: - - - name: WhatsHW - preprocessing: - - - type: JSONPATH - parameters: - - '$[0][''Temperature'']' - master_item: - key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]' - - - name: AsicPolls - type: EXTERNAL - key: 'Whats["pools", "{HOST.CONN}", "{$HOST.PORT}"]' - delay: 300s - history: '0' - trends: '0' - value_type: TEXT - applications: - - - name: WhatsInfo - - - name: AsicSummary - type: EXTERNAL - key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]' - delay: 300s - history: 1d - trends: '0' - value_type: TEXT - applications: - - - name: WhatsInfo - macros: - - - macro: '{$TEMP_HIGH}' - value: '80' - triggers: - - - expression: '{Whatsminer:Hash.nodata(15m)}=1 and {Whatsminer:icmpping.last()}=1' - name: 'Whatsminer Hashrate information not available on {HOST.NAME}' - priority: HIGH - manual_close: 'YES' - - - expression: '{Whatsminer:icmpping.max(#3)}=0 and {Whatsminer:net.tcp.service[tcp,,4028].last(#3)}=0' - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: '{Whatsminer:icmpping.last()}=1 and {Whatsminer:net.tcp.service[tcp,,4028].last()}=1' - name: 'WhatsMiner Host Down {HOST.NAME}' - priority: DISASTER - manual_close: 'YES' - - - expression: '{Whatsminer:Temp.last(,15m)}>{$TEMP_HIGH} and {Whatsminer:icmpping.last()}=1' - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: '{Whatsminer:Temp.last(,15m)}<{$HIGH_TEMP} and {Whatsminer:icmpping.last()}=1' - name: 'Whatsminer {HOST.NAME} High Temp' - priority: AVERAGE - manual_close: 'YES' - value_maps: - - - name: 'Service state' - mappings: - - - value: '0' - newvalue: Down - - - value: '1' - newvalue: Up