Re: Monitor script
Posted in 1998
Miles Palmer wrote:
>
> Does anyone have a Sun script that can be executed in cron to see if the
> database/server is still up?
>
> Thanks in advance!
Something like:
------------------------------------------------------------------------
....Set your environment ...carefully
onstat - >/dev/null
if [ $? -ne 5 ]
then
....online is down
fi
------------------------------------------------------------------------
Cheers,
--
Mark.
+----------------------------------------------------------+-----------+
|Mark D. Stock - Informix SA http://www.informix.com |//////// /|
|mailto:mdstock@informix.com http://www.informix.com/idn |///// / //|
|http://www.iiug.org +-----------------------------------+//// / ///|
| Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////|
| Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////|
|Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////|
+----------------------+-----------------------------------+-----------+