From 7ca607b8e25eb3904b2f00cee20874c41a97c102 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Wed, 5 Jun 2019 21:50:59 +0800 Subject: [PATCH] trigger if gpu disconnected {} host macros --- template-farm.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/template-farm.xml b/template-farm.xml index 505418e..ee03fa9 100644 --- a/template-farm.xml +++ b/template-farm.xml @@ -1,7 +1,7 @@ 4.2 - 2019-06-05T11:08:32Z + 2019-06-05T13:49:29Z Фермы @@ -1339,6 +1339,22 @@ return $123; + + ({Farm:icmpping.last()}=1 and {Farm:net.tcp.service[tcp,,3333].last()}=1) and {Farm:Farm.VideoSum.last()}<{$VIDEO} + 0 + + Отвал GPU {HOST.NAME} + 0 + + + 0 + 1 + + 0 + 1 + + + {Farm:net.tcp.service[tcp,,3333].last()}=1 and {Farm:icmpping.last()}=1 and {Farm:FarmGetstats["{HOST.CONN}", "{$HOST.PORT}"].nodata(15m)}=1 0