It is not wise to monitor ASSP with a request on the default SMTP port. 
There are some realy good reasons, for which ASSP could close SMTP 
listeners for a while (for example MaxSMTPSessions was reached and the 
number of connections is still above 75% of MaxSMTPSessions ).
Even a response on the SMTP port does not meen that ASSP is running 
healthy!

Only the relayPort, the webPort and the statPort are opened every time (if 
configured).

A realy good way to get the status of ASSP is a http request to the 
statport and to grep the result for  'Current healthy status | healthy' - 
if the status of ASSP is not ok, the result will be 'Current healthy 
status | not healthy ' 

Another way is to use a connection, that is working like telnet  and query 
the statport:

[LF][LF]   or  [CR][LF][CR][LF]

as input - will return 'healthy' or 'not healthy' - for the simple 
monitoring, I think, this is the best way - it is realy fast.

stat[LF][LF]   or  stat[CR][LF][CR][LF]

as input - will return the complete status record with all informations 
(like a http request)

There is also no reason to restart ASSP even if you get a 'not healthy' 
back. In this case the MainThread is alive and it will try to recover a 
heathy state of all threads. If this is not successfull ASSP will restart 
it self (if configured the right way).

a good monitoring path would be:

start:
- check that the process is running using the processid from the 'pid' 
file - if the process is not running - delete the 'pid' file if it exists 
- start assp - wait 3 minutes - go to start
- query the statPort
- got 'healthy' -  wait 5 minutes - go to start   [OR]
- got 'not healthy' - wait 3 minutes - check again - if 'healthy' go to 
start [OR] if 'not healthy' send a kill(9) or SIG(INT) to ASSP - wait 2 
minutes - go to start




Scott,

>I am now getting ASSP crashes every 20 minutes or so ever since
>upgrading to .22. Nothing is logged.

and

>my watchdog app is resetting ASSP  repeatedly

Which way you terminate ASSP with your watchdog ? "Nothing is logged" - 
You should be able to see a 'Sig TERM' or 'Sig INT' in the logs.


Thomas






Von:    Scott MacLean <[email protected]>
An:     ASSP development mailing list <[email protected]>
Datum:  03.08.2010 14:05
Betreff:        Re: [Assp-test] fixes in assp_2.0.2_1.1.22




Looking closer at this, I have realized the reason for the "crashes" 
is that my watchdog app is resetting ASSP  repeatedly - but the 
reason it is doing this is because ASSP stops answering SMTP 
requests. After three 60 second timeouts in a row waiting for an 
initial SMTP connection response from ASSP, it and restarts the 
service. The problem is definitely with ASSP, and not with the mail 
server behind it, as the watchdog app also watches the mail server 
SMTP directly, and it never times out.

For the moment, I'm going to revert to an earlier version of ASSP 
that I know was stable.

At 10:31 PM 8/2/2010, Scott MacLean wrote:

>I am now getting ASSP crashes every 20 minutes or so ever since
>upgrading to .22. Nothing is logged. I'm away right now, so I will
>have to spend some time later trying to diagnose what the problem is.
>Just posting this here in case anyone else is experiencing the same 
thing.
>
>At 01:19 AM 7/30/2010, Thomas Eckardt wrote:
>
> >Hi all,
> >
> >fixed in 2.0.2_1.1.22:
>
>------------------------------------------------------------------------------
>The Palm PDK Hot Apps Program offers developers who use the
>Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>of $1 Million in cash or HP Products. Visit us here for more details:
>http://p.sf.net/sfu/dev2dev-palm
>_______________________________________________
>Assp-test mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/assp-test
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to