Re: how to detect if ARS server is not running
Brought to you by:
jeffmurphy
|
From: Mark F. <mf...@ma...> - 1996-04-18 17:02:18
|
Wing Ho Choy writes:
> Is it possible to find out whether the Remedy is running or not?
> It seems that the ars_Login will return the control structure no
> matter whether the Remedy server is up or not.
Just do some operation that actually talks to the server. I have a
monitor that periodically checks the status of Sybase and then
transacts some business with Remedy to make sure everything's working
properly. The first thing I do after an ars_Login is try and load a
qualifier:
if ( ! ($qual = ARS::ars_LoadQualifier($ctrl, "User", "1 = 1")) )
{
die "Can't talk to Remedy: $ars_errstr\n";
}
If this (or any subsequent operation) fails, I assume Remedy's hosed
up.
- Mark
___
| |/ Mark A. Feit, KR4FH Staff Programmer
|/| / mf...@uu... UUNET Technologies, Inc.
/ |/| http://www.uu.net Fairfax, Virginia, U.S.A.
/|___| "There cannot be a crisis next week. My schedule is already full."
UUNET - Henry Kissinger
|