I missed this bit..
I have a cron job for this (attached). It opens a connection to both the
SMTP and Web interface ports and makes sure it gets a connection
Uses mutt to send email notifications.
My actual script contains a few of other things for other daemons/upgrades
and connectivity so this is just the relevant bit.
There are loads of third party utilities that can do monitoring too.
All the best,
Colin Waring.
-----Original Message-----
From: Doug Lytle [mailto:[email protected]]
Sent: 20 September 2013 10:04
To: ASSP development mailing list
Subject: Re: [Assp-test] assp dying
Spyros Tsiolis wrote:
> Is there a way to check if assp is running and if its not start
> automatically.
I use monit to watch ASSP.
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."
----------------------------------------------------------------------------
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends
9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test
#/bin/sh
#####################################################################################
# Lantern Hosting Services monitoring script - Copyright 2011-2013
#####################################################################################
checklocal(){
_asspok=`telnet localhost 25 < /dev/null 2>/dev/null|grep Connected|cut
-d " " -f1`
_asspwebok=`telnet localhost 55555 < /dev/null 2>/dev/null|grep
Connected|cut -d " " -f1`
_localfail='0'
if [ "$_asspok" != "Connected" ]; then
_localfail='1'
fi
if [ "$_asspwebok" != "Connected" ]; then
_localfail='1'
fi
return $_localfail
}
if [ ! -f /tmp/asspupgrade ]; then
checklocal
if [ $? -eq 1 ]; then
sleep 5
checklocal
if [ $? -eq 1 ]; then
sh /etc/init.d/assp stop
touch /tmp/assprestart
sleep 5
sh /etc/init.d/assp start
/usr/bin/tail -n 20 /usr/local/assp/maillog.txt
|/usr/bin/mutt -s "ASSP Restarted on m1 Due to port 25/55555 failure" root
fi
fi
fi
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test