I have written a small script to get the state of an oracle DB in HM.
The Script should return the state of the Oracle DB
If I run the script "test3.sh" within putty as user root, everthing worksfine and I get the result value.
If I call the script from Hostmonitor I get no value for val. The RMA is running with root rights.
I'm not very familiar with scripting on/and Linux. Probably it is more a problem of my scripting knowledge than a problem of HM.

Perhaps someone has an idea!
Thanks in advance.
Thomas
#!/bin/sh
VAL="Error"
VAL=`./home/oracle/epeppdm/test3.sh`
if [ "$VAL" == "OPEN" ]; then
echo ScriptRes:Ok:$VAL
else
echo ScriptRes:Bad:$VAL
fi
---------- test3.sh ----------
#!/bin/sh
instance='$Instance'
VAL="ERROR"
VAL=`/opt/oracle/product/10.2.0/bin/sqlplus -s system/manager <<END
set pagesize 0 feedback off verify off heading off echo off
select status from v$instance
exit;
END`
echo $VAL