diff --git a/extra/resources/HealthIOWait b/extra/resources/HealthIOWait index 5b9aba6573..d809434271 100755 --- a/extra/resources/HealthIOWait +++ b/extra/resources/HealthIOWait @@ -1,182 +1,196 @@ #!/bin/sh # # ocf:pacemaker:HealthIOWait resource agent # # Copyright 2004-2021 the Pacemaker project contributors # # The version control history for this file may have further details. # # This source code is licensed under the GNU General Public License version 2 # (GPLv2) WITHOUT ANY WARRANTY. # # # Measures CPU iowait % via top and writes #health-iowait status into the CIB # ####################################################################### # Initialization: : ${OCF_FUNCTIONS:="${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs"} . "${OCF_FUNCTIONS}" : ${__OCF_ACTION:="$1"} ####################################################################### meta_data() { cat < 1.0 System health agent that measures the CPU iowait via top and updates the #health-iowait attribute. System health based on CPU iowait measurement Location to store the resource state in. State file Upper limit of iowait percentage to switch the health attribute to yellow. I.e. the #health-iowait will go yellow if the %iowait of the CPU gets higher than 10%. Upper limit for yellow health attribute - + Upper limit of iowait percentage to switch the health attribute to red. I.e. the #health-iowait will go red if the %iowait of the CPU get higher than 15%. Upper limit for red health attribute - + END } ####################################################################### agent_usage() { cat <