triggered static url moved to macros

This commit is contained in:
3err0
2019-06-06 02:24:07 +08:00
parent b3e3b752b2
commit 2f78e62830
2 changed files with 28 additions and 4 deletions
+14 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.2</version>
<date>2019-06-04T05:31:07Z</date>
<date>2019-06-05T18:22:29Z</date>
<groups>
<group>
<name>AntMiner S9</name>
@@ -1525,6 +1525,18 @@
<macro>{$HOST.PORT}</macro>
<value>4028</value>
</macro>
<macro>
<macro>{$URL1}</macro>
<value>stratum+tcp://eu1.btc.sigmapool.com:3333</value>
</macro>
<macro>
<macro>{$URL2}</macro>
<value>stratum+tcp://eu2.btc.sigmapool.com:3333</value>
</macro>
<macro>
<macro>{$URL3}</macro>
<value>stratum+tcp://stratum.antpool.com:3333</value>
</macro>
</macros>
<templates/>
<screens/>
@@ -1645,7 +1657,7 @@
<tags/>
</trigger>
<trigger>
<expression>({AntMiner S9:AntMinerS9.URL1.str(stratum+tcp://eu1.btc.sigmapool.com:3333)}=0 or {AntMiner S9:AntMinerS9.URL2.str(stratum+tcp://eu2.btc.sigmapool.com:3333)}=0 or {AntMiner S9:AntMinerS9.URL3.str(stratum+tcp://stratum.antpool.com:3333)}=0) and {AntMiner S9:icmpping.last()}=1</expression>
<expression>({AntMiner S9:AntMinerS9.URL1.str({$URL1})}=0 or {AntMiner S9:AntMinerS9.URL2.str({$URL2})}=0 or {AntMiner S9:AntMinerS9.URL3.str({$URL3})}=0) and {AntMiner S9:icmpping.last()}=1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Внимание &quot;левые&quot; URL! {HOST.NAME}</name>