plugin check_hpux_ovpa_status() requires --log-healthy handling from config file
This commit is contained in:
parent
9a44dabd0d
commit
907e45137b
@ -6,6 +6,11 @@
|
||||
# [default: indicates hardcoded script values if no value is defined here]
|
||||
#******************************************************************************
|
||||
|
||||
# specify whether to also log passed health checks
|
||||
# (warning: this may rapidly grow the HC log)
|
||||
# [default: no]
|
||||
log_healthy=yes
|
||||
|
||||
# list of OVPA daemons to check (comma-separated list)
|
||||
# [default: oacore,midaemon,perfalarm,ttd,ovcd,ovbbccb,perfd (v12)]
|
||||
ovpa_daemons=""
|
||||
|
@ -91,6 +91,16 @@ else
|
||||
_OVPA_DAEMONS=$(data_comma2space $(data_dequote "${_OVPA_DAEMONS}"))
|
||||
fi
|
||||
log "checking daemons: ${_OVPA_DAEMONS} ..."
|
||||
_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy')
|
||||
case "${_CFG_HEALTHY}" in
|
||||
yes|YES|Yes)
|
||||
_LOG_HEALTHY=1
|
||||
;;
|
||||
*)
|
||||
# do not override hc_arg
|
||||
(( _LOG_HEALTHY > 0 )) || _LOG_HEALTHY=0
|
||||
;;
|
||||
esac
|
||||
|
||||
# log_healthy
|
||||
(( ARG_LOG_HEALTHY > 0 )) && _LOG_HEALTHY=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user