Re: Re: Is there a watchdog in openh323gk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cheers :-)

On 23 Dec 2003 at 15:09, derrickb wrote:

> Here is a little shell script that I run every 2 minutes... Better
> than sitting and watching!
> 
> ###Start
> PT=/usr/local/gk_monitor
> 
> TST=`telnet localhost 7000 << EOF
> q
> EOF`
> 
> if echo $TST | grep -c Escape > 0
> then
>         echo "`date`:GOOD" > /tmp/gk_test.log
> else
>         /etc/init.d/gk.initd restart
>         echo "`date`:RESET GATEKEEPER" >> $PT/logfile
> fi
> ###end
> 
> 
> 
> 
> PT is the directory where the scriptis running... And of course if you
> have a different place to restart your gatekeeper, you'll have to
> change that as well...
-------------------------------------
Name: Dr Steve Mace
E-mail: steve@solwise.co.uk
http://www.solwise.co.uk
Tel: 0845 458 4558 (local rate)
Fax: 0845 458 4559
Intl. Fax: +44 1482 672877
VoIP: solwise-voip.co.uk/213.249.152.211
------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux