Re: Is there a watchdog in openh323gk

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

 



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...


-------------------------------------------------------
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_id78&alloc_id371&opÌk
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id?49
Homepage: http://www.gnugk.org/


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

  Powered by Linux