hi
i setup a trigger:
({TRIGGER.VALUE}=0&{template-linux:system.run["echo \"$(cat /proc/loadavg|awk '{print $1}') / (1 + $(cat /proc/cpuinfo |grep -Ei '^proc'|tail -n 1|awk '{print $3}')) \"| bc -l",wait].count(#4,12,"ge")}=4)|({TRIGGER.VALUE}=1&{templat e-linux:system.run["echo \"$(cat /proc/loadavg|awk '{print $1}') / (1 + $(cat /proc/cpuinfo |grep -Ei '^proc'|tail -n 1|awk '{print $3}')) \"| bc -l",wait].count(#4,12,"le")}=4)
it throws the trigger if trigger is OK and the 1min cpu load regardless of how many cpu are installed is greater or equal 12 during last 4 checks.
it puts trigger back to OK if trigger is PROBLEM and the 1min cpu load regardless of how many cpu are installed is less or equal 12 during last 4 checks.
each check is 60sec apart but trigger causes action already after first check !
i setup a trigger:
({TRIGGER.VALUE}=0&{template-linux:system.run["echo \"$(cat /proc/loadavg|awk '{print $1}') / (1 + $(cat /proc/cpuinfo |grep -Ei '^proc'|tail -n 1|awk '{print $3}')) \"| bc -l",wait].count(#4,12,"ge")}=4)|({TRIGGER.VALUE}=1&{templat e-linux:system.run["echo \"$(cat /proc/loadavg|awk '{print $1}') / (1 + $(cat /proc/cpuinfo |grep -Ei '^proc'|tail -n 1|awk '{print $3}')) \"| bc -l",wait].count(#4,12,"le")}=4)
it throws the trigger if trigger is OK and the 1min cpu load regardless of how many cpu are installed is greater or equal 12 during last 4 checks.
it puts trigger back to OK if trigger is PROBLEM and the 1min cpu load regardless of how many cpu are installed is less or equal 12 during last 4 checks.
each check is 60sec apart but trigger causes action already after first check !