move hashrate_low trigger value to macros

This commit is contained in:
2019-12-28 10:42:19 +08:00
parent affed1458b
commit 493d3b4ae1
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.2</version>
<date>2019-12-28T01:55:53Z</date>
<date>2019-12-28T02:40:48Z</date>
<groups>
<group>
<name>AntMiner L3</name>
@@ -1701,6 +1701,10 @@
<discovery_rules/>
<httptests/>
<macros>
<macro>
<macro>{$HASH_LOW}</macro>
<value>400</value>
</macro>
<macro>
<macro>{$HOST.PORT}</macro>
<value>4028</value>
@@ -1777,7 +1781,7 @@
<tags/>
</trigger>
<trigger>
<expression>({AntMiner L3:AntMinerL3.Hashrate.last(240)}&lt;400 and {AntMiner L3:AntMinerL3.Elapsed.last()}&gt;600) and ({AntMiner L3:icmpping.last()}=1)</expression>
<expression>({AntMiner L3:AntMinerL3.Hashrate.last(240)}&lt;{$HASH_LOW} and {AntMiner L3:AntMinerL3.Elapsed.last()}&gt;600) and ({AntMiner L3:icmpping.last()}=1)</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>AntMiner L3 Low hashrate on {HOST.NAME}</name>