Small fixes in aix/linux plugins
This commit is contained in:
parent
1dcc379141
commit
2035943b53
@ -62,7 +62,7 @@ lsfs -ac >>${HC_STDOUT_LOG} 2>>${HC_STDERR_LOG}
|
||||
(( $? == 0)) || return $?
|
||||
|
||||
# check for each auto-mount configured file system (except /)
|
||||
lsfs -ac |\
|
||||
lsfs -ac 2>/dev/null |\
|
||||
grep -v -E -e '^#' -e '^\/:' |\
|
||||
grep -E -e '.*:.*:.*:.*:.*:.*:.*:yes:.*' |\
|
||||
cut -f1 -d':' |\
|
||||
|
@ -62,11 +62,10 @@ mount >>${HC_STDOUT_LOG} 2>>${HC_STDERR_LOG}
|
||||
(( $? == 0 )) || return $?
|
||||
|
||||
# check for each auto-mount configured file system (except /)
|
||||
cat /etc/fstab |\
|
||||
grep -v -E -e '^#' -e '^$' \
|
||||
-e '[ \t]*.*[ \t]+(proc|swap|sysfs|devpts|tmpfs).*' \
|
||||
-e '(floppy|cdrom)' \
|
||||
-e '[ \t]*\/[ \t]+' |\
|
||||
grep -v -E -e '^#' -e '^$' \
|
||||
-e '[ \t]*.*[ \t]+(proc|swap|sysfs|devpts|tmpfs).*' \
|
||||
-e '(floppy|cdrom)' \
|
||||
-e '[ \t]*\/[ \t]+' etc/fstab 2>/dev/null |\
|
||||
awk '{print $2}' |\
|
||||
while read _FS
|
||||
do
|
||||
|
@ -132,7 +132,7 @@ else
|
||||
fi
|
||||
|
||||
# 1) active server
|
||||
_NTP_PEER="$(grep -E -e '^\*' 2>/dev/null ${HC_STDOUT_LOG} | awk '{ print $1 }') 2>/dev/null"
|
||||
_NTP_PEER="$(grep -E -e '^\*' 2>/dev/null ${HC_STDOUT_LOG} | awk '{ print $1 }' 2>/dev/null)"
|
||||
case ${_NTP_PEER} in
|
||||
\*127.127.1.0*)
|
||||
_MSG="NTP is synchronizing against its internal clock"
|
||||
@ -152,7 +152,7 @@ log_hc "$0" ${_STC} "${_MSG}"
|
||||
# 2) offset value
|
||||
if (( _STC == 0 ))
|
||||
then
|
||||
_CURR_OFFSET="$(grep -E -e '^\*' 2>/dev/null ${HC_STDOUT_LOG} | awk '{ print $9 }') 2>/dev/null"
|
||||
_CURR_OFFSET="$(grep -E -e '^\*' 2>/dev/null ${HC_STDOUT_LOG} | awk '{ print $9 }' 2>/dev/null)"
|
||||
case ${_CURR_OFFSET} in
|
||||
+([-0-9])*(.)*([0-9]))
|
||||
# numeric, OK (negatives are OK too!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user