Extra check on kctune

This commit is contained in:
Patrick Van der Veken 2018-01-05 15:48:59 +01:00
parent b069d08d38
commit ae293c5b0d

View File

@ -72,14 +72,20 @@ then
return 1 return 1
fi fi
# collect data (mount only) # check & get kctune information
if [[ ! -x ${_KCTUNE_BIN} ]]
then
warn "kctune is not installed here (not HP-UX 11.31?)"
return 1
else
${_KCTUNE_BIN} >>${HC_STDOUT_LOG} 2>>${HC_STDERR_LOG} ${_KCTUNE_BIN} >>${HC_STDOUT_LOG} 2>>${HC_STDERR_LOG}
if (( $? != 0 )) if (( $? != 0 ))
then then
_MSG="unable to gather kctune information (not HP-UX 11.31?)" _MSG="unable to gather kctune information"
log_hc "$0" 1 "${_MSG}" log_hc "$0" 1 "${_MSG}"
return 0 return 0
fi fi
fi
# check configuration values # check configuration values
grep -i '^param:' ${_CONFIG_FILE} 2>/dev/null |\ grep -i '^param:' ${_CONFIG_FILE} 2>/dev/null |\