Hi,
there is mistake in function CheckDbStatus.
The correct string "smon_$ORACLE_SID" instead
of "smon_$ORACLE_SID$", then you can gather data
from Oracle instance else you obtain error
message: "The instance $ORACLE_SID is not running.
Skipping pending tests." even if istance is runnig.
#---------------------------
# Find out wether the databse $ORACLE_SID is up
# or not.
#...