Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Barry Finkel
Jason Pruim <[EMAIL PROTECTED]> wrote:

>Hi Everyone...
>
>I have looked around on the web and haven't found any info that I  
>understand about making sure that mailman is receiving and sending e- 
>mail that is sent into it. I just had a situation where on my site  
>(With real low volume lists) that it was not sending mail since the 11  
>of december...
>
>Would it be best to watch for the qrunner process and make sure that's  
>running? Or is there a better way? I'm planning on writing this into a  
>Widget (For all you Macintosh people out there) if I can find a good  
>way to make sure this is up and running.
>
>Thanks for taking the time to read and post any info you have! :)

I monitor 12 different mail systems (including one Mailman system)
from one Unix mailer.  I have a script for each mail system that, every
15 minutes, sends a mail message to the system.  For Mailman, the
mail is sent to a Mailman list that I have created.
That list has one subscriber - the e-mail address from which the test
mail originates.  The mail, if Mailman is working properly, will
receive the posting and then send it back to the single address.
The script, after sending the mail, waits up to 10 minutes for the
return mail to appear in the Unix mailbox.  If the mail does not appear
in 10 minutes, the script sends alert pages to the Mailman support
personnel.  If I start getting pages from many of the 12 mail system
watch crons, I know that either there is a big networking problem or
the mail system from which I send the crons is having problems.
For Mailman, the return mail usually returns within 1-3 seconds.
--
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory  Phone:+1 (630) 252-7277
9700 South Cass Avenue   Facsimile:+1 (630) 252-4601
Building 222, Room D209  Internet: [EMAIL PROTECTED]
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Jason Pruim

On Dec 13, 2007, at 2:55 PM, Larry Stone wrote:

> On Thu, 13 Dec 2007, Jason Pruim wrote:
>
>> I have looked around on the web and haven't found any info that I
>> understand about making sure that mailman is receiving and sending e-
>> mail that is sent into it. I just had a situation where on my site
>> (With real low volume lists) that it was not sending mail since the  
>> 11
>> of december...
>>
>> Would it be best to watch for the qrunner process and make sure  
>> that's
>> running? Or is there a better way? I'm planning on writing this  
>> into a
>> Widget (For all you Macintosh people out there) if I can find a good
>> way to make sure this is up and running.
>
> Is this for Mac OS X? It's not clear although you made the reference  
> to
> Macintoshes above.
>
> I don't know anything about writing OS X widgets but as I've had an  
> issue
> with Mailman not starting reliably under Leopard, I set up a cron  
> job to
> run hourly and let me know if all the qrunners aren't there. It's  
> pretty
> simple:
>
> #!/bin/sh
> QRUNNERS=`ps -efw | grep -v grep | grep -c Python | awk '{ print  
> $1 }'`
>
> if [ $QRUNNERS != 9 ] ; then
>  {
>echo "Mailman qrunner problem" | /usr/sbin/sendmail [EMAIL PROTECTED]
>  }
> fi
>
> Note that despite the "sendmail" command used there, that's really  
> Postfix
> as Postfix used the command "sendmail" (for Sendmail compatibility)  
> as a
> means of injecting mail. Note also that as written, the mail message  
> will
> be missing all RFC required headers but as it's going to myself, I  
> don't
> care. You could, of course, do something else there to provide
> notification.
>
> -- Larry Stone
>   [EMAIL PROTECTED]

Hi Larry,

Thanks for the response. The server in question is a Mac OS X Server  
10.4.11(Tiger) server. I will definitely look into that code, and see  
if I could incorporate that into my widget (Writing widgets in Leopard  
is pretty easy if you know what you want to do!)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Larry Stone
On Thu, 13 Dec 2007, Jason Pruim wrote:

> I have looked around on the web and haven't found any info that I
> understand about making sure that mailman is receiving and sending e-
> mail that is sent into it. I just had a situation where on my site
> (With real low volume lists) that it was not sending mail since the 11
> of december...
>
> Would it be best to watch for the qrunner process and make sure that's
> running? Or is there a better way? I'm planning on writing this into a
> Widget (For all you Macintosh people out there) if I can find a good
> way to make sure this is up and running.

Is this for Mac OS X? It's not clear although you made the reference to
Macintoshes above.

I don't know anything about writing OS X widgets but as I've had an issue
with Mailman not starting reliably under Leopard, I set up a cron job to
run hourly and let me know if all the qrunners aren't there. It's pretty
simple:

#!/bin/sh
QRUNNERS=`ps -efw | grep -v grep | grep -c Python | awk '{ print $1 }'`

if [ $QRUNNERS != 9 ] ; then
  {
echo "Mailman qrunner problem" | /usr/sbin/sendmail [EMAIL PROTECTED]
  }
fi

Note that despite the "sendmail" command used there, that's really Postfix
as Postfix used the command "sendmail" (for Sendmail compatibility) as a
means of injecting mail. Note also that as written, the mail message will
be missing all RFC required headers but as it's going to myself, I don't
care. You could, of course, do something else there to provide
notification.

-- Larry Stone
   [EMAIL PROTECTED]
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp