I got a problem with the reply of a shell script.
I wrote a shell script to test tablespaces of an Oracle database at Solaris. After testing, I got the reply with the overfilled tablespaces or everything is okay. The reply is shown correctly in HM's Quick log and I can send it via mail (used variable: %Reply_CStyle%).
In the shell script:
Code: Select all
...
if [ "$reply" != "" ]; then
echo "ScriptRes:Bad:$reply"
else
echo "ScriptRes:Ok:Tablespaces ok"
fi
...
Code: Select all
X Server4711 [DATA (57)] X Server0815 [SYSTEM (99)]
MACHINE [TABLESPACE (FILL LEVEL)], separated with 'X'
If I'm switching between testing and reverse-testing (thus the status changes), the reply is up-to-date, but if the test is controlled by HM, the reply is still the same, even if a new tablespace should be listed, because it's the same status. If all tablespaces come right, the status changes and the test (controlled by HM) got an up-to-date reply.
As long as the status is "Bad", the reply is till the same like at the time when the test became bad.
Any Idea?
Thank you for taking the time to help me.
ataudte