Added Hashrate chain element
This commit is contained in:
+21
-21
@@ -1,21 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?`
|
up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?`
|
||||||
|
|
||||||
if [ $up = 0 ]; then
|
if [ $up = 0 ]; then
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
ADDRESS=$1
|
ADDRESS=$1
|
||||||
PORT=$2
|
PORT=$2
|
||||||
|
|
||||||
stats_raw=`echo '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}' | nc $ADDRESS $PORT | tr -d '\0\n'`
|
stats_raw=`echo '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}' | nc $ADDRESS $PORT | tr -d '\0\n'`
|
||||||
stats_raw=$(sed 's/}{/\},{/' <<< "$stats_raw")
|
stats_raw=$(sed 's/}{/\},{/' <<< "$stats_raw")
|
||||||
|
|
||||||
#STATS=$(jq '.STATS' <<< "$stats_raw")
|
#STATS=$(jq '.STATS' <<< "$stats_raw")
|
||||||
|
|
||||||
#echo $STATS
|
#echo $STATS
|
||||||
echo $stats_raw
|
echo $stats_raw
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,38 +1,38 @@
|
|||||||
#!/usr/bin/env python2.7
|
#!/usr/bin/env python2.7
|
||||||
import socket
|
import socket
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
command = sys.argv[1]
|
command = sys.argv[1]
|
||||||
ip = sys.argv[2]
|
ip = sys.argv[2]
|
||||||
port = 4028
|
port = 4028
|
||||||
|
|
||||||
def stats(ip):
|
def stats(ip):
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
sock.settimeout(1)
|
sock.settimeout(1)
|
||||||
try:
|
try:
|
||||||
sock.connect((ip, int(port)))
|
sock.connect((ip, int(port)))
|
||||||
|
|
||||||
sock.send(json.dumps({'command': command}))
|
sock.send(json.dumps({'command': command}))
|
||||||
|
|
||||||
resp = ''
|
resp = ''
|
||||||
while 1:
|
while 1:
|
||||||
buf = sock.recv(4096).decode("utf-8")
|
buf = sock.recv(4096).decode("utf-8")
|
||||||
if buf:
|
if buf:
|
||||||
resp += buf
|
resp += buf
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
res = command.upper()
|
res = command.upper()
|
||||||
|
|
||||||
result = json.loads(resp[:-1].replace('}{', '},{'))
|
result = json.loads(resp[:-1].replace('}{', '},{'))
|
||||||
result = json.dumps(result[res])
|
result = json.dumps(result[res])
|
||||||
print result
|
print result
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error " + str(e))
|
print("Error " + str(e))
|
||||||
finally:
|
finally:
|
||||||
sock.shutdown(socket.SHUT_RDWR)
|
sock.shutdown(socket.SHUT_RDWR)
|
||||||
sock.close()
|
sock.close()
|
||||||
|
|
||||||
stats(ip)
|
stats(ip)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# External script and tepmlates for Getting Antminer and GPU Claymore Farm metrics into Zabbix
|
# External script and tepmlates for Getting Antminer and GPU Claymore Farm metrics into Zabbix
|
||||||
|
|
||||||
**#Antminer scripts (Antminer S9, L3 ...)**
|
**#Antminer scripts (Antminer S9, L3 ...)**
|
||||||
* Miner - Feech asic JSON information
|
* Miner - Feech asic JSON information
|
||||||
* rebootasic - Reboot asic wihtout ssh
|
* rebootasic - Reboot asic wihtout ssh
|
||||||
* FarmGetstats - Get Claymor GPU Farm json information
|
* FarmGetstats - Get Claymor GPU Farm json information
|
||||||
|
|||||||
+33
-33
@@ -1,34 +1,34 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import socket, httplib, httplib2
|
import socket, httplib, httplib2
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
|
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
|
||||||
USER = sys.argv[2]
|
USER = sys.argv[2]
|
||||||
USER_DEFAULT = "root"
|
USER_DEFAULT = "root"
|
||||||
PASS = sys.argv[3]
|
PASS = sys.argv[3]
|
||||||
PASS_DEFAULT = "root"
|
PASS_DEFAULT = "root"
|
||||||
|
|
||||||
h = httplib2.Http(cache=None, timeout=0.5)
|
h = httplib2.Http(cache=None, timeout=0.5)
|
||||||
h.add_credentials(USER, PASS)
|
h.add_credentials(USER, PASS)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response, content = h.request(URL, "GET", headers={'cache-control':'no-cache'})
|
response, content = h.request(URL, "GET", headers={'cache-control':'no-cache'})
|
||||||
if response.status==401:
|
if response.status==401:
|
||||||
retry = httplib2.Http(cache=None, timeout=0.5)
|
retry = httplib2.Http(cache=None, timeout=0.5)
|
||||||
retry.add_credentials(USER_DEFAULT, PASS_DEFAULT)
|
retry.add_credentials(USER_DEFAULT, PASS_DEFAULT)
|
||||||
res, con = retry.request(URL, "GET", headers={'cache-control':'no-cache'})
|
res, con = retry.request(URL, "GET", headers={'cache-control':'no-cache'})
|
||||||
if res.status==500:
|
if res.status==500:
|
||||||
print "Change pass, Installed default password"
|
print "Change pass, Installed default password"
|
||||||
print "OK"
|
print "OK"
|
||||||
elif res.status==401:
|
elif res.status==401:
|
||||||
print "Unauthorized, Wrong PASSWORD"
|
print "Unauthorized, Wrong PASSWORD"
|
||||||
if response.status==500:
|
if response.status==500:
|
||||||
print "OK"
|
print "OK"
|
||||||
elif response.status==404:
|
elif response.status==404:
|
||||||
URL = "http://"+sys.argv[1]+"/api/reboot"
|
URL = "http://"+sys.argv[1]+"/api/reboot"
|
||||||
response, content = h.request(URL, "GET", headers={'cache-control':'no-cache'})
|
response, content = h.request(URL, "GET", headers={'cache-control':'no-cache'})
|
||||||
except httplib2.ServerNotFoundError:
|
except httplib2.ServerNotFoundError:
|
||||||
print "HOST is Down"
|
print "HOST is Down"
|
||||||
except (socket.timeout, socket.error, httplib2.HttpLib2Error, httplib.ResponseNotReady):
|
except (socket.timeout, socket.error, httplib2.HttpLib2Error, httplib.ResponseNotReady):
|
||||||
print "ERROR"
|
print "ERROR"
|
||||||
+289
-289
@@ -1,289 +1,289 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<zabbix_export>
|
<zabbix_export>
|
||||||
<version>5.0</version>
|
<version>5.0</version>
|
||||||
<date>2020-06-10T13:56:16Z</date>
|
<date>2020-06-10T13:56:16Z</date>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Aixin A1</name>
|
<name>Aixin A1</name>
|
||||||
</group>
|
</group>
|
||||||
</groups>
|
</groups>
|
||||||
<templates>
|
<templates>
|
||||||
<template>
|
<template>
|
||||||
<template>Aixin A1</template>
|
<template>Aixin A1</template>
|
||||||
<name>Aixin A1</name>
|
<name>Aixin A1</name>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Aixin A1</name>
|
<name>Aixin A1</name>
|
||||||
</group>
|
</group>
|
||||||
</groups>
|
</groups>
|
||||||
<items>
|
<items>
|
||||||
<item>
|
<item>
|
||||||
<name>Elapsed</name>
|
<name>Elapsed</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Elapsed</key>
|
<key>AntMinerA1.Elapsed</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>s</units>
|
<units>s</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[1]['Elapsed']</params>
|
<params>$[1]['Elapsed']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Fan1</name>
|
<name>Fan1</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Fan1</key>
|
<key>AntMinerA1.Fan1</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>RPM</units>
|
<units>RPM</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Fan0 rpm']</params>
|
<params>$[0]['Fan0 rpm']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Fan2</name>
|
<name>Fan2</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Fan2</key>
|
<key>AntMinerA1.Fan2</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>RPM</units>
|
<units>RPM</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Fan1 rpm']</params>
|
<params>$[0]['Fan1 rpm']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Hashrate</name>
|
<name>Hashrate</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Hashrate</key>
|
<key>AntMinerA1.Hashrate</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<units>TH/s</units>
|
<units>TH/s</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['MHS 5s']</params>
|
<params>$[0]['MHS 5s']</params>
|
||||||
</step>
|
</step>
|
||||||
<step>
|
<step>
|
||||||
<type>MULTIPLIER</type>
|
<type>MULTIPLIER</type>
|
||||||
<params>0.001</params>
|
<params>0.001</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp1</name>
|
<name>Temp1</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Temp1</key>
|
<key>AntMinerA1.Temp1</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Temperature']</params>
|
<params>$[0]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp2</name>
|
<name>Temp2</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Temp2</key>
|
<key>AntMinerA1.Temp2</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[1]['Temperature']</params>
|
<params>$[1]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp3</name>
|
<name>Temp3</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerA1.Temp3</key>
|
<key>AntMinerA1.Temp3</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[2]['Temperature']</params>
|
<params>$[2]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>UP_DOwn</name>
|
<name>UP_DOwn</name>
|
||||||
<type>SIMPLE</type>
|
<type>SIMPLE</type>
|
||||||
<key>icmpping</key>
|
<key>icmpping</key>
|
||||||
<delay>60s</delay>
|
<delay>60s</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<valuemap>
|
<valuemap>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAlldevs</name>
|
<name>AntMinerGetAlldevs</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllpool</name>
|
<name>AntMinerGetAllpool</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["pools", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["pools", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllstats</name>
|
<name>AntMinerGetAllstats</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllsummary</name>
|
<name>AntMinerGetAllsummary</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Asic</name>
|
<name>Asic</name>
|
||||||
<type>SIMPLE</type>
|
<type>SIMPLE</type>
|
||||||
<key>net.tcp.service[tcp,,4028]</key>
|
<key>net.tcp.service[tcp,,4028]</key>
|
||||||
<delay>60s</delay>
|
<delay>60s</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<valuemap>
|
<valuemap>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
<macros>
|
<macros>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$FAN_LOW}</macro>
|
<macro>{$FAN_LOW}</macro>
|
||||||
<value>500</value>
|
<value>500</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$HASH_LOW}</macro>
|
<macro>{$HASH_LOW}</macro>
|
||||||
<value>18000</value>
|
<value>18000</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$HOST.PORT}</macro>
|
<macro>{$HOST.PORT}</macro>
|
||||||
<value>4028</value>
|
<value>4028</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$TEMP_LOW}</macro>
|
<macro>{$TEMP_LOW}</macro>
|
||||||
<value>90</value>
|
<value>90</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$UNAME}</macro>
|
<macro>{$UNAME}</macro>
|
||||||
<value>manager</value>
|
<value>manager</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$UPASS}</macro>
|
<macro>{$UPASS}</macro>
|
||||||
<type>SECRET_TEXT</type>
|
<type>SECRET_TEXT</type>
|
||||||
</macro>
|
</macro>
|
||||||
</macros>
|
</macros>
|
||||||
</template>
|
</template>
|
||||||
</templates>
|
</templates>
|
||||||
<triggers>
|
<triggers>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>{Aixin A1:AntMinerA1.Hashrate.nodata(15m)}=1 and {Aixin A1:icmpping.last()}=1</expression>
|
<expression>{Aixin A1:AntMinerA1.Hashrate.nodata(15m)}=1 and {Aixin A1:icmpping.last()}=1</expression>
|
||||||
<name>AntMiner A1 Hashrate information not available on {HOST.NAME}</name>
|
<name>AntMiner A1 Hashrate information not available on {HOST.NAME}</name>
|
||||||
<priority>HIGH</priority>
|
<priority>HIGH</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Aixin A1:AntMinerA1.Temp1.min(15m)}>{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp2.min(15m)}>{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp3.min(15m)}>{$TEMP_LOW}) and {Aixin A1:icmpping.last()}=1</expression>
|
<expression>({Aixin A1:AntMinerA1.Temp1.min(15m)}>{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp2.min(15m)}>{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp3.min(15m)}>{$TEMP_LOW}) and {Aixin A1:icmpping.last()}=1</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>({Aixin A1:AntMinerA1.Temp1.last()}<{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp2.last()}<{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp3.last()}<{$TEMP_LOW}) and {Aixin A1:icmpping.last()}=1</recovery_expression>
|
<recovery_expression>({Aixin A1:AntMinerA1.Temp1.last()}<{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp2.last()}<{$TEMP_LOW} or {Aixin A1:AntMinerA1.Temp3.last()}<{$TEMP_LOW}) and {Aixin A1:icmpping.last()}=1</recovery_expression>
|
||||||
<name>AntMiner A1 High temp on {HOST.NAME}</name>
|
<name>AntMiner A1 High temp on {HOST.NAME}</name>
|
||||||
<priority>AVERAGE</priority>
|
<priority>AVERAGE</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>{Aixin A1:icmpping.last(5m)}=0 and {Aixin A1:net.tcp.service[tcp,,4028].last(5m)}=0</expression>
|
<expression>{Aixin A1:icmpping.last(5m)}=0 and {Aixin A1:net.tcp.service[tcp,,4028].last(5m)}=0</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>{Aixin A1:icmpping.last()}=1 or {Aixin A1:net.tcp.service[tcp,,4028].last()}=1</recovery_expression>
|
<recovery_expression>{Aixin A1:icmpping.last()}=1 or {Aixin A1:net.tcp.service[tcp,,4028].last()}=1</recovery_expression>
|
||||||
<name>AntMiner A1 Host DOWN {HOST.NAME}</name>
|
<name>AntMiner A1 Host DOWN {HOST.NAME}</name>
|
||||||
<priority>DISASTER</priority>
|
<priority>DISASTER</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Aixin A1:AntMinerA1.Fan1.last(10m)}<{$FAN_LOW} or {Aixin A1:AntMinerA1.Fan2.last(10m)}<{$FAN_LOW}) and {Aixin A1:icmpping.last()}=1</expression>
|
<expression>({Aixin A1:AntMinerA1.Fan1.last(10m)}<{$FAN_LOW} or {Aixin A1:AntMinerA1.Fan2.last(10m)}<{$FAN_LOW}) and {Aixin A1:icmpping.last()}=1</expression>
|
||||||
<name>AntMiner A1 low fan speed {HOST.NAME}</name>
|
<name>AntMiner A1 low fan speed {HOST.NAME}</name>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Aixin A1:AntMinerA1.Hashrate.last()}<{$HASH_LOW} and {Aixin A1:AntMinerA1.Elapsed.last()}>600) and ({Aixin A1:icmpping.last()}=1 and {Aixin A1:net.tcp.service[tcp,,4028].last()}=1)</expression>
|
<expression>({Aixin A1:AntMinerA1.Hashrate.last()}<{$HASH_LOW} and {Aixin A1:AntMinerA1.Elapsed.last()}>600) and ({Aixin A1:icmpping.last()}=1 and {Aixin A1:net.tcp.service[tcp,,4028].last()}=1)</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>{Aixin A1:AntMinerA1.Hashrate.last(#3)}>{$HASH_LOW}</recovery_expression>
|
<recovery_expression>{Aixin A1:AntMinerA1.Hashrate.last(#3)}>{$HASH_LOW}</recovery_expression>
|
||||||
<name>AntMiner A1 Low hashrate on {HOST.NAME}</name>
|
<name>AntMiner A1 Low hashrate on {HOST.NAME}</name>
|
||||||
<priority>WARNING</priority>
|
<priority>WARNING</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
<value_maps>
|
<value_maps>
|
||||||
<value_map>
|
<value_map>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
<mappings>
|
<mappings>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
<newvalue>Down</newvalue>
|
<newvalue>Down</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
<newvalue>Up</newvalue>
|
<newvalue>Up</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
</mappings>
|
</mappings>
|
||||||
</value_map>
|
</value_map>
|
||||||
</value_maps>
|
</value_maps>
|
||||||
</zabbix_export>
|
</zabbix_export>
|
||||||
|
|||||||
+1895
-1895
File diff suppressed because it is too large
Load Diff
+572
-572
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
zabbix_export:
|
zabbix_export:
|
||||||
version: '5.2'
|
version: '5.2'
|
||||||
date: '2021-10-07T01:08:08Z'
|
date: '2022-02-27T06:16:08Z'
|
||||||
groups:
|
groups:
|
||||||
-
|
-
|
||||||
name: 'Antminer S19'
|
name: 'Antminer S19'
|
||||||
@@ -132,6 +132,75 @@ zabbix_export:
|
|||||||
- '0.001'
|
- '0.001'
|
||||||
master_item:
|
master_item:
|
||||||
key: 'Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
|
-
|
||||||
|
name: Hashrate1
|
||||||
|
type: DEPENDENT
|
||||||
|
key: AntMinerT17.Hashrate1
|
||||||
|
delay: '0'
|
||||||
|
history: 1d
|
||||||
|
trends: 1d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: TH/s
|
||||||
|
applications:
|
||||||
|
-
|
||||||
|
name: AntMinerT17
|
||||||
|
preprocessing:
|
||||||
|
-
|
||||||
|
type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- '$[1][''chain_rate1'']'
|
||||||
|
-
|
||||||
|
type: MULTIPLIER
|
||||||
|
parameters:
|
||||||
|
- '0.001'
|
||||||
|
master_item:
|
||||||
|
key: 'Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
|
-
|
||||||
|
name: Hashrate2
|
||||||
|
type: DEPENDENT
|
||||||
|
key: AntMinerT17.Hashrate2
|
||||||
|
delay: '0'
|
||||||
|
history: 1d
|
||||||
|
trends: 1d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: TH/s
|
||||||
|
applications:
|
||||||
|
-
|
||||||
|
name: AntMinerT17
|
||||||
|
preprocessing:
|
||||||
|
-
|
||||||
|
type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- '$[1][''chain_rate2'']'
|
||||||
|
-
|
||||||
|
type: MULTIPLIER
|
||||||
|
parameters:
|
||||||
|
- '0.001'
|
||||||
|
master_item:
|
||||||
|
key: 'Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
|
-
|
||||||
|
name: Hashrate3
|
||||||
|
type: DEPENDENT
|
||||||
|
key: AntMinerT17.Hashrate3
|
||||||
|
delay: '0'
|
||||||
|
history: 1d
|
||||||
|
trends: 1d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: TH/s
|
||||||
|
applications:
|
||||||
|
-
|
||||||
|
name: AntMinerT17
|
||||||
|
preprocessing:
|
||||||
|
-
|
||||||
|
type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- '$[1][''chain_rate3'']'
|
||||||
|
-
|
||||||
|
type: MULTIPLIER
|
||||||
|
parameters:
|
||||||
|
- '0.001'
|
||||||
|
master_item:
|
||||||
|
key: 'Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
-
|
-
|
||||||
name: LastOnline_pool1
|
name: LastOnline_pool1
|
||||||
type: DEPENDENT
|
type: DEPENDENT
|
||||||
@@ -392,7 +461,7 @@ zabbix_export:
|
|||||||
value: '1200'
|
value: '1200'
|
||||||
-
|
-
|
||||||
macro: '{$TEMP_LOW}'
|
macro: '{$TEMP_LOW}'
|
||||||
value: '90'
|
value: '85'
|
||||||
-
|
-
|
||||||
macro: '{$UNAME}'
|
macro: '{$UNAME}'
|
||||||
value: root
|
value: root
|
||||||
|
|||||||
+847
-847
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<zabbix_export>
|
<zabbix_export>
|
||||||
<version>5.2</version>
|
<version>5.2</version>
|
||||||
<date>2021-10-07T01:08:45Z</date>
|
<date>2022-02-27T06:12:24Z</date>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Antminer T17</name>
|
<name>Antminer T17</name>
|
||||||
@@ -185,6 +185,102 @@
|
|||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Hashrate5</name>
|
||||||
|
<type>DEPENDENT</type>
|
||||||
|
<key>AntMinerT17.Hashrate5</key>
|
||||||
|
<delay>0</delay>
|
||||||
|
<history>1d</history>
|
||||||
|
<trends>1d</trends>
|
||||||
|
<value_type>FLOAT</value_type>
|
||||||
|
<units>TH/s</units>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>AntMinerT17</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<preprocessing>
|
||||||
|
<step>
|
||||||
|
<type>JSONPATH</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>$[1]['chain_rate1']</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<type>MULTIPLIER</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>0.001</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
</preprocessing>
|
||||||
|
<master_item>
|
||||||
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
|
</master_item>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Hashrate6</name>
|
||||||
|
<type>DEPENDENT</type>
|
||||||
|
<key>AntMinerT17.Hashrate6</key>
|
||||||
|
<delay>0</delay>
|
||||||
|
<history>1d</history>
|
||||||
|
<trends>1d</trends>
|
||||||
|
<value_type>FLOAT</value_type>
|
||||||
|
<units>TH/s</units>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>AntMinerT17</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<preprocessing>
|
||||||
|
<step>
|
||||||
|
<type>JSONPATH</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>$[1]['chain_rate2']</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<type>MULTIPLIER</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>0.001</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
</preprocessing>
|
||||||
|
<master_item>
|
||||||
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
|
</master_item>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>Hashrate7</name>
|
||||||
|
<type>DEPENDENT</type>
|
||||||
|
<key>AntMinerT17.Hashrate7</key>
|
||||||
|
<delay>0</delay>
|
||||||
|
<history>1d</history>
|
||||||
|
<trends>1d</trends>
|
||||||
|
<value_type>FLOAT</value_type>
|
||||||
|
<units>TH/s</units>
|
||||||
|
<applications>
|
||||||
|
<application>
|
||||||
|
<name>AntMinerT17</name>
|
||||||
|
</application>
|
||||||
|
</applications>
|
||||||
|
<preprocessing>
|
||||||
|
<step>
|
||||||
|
<type>JSONPATH</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>$[1]['chain_rate3']</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<type>MULTIPLIER</type>
|
||||||
|
<parameters>
|
||||||
|
<parameter>0.001</parameter>
|
||||||
|
</parameters>
|
||||||
|
</step>
|
||||||
|
</preprocessing>
|
||||||
|
<master_item>
|
||||||
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
|
</master_item>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>LastOnline_pool1</name>
|
<name>LastOnline_pool1</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
@@ -599,6 +695,7 @@ return $123;</parameter>
|
|||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>{AntMiner T17:AntMinerT17.Fan_num.last()}=2</recovery_expression>
|
<recovery_expression>{AntMiner T17:AntMinerT17.Fan_num.last()}=2</recovery_expression>
|
||||||
<name>Асик завис !!!</name>
|
<name>Асик завис !!!</name>
|
||||||
|
<status>DISABLED</status>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
|||||||
+307
-307
@@ -1,307 +1,307 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<zabbix_export>
|
<zabbix_export>
|
||||||
<version>5.0</version>
|
<version>5.0</version>
|
||||||
<date>2020-06-10T13:57:57Z</date>
|
<date>2020-06-10T13:57:57Z</date>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Cheetah F1</name>
|
<name>Cheetah F1</name>
|
||||||
</group>
|
</group>
|
||||||
</groups>
|
</groups>
|
||||||
<templates>
|
<templates>
|
||||||
<template>
|
<template>
|
||||||
<template>Cheetah F1</template>
|
<template>Cheetah F1</template>
|
||||||
<name>Cheetah F1</name>
|
<name>Cheetah F1</name>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Cheetah F1</name>
|
<name>Cheetah F1</name>
|
||||||
</group>
|
</group>
|
||||||
</groups>
|
</groups>
|
||||||
<items>
|
<items>
|
||||||
<item>
|
<item>
|
||||||
<name>Elapsed</name>
|
<name>Elapsed</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Elapsed</key>
|
<key>AntMinerF1.Elapsed</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>s</units>
|
<units>s</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[1]['Elapsed']</params>
|
<params>$[1]['Elapsed']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Fan1</name>
|
<name>Fan1</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Fan1</key>
|
<key>AntMinerF1.Fan1</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>RPM</units>
|
<units>RPM</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Fan0 rpm']</params>
|
<params>$[0]['Fan0 rpm']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Fan2</name>
|
<name>Fan2</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Fan2</key>
|
<key>AntMinerF1.Fan2</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<units>RPM</units>
|
<units>RPM</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Fan0 rpm']</params>
|
<params>$[0]['Fan0 rpm']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Hashrate</name>
|
<name>Hashrate</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Hashrate</key>
|
<key>AntMinerF1.Hashrate</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<units>TH/s</units>
|
<units>TH/s</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['MHS 5s']</params>
|
<params>$[0]['MHS 5s']</params>
|
||||||
</step>
|
</step>
|
||||||
<step>
|
<step>
|
||||||
<type>MULTIPLIER</type>
|
<type>MULTIPLIER</type>
|
||||||
<params>0.001</params>
|
<params>0.001</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp1</name>
|
<name>Temp1</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Temp1</key>
|
<key>AntMinerF1.Temp1</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[0]['Temperature']</params>
|
<params>$[0]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp2</name>
|
<name>Temp2</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Temp2</key>
|
<key>AntMinerF1.Temp2</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[1]['Temperature']</params>
|
<params>$[1]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp3</name>
|
<name>Temp3</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Temp3</key>
|
<key>AntMinerF1.Temp3</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[2]['Temperature']</params>
|
<params>$[2]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Temp4</name>
|
<name>Temp4</name>
|
||||||
<type>DEPENDENT</type>
|
<type>DEPENDENT</type>
|
||||||
<key>AntMinerF1.Temp4</key>
|
<key>AntMinerF1.Temp4</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>1d</history>
|
<history>1d</history>
|
||||||
<trends>1d</trends>
|
<trends>1d</trends>
|
||||||
<units>C</units>
|
<units>C</units>
|
||||||
<preprocessing>
|
<preprocessing>
|
||||||
<step>
|
<step>
|
||||||
<type>JSONPATH</type>
|
<type>JSONPATH</type>
|
||||||
<params>$[3]['Temperature']</params>
|
<params>$[3]['Temperature']</params>
|
||||||
</step>
|
</step>
|
||||||
</preprocessing>
|
</preprocessing>
|
||||||
<master_item>
|
<master_item>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
</master_item>
|
</master_item>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>UP_DOwn</name>
|
<name>UP_DOwn</name>
|
||||||
<type>SIMPLE</type>
|
<type>SIMPLE</type>
|
||||||
<key>icmpping</key>
|
<key>icmpping</key>
|
||||||
<delay>60s</delay>
|
<delay>60s</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<valuemap>
|
<valuemap>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAlldevs</name>
|
<name>AntMinerGetAlldevs</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["devs", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllpool</name>
|
<name>AntMinerGetAllpool</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["pools", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["pools", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllstats</name>
|
<name>AntMinerGetAllstats</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["stats", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>AntMinerGetAllsummary</name>
|
<name>AntMinerGetAllsummary</name>
|
||||||
<type>EXTERNAL</type>
|
<type>EXTERNAL</type>
|
||||||
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
<key>Miner["summary", "{HOST.CONN}", "{$HOST.PORT}"]</key>
|
||||||
<delay>300s</delay>
|
<delay>300s</delay>
|
||||||
<history>0</history>
|
<history>0</history>
|
||||||
<trends>0</trends>
|
<trends>0</trends>
|
||||||
<value_type>TEXT</value_type>
|
<value_type>TEXT</value_type>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<name>Asic</name>
|
<name>Asic</name>
|
||||||
<type>SIMPLE</type>
|
<type>SIMPLE</type>
|
||||||
<key>net.tcp.service[tcp,,4028]</key>
|
<key>net.tcp.service[tcp,,4028]</key>
|
||||||
<delay>60s</delay>
|
<delay>60s</delay>
|
||||||
<history>60d</history>
|
<history>60d</history>
|
||||||
<trends>60d</trends>
|
<trends>60d</trends>
|
||||||
<valuemap>
|
<valuemap>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
<macros>
|
<macros>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$FAN_LOW}</macro>
|
<macro>{$FAN_LOW}</macro>
|
||||||
<value>500</value>
|
<value>500</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$HASH_LOW}</macro>
|
<macro>{$HASH_LOW}</macro>
|
||||||
<value>18000</value>
|
<value>18000</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$HOST.PORT}</macro>
|
<macro>{$HOST.PORT}</macro>
|
||||||
<value>4028</value>
|
<value>4028</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$TEMP_LOW}</macro>
|
<macro>{$TEMP_LOW}</macro>
|
||||||
<value>90</value>
|
<value>90</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$UNAME}</macro>
|
<macro>{$UNAME}</macro>
|
||||||
<value>yongyi</value>
|
<value>yongyi</value>
|
||||||
</macro>
|
</macro>
|
||||||
<macro>
|
<macro>
|
||||||
<macro>{$UPASS}</macro>
|
<macro>{$UPASS}</macro>
|
||||||
<type>SECRET_TEXT</type>
|
<type>SECRET_TEXT</type>
|
||||||
</macro>
|
</macro>
|
||||||
</macros>
|
</macros>
|
||||||
</template>
|
</template>
|
||||||
</templates>
|
</templates>
|
||||||
<triggers>
|
<triggers>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>{Cheetah F1:AntMinerF1.Hashrate.nodata(15m)}=1 and {Cheetah F1:icmpping.last()}=1</expression>
|
<expression>{Cheetah F1:AntMinerF1.Hashrate.nodata(15m)}=1 and {Cheetah F1:icmpping.last()}=1</expression>
|
||||||
<name>AntMiner F1 Hashrate information not available on {HOST.NAME}</name>
|
<name>AntMiner F1 Hashrate information not available on {HOST.NAME}</name>
|
||||||
<priority>HIGH</priority>
|
<priority>HIGH</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Cheetah F1:AntMinerF1.Temp1.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp2.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp3.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp4.min(15m)}>{$TEMP_LOW}) and {Cheetah F1:icmpping.last()}=1</expression>
|
<expression>({Cheetah F1:AntMinerF1.Temp1.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp2.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp3.min(15m)}>{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp4.min(15m)}>{$TEMP_LOW}) and {Cheetah F1:icmpping.last()}=1</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>({Cheetah F1:AntMinerF1.Temp1.last()}<{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp2.last()}<{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp3.last()}<{$TEMP_LOW}) and {Cheetah F1:icmpping.last()}=1</recovery_expression>
|
<recovery_expression>({Cheetah F1:AntMinerF1.Temp1.last()}<{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp2.last()}<{$TEMP_LOW} or {Cheetah F1:AntMinerF1.Temp3.last()}<{$TEMP_LOW}) and {Cheetah F1:icmpping.last()}=1</recovery_expression>
|
||||||
<name>AntMiner F1 High temp on {HOST.NAME}</name>
|
<name>AntMiner F1 High temp on {HOST.NAME}</name>
|
||||||
<priority>AVERAGE</priority>
|
<priority>AVERAGE</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>{Cheetah F1:icmpping.last(5m)}=0 and {Cheetah F1:net.tcp.service[tcp,,4028].last(5m)}=0</expression>
|
<expression>{Cheetah F1:icmpping.last(5m)}=0 and {Cheetah F1:net.tcp.service[tcp,,4028].last(5m)}=0</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>{Cheetah F1:icmpping.last()}=1 or {Cheetah F1:net.tcp.service[tcp,,4028].last()}=1</recovery_expression>
|
<recovery_expression>{Cheetah F1:icmpping.last()}=1 or {Cheetah F1:net.tcp.service[tcp,,4028].last()}=1</recovery_expression>
|
||||||
<name>AntMiner F1 Host DOWN {HOST.NAME}</name>
|
<name>AntMiner F1 Host DOWN {HOST.NAME}</name>
|
||||||
<priority>DISASTER</priority>
|
<priority>DISASTER</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Cheetah F1:AntMinerF1.Fan1.last(10m)}<{$FAN_LOW} or {Cheetah F1:AntMinerF1.Fan2.last(10m)}<{$FAN_LOW}) and {Cheetah F1:icmpping.last()}=1</expression>
|
<expression>({Cheetah F1:AntMinerF1.Fan1.last(10m)}<{$FAN_LOW} or {Cheetah F1:AntMinerF1.Fan2.last(10m)}<{$FAN_LOW}) and {Cheetah F1:icmpping.last()}=1</expression>
|
||||||
<name>AntMiner F1 low fan speed {HOST.NAME}</name>
|
<name>AntMiner F1 low fan speed {HOST.NAME}</name>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
<trigger>
|
<trigger>
|
||||||
<expression>({Cheetah F1:AntMinerF1.Hashrate.last()}<{$HASH_LOW} and {Cheetah F1:AntMinerF1.Elapsed.last()}>600) and ({Cheetah F1:icmpping.last()}=1 and {Cheetah F1:net.tcp.service[tcp,,4028].last()}=1)</expression>
|
<expression>({Cheetah F1:AntMinerF1.Hashrate.last()}<{$HASH_LOW} and {Cheetah F1:AntMinerF1.Elapsed.last()}>600) and ({Cheetah F1:icmpping.last()}=1 and {Cheetah F1:net.tcp.service[tcp,,4028].last()}=1)</expression>
|
||||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||||
<recovery_expression>{Cheetah F1:AntMinerF1.Hashrate.last(#3)}>{$HASH_LOW}</recovery_expression>
|
<recovery_expression>{Cheetah F1:AntMinerF1.Hashrate.last(#3)}>{$HASH_LOW}</recovery_expression>
|
||||||
<name>AntMiner F1 Low hashrate on {HOST.NAME}</name>
|
<name>AntMiner F1 Low hashrate on {HOST.NAME}</name>
|
||||||
<priority>WARNING</priority>
|
<priority>WARNING</priority>
|
||||||
<manual_close>YES</manual_close>
|
<manual_close>YES</manual_close>
|
||||||
</trigger>
|
</trigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
<value_maps>
|
<value_maps>
|
||||||
<value_map>
|
<value_map>
|
||||||
<name>Service state</name>
|
<name>Service state</name>
|
||||||
<mappings>
|
<mappings>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
<newvalue>Down</newvalue>
|
<newvalue>Down</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
<newvalue>Up</newvalue>
|
<newvalue>Up</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
</mappings>
|
</mappings>
|
||||||
</value_map>
|
</value_map>
|
||||||
</value_maps>
|
</value_maps>
|
||||||
</zabbix_export>
|
</zabbix_export>
|
||||||
|
|||||||
+1373
-1373
File diff suppressed because it is too large
Load Diff
+175
-175
@@ -1,175 +1,175 @@
|
|||||||
zabbix_export:
|
zabbix_export:
|
||||||
version: '5.2'
|
version: '5.2'
|
||||||
date: '2021-03-29T07:44:35Z'
|
date: '2021-03-29T07:44:35Z'
|
||||||
groups:
|
groups:
|
||||||
-
|
-
|
||||||
name: Whatsminer
|
name: Whatsminer
|
||||||
templates:
|
templates:
|
||||||
-
|
-
|
||||||
template: Whatsminer
|
template: Whatsminer
|
||||||
name: Whatsminer
|
name: Whatsminer
|
||||||
groups:
|
groups:
|
||||||
-
|
-
|
||||||
name: Whatsminer
|
name: Whatsminer
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsHW
|
name: WhatsHW
|
||||||
-
|
-
|
||||||
name: WhatsInfo
|
name: WhatsInfo
|
||||||
-
|
-
|
||||||
name: WhatsState
|
name: WhatsState
|
||||||
items:
|
items:
|
||||||
-
|
-
|
||||||
name: Fan-In
|
name: Fan-In
|
||||||
type: DEPENDENT
|
type: DEPENDENT
|
||||||
key: FanIn
|
key: FanIn
|
||||||
delay: '0'
|
delay: '0'
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: FLOAT
|
value_type: FLOAT
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsHW
|
name: WhatsHW
|
||||||
preprocessing:
|
preprocessing:
|
||||||
-
|
-
|
||||||
type: JSONPATH
|
type: JSONPATH
|
||||||
parameters:
|
parameters:
|
||||||
- '$[0][''Fan Speed In'']'
|
- '$[0][''Fan Speed In'']'
|
||||||
master_item:
|
master_item:
|
||||||
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
-
|
-
|
||||||
name: Fan-Out
|
name: Fan-Out
|
||||||
type: DEPENDENT
|
type: DEPENDENT
|
||||||
key: FanOut
|
key: FanOut
|
||||||
delay: '0'
|
delay: '0'
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: FLOAT
|
value_type: FLOAT
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsHW
|
name: WhatsHW
|
||||||
preprocessing:
|
preprocessing:
|
||||||
-
|
-
|
||||||
type: JSONPATH
|
type: JSONPATH
|
||||||
parameters:
|
parameters:
|
||||||
- '$[0][''Fan Speed Out'']'
|
- '$[0][''Fan Speed Out'']'
|
||||||
master_item:
|
master_item:
|
||||||
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
-
|
-
|
||||||
name: Hashrate
|
name: Hashrate
|
||||||
type: DEPENDENT
|
type: DEPENDENT
|
||||||
key: Hash
|
key: Hash
|
||||||
delay: '0'
|
delay: '0'
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: FLOAT
|
value_type: FLOAT
|
||||||
units: TH/s
|
units: TH/s
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsHW
|
name: WhatsHW
|
||||||
preprocessing:
|
preprocessing:
|
||||||
-
|
-
|
||||||
type: JSONPATH
|
type: JSONPATH
|
||||||
parameters:
|
parameters:
|
||||||
- '$[0][''MHS av'']'
|
- '$[0][''MHS av'']'
|
||||||
master_item:
|
master_item:
|
||||||
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
-
|
-
|
||||||
name: UpDown
|
name: UpDown
|
||||||
type: SIMPLE
|
type: SIMPLE
|
||||||
key: icmpping
|
key: icmpping
|
||||||
delay: 60s
|
delay: 60s
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsState
|
name: WhatsState
|
||||||
valuemap:
|
valuemap:
|
||||||
name: 'Service state'
|
name: 'Service state'
|
||||||
-
|
-
|
||||||
name: Asic
|
name: Asic
|
||||||
type: SIMPLE
|
type: SIMPLE
|
||||||
key: 'net.tcp.service[tcp,,4028]'
|
key: 'net.tcp.service[tcp,,4028]'
|
||||||
delay: 60s
|
delay: 60s
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsState
|
name: WhatsState
|
||||||
valuemap:
|
valuemap:
|
||||||
name: 'Service state'
|
name: 'Service state'
|
||||||
request_method: POST
|
request_method: POST
|
||||||
-
|
-
|
||||||
name: Temperature
|
name: Temperature
|
||||||
type: DEPENDENT
|
type: DEPENDENT
|
||||||
key: Temp
|
key: Temp
|
||||||
delay: '0'
|
delay: '0'
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: TEXT
|
value_type: TEXT
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsHW
|
name: WhatsHW
|
||||||
preprocessing:
|
preprocessing:
|
||||||
-
|
-
|
||||||
type: JSONPATH
|
type: JSONPATH
|
||||||
parameters:
|
parameters:
|
||||||
- '$[0][''Temperature'']'
|
- '$[0][''Temperature'']'
|
||||||
master_item:
|
master_item:
|
||||||
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
-
|
-
|
||||||
name: AsicPolls
|
name: AsicPolls
|
||||||
type: EXTERNAL
|
type: EXTERNAL
|
||||||
key: 'Whats["pools", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["pools", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
delay: 300s
|
delay: 300s
|
||||||
history: '0'
|
history: '0'
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: TEXT
|
value_type: TEXT
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsInfo
|
name: WhatsInfo
|
||||||
-
|
-
|
||||||
name: AsicSummary
|
name: AsicSummary
|
||||||
type: EXTERNAL
|
type: EXTERNAL
|
||||||
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
key: 'Whats["summary", "{HOST.CONN}", "{$HOST.PORT}"]'
|
||||||
delay: 300s
|
delay: 300s
|
||||||
history: 1d
|
history: 1d
|
||||||
trends: '0'
|
trends: '0'
|
||||||
value_type: TEXT
|
value_type: TEXT
|
||||||
applications:
|
applications:
|
||||||
-
|
-
|
||||||
name: WhatsInfo
|
name: WhatsInfo
|
||||||
macros:
|
macros:
|
||||||
-
|
-
|
||||||
macro: '{$TEMP_HIGH}'
|
macro: '{$TEMP_HIGH}'
|
||||||
value: '80'
|
value: '80'
|
||||||
triggers:
|
triggers:
|
||||||
-
|
-
|
||||||
expression: '{Whatsminer:Hash.nodata(15m)}=1 and {Whatsminer:icmpping.last()}=1'
|
expression: '{Whatsminer:Hash.nodata(15m)}=1 and {Whatsminer:icmpping.last()}=1'
|
||||||
name: 'Whatsminer Hashrate information not available on {HOST.NAME}'
|
name: 'Whatsminer Hashrate information not available on {HOST.NAME}'
|
||||||
priority: HIGH
|
priority: HIGH
|
||||||
manual_close: 'YES'
|
manual_close: 'YES'
|
||||||
-
|
-
|
||||||
expression: '{Whatsminer:icmpping.max(#3)}=0 and {Whatsminer:net.tcp.service[tcp,,4028].last(#3)}=0'
|
expression: '{Whatsminer:icmpping.max(#3)}=0 and {Whatsminer:net.tcp.service[tcp,,4028].last(#3)}=0'
|
||||||
recovery_mode: RECOVERY_EXPRESSION
|
recovery_mode: RECOVERY_EXPRESSION
|
||||||
recovery_expression: '{Whatsminer:icmpping.last()}=1 and {Whatsminer:net.tcp.service[tcp,,4028].last()}=1'
|
recovery_expression: '{Whatsminer:icmpping.last()}=1 and {Whatsminer:net.tcp.service[tcp,,4028].last()}=1'
|
||||||
name: 'WhatsMiner Host Down {HOST.NAME}'
|
name: 'WhatsMiner Host Down {HOST.NAME}'
|
||||||
priority: DISASTER
|
priority: DISASTER
|
||||||
manual_close: 'YES'
|
manual_close: 'YES'
|
||||||
-
|
-
|
||||||
expression: '{Whatsminer:Temp.last(,15m)}>{$TEMP_HIGH} and {Whatsminer:icmpping.last()}=1'
|
expression: '{Whatsminer:Temp.last(,15m)}>{$TEMP_HIGH} and {Whatsminer:icmpping.last()}=1'
|
||||||
recovery_mode: RECOVERY_EXPRESSION
|
recovery_mode: RECOVERY_EXPRESSION
|
||||||
recovery_expression: '{Whatsminer:Temp.last(,15m)}<{$HIGH_TEMP} and {Whatsminer:icmpping.last()}=1'
|
recovery_expression: '{Whatsminer:Temp.last(,15m)}<{$HIGH_TEMP} and {Whatsminer:icmpping.last()}=1'
|
||||||
name: 'Whatsminer {HOST.NAME} High Temp'
|
name: 'Whatsminer {HOST.NAME} High Temp'
|
||||||
priority: AVERAGE
|
priority: AVERAGE
|
||||||
manual_close: 'YES'
|
manual_close: 'YES'
|
||||||
value_maps:
|
value_maps:
|
||||||
-
|
-
|
||||||
name: 'Service state'
|
name: 'Service state'
|
||||||
mappings:
|
mappings:
|
||||||
-
|
-
|
||||||
value: '0'
|
value: '0'
|
||||||
newvalue: Down
|
newvalue: Down
|
||||||
-
|
-
|
||||||
value: '1'
|
value: '1'
|
||||||
newvalue: Up
|
newvalue: Up
|
||||||
|
|||||||
+48
-48
@@ -1,48 +1,48 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<zabbix_export>
|
<zabbix_export>
|
||||||
<version>4.2</version>
|
<version>4.2</version>
|
||||||
<date>2019-07-10T14:29:22Z</date>
|
<date>2019-07-10T14:29:22Z</date>
|
||||||
<value_maps>
|
<value_maps>
|
||||||
<value_map>
|
<value_map>
|
||||||
<name>Asic</name>
|
<name>Asic</name>
|
||||||
<mappings>
|
<mappings>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
<newvalue>Normal</newvalue>
|
<newvalue>Normal</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>240</value>
|
<value>240</value>
|
||||||
<newvalue>Low Power Enhanced Mode</newvalue>
|
<newvalue>Low Power Enhanced Mode</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>241</value>
|
<value>241</value>
|
||||||
<newvalue>HashRate-0.5TH/S</newvalue>
|
<newvalue>HashRate-0.5TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>242</value>
|
<value>242</value>
|
||||||
<newvalue>HashRate-1.0TH/S</newvalue>
|
<newvalue>HashRate-1.0TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>243</value>
|
<value>243</value>
|
||||||
<newvalue>HashRate-1.5TH/S</newvalue>
|
<newvalue>HashRate-1.5TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>244</value>
|
<value>244</value>
|
||||||
<newvalue>HashRate-2.0TH/S</newvalue>
|
<newvalue>HashRate-2.0TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>245</value>
|
<value>245</value>
|
||||||
<newvalue>HashRate-2.5TH/S</newvalue>
|
<newvalue>HashRate-2.5TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>246</value>
|
<value>246</value>
|
||||||
<newvalue>HashRate-3.0TH/S</newvalue>
|
<newvalue>HashRate-3.0TH/S</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping>
|
<mapping>
|
||||||
<value>250</value>
|
<value>250</value>
|
||||||
<newvalue>Hashrate Unchanged - Lower Voltage</newvalue>
|
<newvalue>Hashrate Unchanged - Lower Voltage</newvalue>
|
||||||
</mapping>
|
</mapping>
|
||||||
</mappings>
|
</mappings>
|
||||||
</value_map>
|
</value_map>
|
||||||
</value_maps>
|
</value_maps>
|
||||||
</zabbix_export>
|
</zabbix_export>
|
||||||
|
|||||||
+43
-43
@@ -1,44 +1,44 @@
|
|||||||
LogFile=/var/log/zabbix/zabbix_server.log
|
LogFile=/var/log/zabbix/zabbix_server.log
|
||||||
LogFileSize=1
|
LogFileSize=1
|
||||||
DebugLevel=1
|
DebugLevel=1
|
||||||
PidFile=/var/run/zabbix/zabbix_server.pid
|
PidFile=/var/run/zabbix/zabbix_server.pid
|
||||||
DBHost=localhost
|
DBHost=localhost
|
||||||
DBName=zabbix
|
DBName=zabbix
|
||||||
DBUser=zabbix
|
DBUser=zabbix
|
||||||
DBPassword=password
|
DBPassword=password
|
||||||
DBSocket=/var/run/mysqld/mysqld.sock
|
DBSocket=/var/run/mysqld/mysqld.sock
|
||||||
# DBPort=
|
# DBPort=
|
||||||
StartPollers=32
|
StartPollers=32
|
||||||
# StartPreprocessors=3
|
# StartPreprocessors=3
|
||||||
StartPollersUnreachable=16
|
StartPollersUnreachable=16
|
||||||
StartTrappers=15
|
StartTrappers=15
|
||||||
StartPingers=32
|
StartPingers=32
|
||||||
# StartDiscoverers=1
|
# StartDiscoverers=1
|
||||||
StartHTTPPollers=0
|
StartHTTPPollers=0
|
||||||
StartEscalators=10
|
StartEscalators=10
|
||||||
# StartAlerters=3
|
# StartAlerters=3
|
||||||
ListenIP=0.0.0.0
|
ListenIP=0.0.0.0
|
||||||
HousekeepingFrequency=0
|
HousekeepingFrequency=0
|
||||||
# MaxHousekeeperDelete=0
|
# MaxHousekeeperDelete=0
|
||||||
CacheSize=1G
|
CacheSize=1G
|
||||||
StartDBSyncers=10
|
StartDBSyncers=10
|
||||||
HistoryCacheSize=512M
|
HistoryCacheSize=512M
|
||||||
#HistoryIndexCacheSize=128M
|
#HistoryIndexCacheSize=128M
|
||||||
TrendCacheSize=128M
|
TrendCacheSize=128M
|
||||||
ValueCacheSize=256M
|
ValueCacheSize=256M
|
||||||
Timeout=30
|
Timeout=30
|
||||||
# UnreachablePeriod=45
|
# UnreachablePeriod=45
|
||||||
# UnavailableDelay=60
|
# UnavailableDelay=60
|
||||||
# UnreachableDelay=15
|
# UnreachableDelay=15
|
||||||
AlertScriptsPath=/usr/lib/zabbix/alertscripts
|
AlertScriptsPath=/usr/lib/zabbix/alertscripts
|
||||||
ExternalScripts=/usr/lib/zabbix/externalscripts
|
ExternalScripts=/usr/lib/zabbix/externalscripts
|
||||||
FpingLocation=/usr/bin/fping
|
FpingLocation=/usr/bin/fping
|
||||||
LogSlowQueries=3000
|
LogSlowQueries=3000
|
||||||
# TmpDir=/tmp
|
# TmpDir=/tmp
|
||||||
StartProxyPollers=0
|
StartProxyPollers=0
|
||||||
# ProxyConfigFrequency=3600
|
# ProxyConfigFrequency=3600
|
||||||
# ProxyDataFrequency=1
|
# ProxyDataFrequency=1
|
||||||
AllowRoot=1
|
AllowRoot=1
|
||||||
# User=zabbix
|
# User=zabbix
|
||||||
# Include=/usr/local/etc/zabbix_server.conf.d/
|
# Include=/usr/local/etc/zabbix_server.conf.d/
|
||||||
StatsAllowedIP=127.0.0.1
|
StatsAllowedIP=127.0.0.1
|
||||||
Reference in New Issue
Block a user