Restarting a hung Lasso

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Restarting a hung Lasso

Lee Glickenhaus-2
Lasso 8.6 has started hanging on me from time to time. It just goes unresponsive.

I have a routine I’ve been using to restart Lasso when the “SMTP deafness” issue arises, but, of course, it relies on a Lasso tag. And I can’t use that if Lasso isn’t responding.  So it has to be done manually which is non-optimal.

I’m looking for any suggestions about how to automate this process.

Thanks

Lee


 




#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Restarting a hung Lasso

Trevor Borgmeier
Here is something I had done a while ago...

Step 1:
create a simple lasso page, like ping.lasso that simply returns a "1"
lasso code: ['1']

Then have a bash script like that below, maybe ping_lasso.sh and call it
at whatever frequency you prefer using crontab (or maybe launchd, if you
prefer)

---

#!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin; export PATH

# Ping Lasso
web_response=`cURL -s -m 10 http://url/ping.lasso`;
if [ "$web_response" != "1" ]; then

     echo "lasso appears to be down on Server X"

     RESULT=`/usr/sbin/lasso8ctl restart`

     email_body="Lasso 8.5 appears to be down on the Server X -
attempting to restart lasso...\n\n Response:\n $web_response \n\n Lasso
Restart Result:\n $RESULT"

     echo "${email_body}" | mail -s "Lasso 8 DOWN on server X"
[hidden email]

else
     echo "Lasso 8.5 appears to be working."
fi

---
You could do similarly with other urls , or make the scripts more
complex if you wanted to test select functionality of lasso beyond the
bask functionality -- like checking if lasso is up, test lasso for DNS
deafness, or any other issues/conditions you want to evaluate for... but
the above should give you a start to one approach to this.  Since the
bash script isn't using lasso, it can work to self monitor lasso from
the same server, but you could also put it on another box, too...

-Trevor




On 6/6/17 10:50 AM, Lee Glickenhaus wrote:

> Lasso 8.6 has started hanging on me from time to time. It just goes unresponsive.
>
> I have a routine I’ve been using to restart Lasso when the “SMTP deafness” issue arises, but, of course, it relies on a Lasso tag. And I can’t use that if Lasso isn’t responding.  So it has to be done manually which is non-optimal.
>
> I’m looking for any suggestions about how to automate this process.
>
> Thanks
>
> Lee
>
>
>  
>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>    the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


ɹǝıǝɯƃɹoq ɹoʌǝɹʇ


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Restarting a hung Lasso

stevepiercy
In reply to this post by Lee Glickenhaus-2
Another option.
http://www.lassosoft.com/Monitoring-Lasso-with-Monit

--steve


On 6/6/17 at 11:50 AM, [hidden email] (Lee Glickenhaus) pronounced:

>Lasso 8.6 has started hanging on me from time to time. It just goes unresponsive.
>
>I have a routine I’ve been using to restart Lasso when the
>“SMTP deafness” issue arises, but, of course, it relies on
>a Lasso tag. And I can’t use that if Lasso isn’t
>responding.  So it has to be done manually which is non-optimal.
>
>I’m looking for any suggestions about how to automate this process.
>
>Thanks
>
>Lee
>
>
>
>
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Loading...