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:56:20Z</date>
<date>2019-12-28T02:41:13Z</date>
<groups>
<group>
<name>AntMiner S9</name>
@@ -1591,6 +1591,10 @@
<discovery_rules/>
<httptests/>
<macros>
<macro>
<macro>{$HASH_LOW}</macro>
<value>13</value>
</macro>
<macro>
<macro>{$HOST.PORT}</macro>
<value>4028</value>
@@ -1667,7 +1671,7 @@
<tags/>
</trigger>
<trigger>
<expression>({AntMiner S9:AntMinerS9.Hashrate.max(240)}&lt;13 and {AntMiner S9:AntMinerS9.Elapsed.last()}&gt;600) and {AntMiner S9:icmpping.last()}=1</expression>
<expression>({AntMiner S9:AntMinerS9.Hashrate.max(240)}&lt;{$HASH_LOW} and {AntMiner S9:AntMinerS9.Elapsed.last()}&gt;600) and {AntMiner S9:icmpping.last()}=1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>AntMiner S9 Low hashrate on {HOST.NAME}</name>