From cc9efabb68e03279bff58f80dbe6574d8678d23d Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Tue, 25 Sep 2018 11:00:30 +0200 Subject: [PATCH] Small comment updates + fix --- sources/lib/core/include_data.sh | 3 +-- sources/lib/platform/hp-ux/check_hpux_ovpa_status.sh | 2 +- sources/lib/platform/hp-ux/check_hpux_syslog.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/lib/core/include_data.sh b/sources/lib/core/include_data.sh index b57c8f7..cde10ac 100644 --- a/sources/lib/core/include_data.sh +++ b/sources/lib/core/include_data.sh @@ -121,7 +121,6 @@ print -R "${1}" 2>/dev/null | sed "s/${_MAGIC}/${_SEP}/g" 2>/dev/null return 0 } - # ----------------------------------------------------------------------------- # @(#) FUNCTION: data_escape_csv() # DOES: escapes semi-colons @@ -692,7 +691,7 @@ return ${_RC} # ----------------------------------------------------------------------------- # @(#) FUNCTION: data_date2epoch() # DOES: converts a given date into UNIX epoch seconds -# EXPECTS: date formatted as individual parameters: +# EXPECTS: date formatted as individual parameters (in UTC time): # $1 : YYYY # $2 : MM # $3 : DD diff --git a/sources/lib/platform/hp-ux/check_hpux_ovpa_status.sh b/sources/lib/platform/hp-ux/check_hpux_ovpa_status.sh index 95e277a..edbee89 100644 --- a/sources/lib/platform/hp-ux/check_hpux_ovpa_status.sh +++ b/sources/lib/platform/hp-ux/check_hpux_ovpa_status.sh @@ -141,7 +141,7 @@ do ;; esac - # handle result + # report result if (( _LOG_HEALTHY > 0 || _STC > 0 )) then log_hc "$0" ${_STC} "${_MSG}" diff --git a/sources/lib/platform/hp-ux/check_hpux_syslog.sh b/sources/lib/platform/hp-ux/check_hpux_syslog.sh index 858d4fe..e704e16 100644 --- a/sources/lib/platform/hp-ux/check_hpux_syslog.sh +++ b/sources/lib/platform/hp-ux/check_hpux_syslog.sh @@ -132,7 +132,7 @@ then then mv ${_TMP_FILE} ${_STATE_FILE} >/dev/null 2>&1 (( $? > 0 )) && { - warn "failed to move temporary state file" + warn "failed to move temporary state file to permanent state file ${_STATE_FILE}" return 1 } fi