Bob McClure Jr wrote:
>
>There are no clues in there, so they must have died over a month ago.
>Do I need to put in a cron-driven monitor to check up on the qrunners
>or is there a more sophisticated way to do that?
The RedHat implementation of 'mailmanctl status' (see
<http://sourceforge.net/tracker/index.php?func=detail&aid=1208685&group_id=103&atid=300103>)
is intended to provide a way to check, but it only checks the master
mailmanctl process. If one or more runners has died in a way that it
won't be restarted, or has reached the restart limit, 'mailmanctl
status' can look OK when things really aren't.
Looking for all the qrunners periodically with a cron is good.
Something else which is good is Brad's daily status report script
<http://sourceforge.net/tracker/index.php?func=detail&aid=1123383&group_id=103&atid=300103>.
This runs daily at midnight via cron and checks some directories and
looks for various things in logs and mails a report. It requires a
small modification which is attached or it will miss the initial
portion of the day that logs rotate, but it is quite good.
The patch should only be applied if logs are rotated as it assumes the
existance of a '.1' log without checking.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--- mmdsr 2006-01-29 09:38:00.000000000 -0800
+++ mmdsrx 2006-01-29 09:58:08.512217652 -0800
@@ -304,7 +304,7 @@
echo "==============================" >> $TMP
if [ -f "$LOGDIR/${LOG}" ] ; then
- $SED -e :a -e '$!N;s/\n //;ta' -e 'P;D' $LOGDIR/$LOG | $GREP -si "^$DAY
[0-9][0-9:]* $YEAR" >> $TMPLOG
+ $SED -e :a -e '$!N;s/\n //;ta' -e 'P;D' ${LOGDIR}/${LOG}.1 $LOGDIR/$LOG |
$GREP -si "^$DAY [0-9][0-9:]* $YEAR" >> $TMPLOG
if [ "${LOG}" = "post" ] ; then
@@ -372,7 +372,7 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" ${LOGDIR}/${LOG}.1 ${LOGDIR}/${LOG} |
$SED "s/^[^:]*://" >> $TMPLOG
if [ -f "$LOGDIR/${LOG}" ] ; then
------------------------------------------------------
Mailman-Users mailing list
[email protected]
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