Re: Logrotating with multilog
On Tue, Aug 14, 2001 at 03:16:12PM +0200, Frank Tegtmeyer wrote: > To add something to Hennings answer: from daemontools 0.75 on multilog > does also switch the log when receiving a SIGALRM. And to add to Frank's 8-): There's a patch for daemontools < 0.75 in that mailing list's archive <http://marc.theaimgroup.com/?l=log>. It rotates on a SIGHUP, but that's easily changed. Search for "multilog rotate signal". -- Adrian HoTinker, Drifter, Fixer, Bum [EMAIL PROTECTED] ListArchive: <http://marc.theaimsgroup.com/?l=qmail> Useful URLs: <http://cr.yp.to/qmail.html> <http://www.qmail.org> <http://www.lifewithqmail.org/> <http://qmail.faqts.com/>
Re: Logrotating with multilog
Martin Hasenbein wrote > I'm using qmail with the daemontools and my logs are generated by > multilog. I'm running qmail for example like this: > > #!/bin/sh > > exec env - PATH="/var/qmail/bin:$PATH" \ > qmail-start ./Maildir/ multilog t s100 n100 /usr/local/server/qmail/main > > Is it possible to make multilog rotate logfiles, lets say every night at 0?? This one is actually for Apache's pipe log mechanism, but should work for qmail also (never used it myself): http://www.ford-mason.co.uk/resources/cronolog/ Ciao -- Bernhard Graf <[EMAIL PROTECTED]>
Re: Logrotating with multilog
Martin Hasenbein <[EMAIL PROTECTED]> writes: > Is it possible to make multilog rotate logfiles, lets say every night at 0?? To add something to Hennings answer: from daemontools 0.75 on multilog does also switch the log when receiving a SIGALRM. Regards, Frank
Re: Logrotating with multilog
On Tue, Aug 14, 2001 at 12:42:19PM +0200, Martin Hasenbein wrote: > Is it possible to make multilog rotate logfiles, lets say every night at 0?? multilog rotates by size, not time. http://cr.yp.to/daemontools/multilog.html -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Logrotating with multilog
Hi, I'm using qmail with the daemontools and my logs are generated by multilog. I'm running qmail for example like this: #!/bin/sh exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start ./Maildir/ multilog t s100 n100 /usr/local/server/qmail/main Is it possible to make multilog rotate logfiles, lets say every night at 0?? /martin --- Martin Hasenbein Phone (Fax): (+49) 89 1216376-1 (3) \|/ Weiglstr.9mailto:[EMAIL PROTECTED] @ @ D-80636 München http://martin.hasenbein.com -oOO-(_)-OOo On the 8th day, god created Unix ;-)
isolog rotation with multilog
-Message d'origine- De : Olivier Dupuis [mailto:[EMAIL PROTECTED]] Envoye : lundi 6 aout 2001 19:13 A : Olivier Dupuis Objet : isolog rotation with multilog Hi, I am testing log rotation with isolog on multilog. I can't understand why after sending a ALRM signal to the multilog process, the "current" log is not immediatly dumped into the "isolog" log. Thanks PS : Sorry for the previous copy of this message, I forgot about the subject.
RE: multilog problem
Nope, and neither did this. >> >On Thu, Jun 29, 2000 at 01:55:14AM +0200, clemensF wrote: >> >> > Steffan Hoeke: >> >> >> >> > "Ok, the /var/log/qmail permissions weren't the problem >> >> > /var/qmail/supervise and all in it needed to be owned by qmaill as well ;)" drwxr-xr-x5 qmaill qmail4096 Jul 1 23:38 supervise drwxr-xr-t4 qmaill qmail4096 Jul 1 23:41 qmail-pop3d drwxr-xr-t4 qmaill qmail4096 Jul 1 23:02 qmail-send drwxr-xr-t4 qmaill qmail4096 Jul 1 23:02 qmail-smtpd --- "Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]> wrote: > you will probably have to restart qmail to make it > take effect > > -Original Message- > From: Lorac Thelmwood [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 02, 2001 1:39 PM > To: [EMAIL PROTECTED] > Subject: Re: multilog problem > > > I just did that, and it made no difference. > > lorac > > > > did you chown /var/log/qmail to qmaill.qmail ? > > > > -- > > rjbs > > > > > ATTACHMENT part 2 application/pgp-signature > > > --- "Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]> wrote: > you will probably have to restart qmail to make it > take effect > > -Original Message- > From: Lorac Thelmwood [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 02, 2001 1:39 PM > To: [EMAIL PROTECTED] > Subject: Re: multilog problem > > > I just did that, and it made no difference. > > lorac > > > > did you chown /var/log/qmail to qmaill.qmail ? > > > > -- > > rjbs > > > > > ATTACHMENT part 2 application/pgp-signature > > > > ___ > Do You Yahoo!? > Get your free @yahoo.ca address at > http://mail.yahoo.ca > ___ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca
Re: multilog problem
I just did that, and it made no difference. lorac > > did you chown /var/log/qmail to qmaill.qmail ? > > -- > rjbs > > ATTACHMENT part 2 application/pgp-signature ___ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca
Re: multilog problem
In a message dated Mon, Jul 02, 2001 at 03:54:41AM -0400, Lorac Thelmwood wrote: > so here is my problem... I did find some mention of > this problem in the archives, but no solution to this > problem. > I installed qmail as per > http://www.lifewithqmail.org/lwq.html (including pop3) > now what i see is multilog: fatal: unable to lock > directory /var/log/qmail: temporary failure did you chown /var/log/qmail to qmaill.qmail ? -- rjbs PGP signature
multilog problem
so here is my problem... I did find some mention of this problem in the archives, but no solution to this problem. I installed qmail as per http://www.lifewithqmail.org/lwq.html (including pop3) now what i see is multilog: fatal: unable to lock directory /var/log/qmail: temporary failure I checked over this page many times, and can not see that I did anything wrong. Did I miss something? My other comment is that under section 5.2.1.2 it should tell you to make the following dirs (/var/log/qmail/pop3d /var/log/qmail/pop3d/log) before creating those files since the system won't allow you to make the files when the dirs don't exist (at least on my system it won't). My mail server is running right now, but any messages I send don't leave my system, and I don't receive any messages. if this has been explained somewhere I apologize, but I could not find an answer. I'm running debian linux with kernel 2.4.5, and i'm not a linux guru. lorac ___ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca
Re: multilog logs rblsmtpd into /var/log/qmail/smtpd instead of smtp traffic
[EMAIL PROTECTED] wrote: >- >#!/bin/sh >QMAILDUID=`id -u qmaild` >NOFILESGID=`id -g qmaild` >MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` >exec /usr/local/bin/tcpserver -R -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ >-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ >/usr/local/bin/rblsmtpd \ >-rdialups.mail-abuse.org \ >-rrelays.mail-abuse.org \ >-rblackholes.mail-abuse.org \ >/var/qmail/bin/qmail-smtpd 2>&1 >- > >and i end up with a /var/log/qmail/smtpd/current logs that look like this: >- >@40003b298b7937101f6c rblsmtpd: 143.233.208.2 pid 9823: 451 Blackholed - >see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> >@40003b299a4d1d350724 rblsmtpd: 143.233.208.2 pid 11657: 451 Blackholed - >see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> >@40003b29a92c2b4cd8b4 rblsmtpd: 143.233.208.2 pid 13118: 451 Blackholed - >see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> >- > >is there a way to get multilog to grab both smtp and rbl generated info? qmail-smtpd doesn't do any logging, but if you add "-v" to tcpserver, it'll log connections. -Dave
multilog logs rblsmtpd into /var/log/qmail/smtpd instead of smtp traffic
i'm running with rblsmtpd, more or less LWQ-style. the contents of /var/qmail/supervise/qmail-smtpd/run: - #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` exec /usr/local/bin/tcpserver -R -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ /usr/local/bin/rblsmtpd \ -rdialups.mail-abuse.org \ -rrelays.mail-abuse.org \ -rblackholes.mail-abuse.org \ /var/qmail/bin/qmail-smtpd 2>&1 - /var/qmail/supervise/qmail-smtpd/log/run: - #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/smtpd - and i end up with a /var/log/qmail/smtpd/current logs that look like this: - @40003b298b7937101f6c rblsmtpd: 143.233.208.2 pid 9823: 451 Blackholed - see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> @40003b299a4d1d350724 rblsmtpd: 143.233.208.2 pid 11657: 451 Blackholed - see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> @40003b29a92c2b4cd8b4 rblsmtpd: 143.233.208.2 pid 13118: 451 Blackholed - see http://mail-abuse.org/cgi-bin/lookup?143.233.208.2> ----- is there a way to get multilog to grab both smtp and rbl generated info? i've searched the archives for similar problems, but haven't managed o track an answer down. thanks- dan
RE: Multilog log file size specification
On Thursday, June 14, 2001 20:22, Alex Khanin [SMTP:[EMAIL PROTECTED]] wrote: > I've read the manpage and it states you should use the ssize action, > So I put this in my /var/qmail/supervise/qmail-send/log/run: > > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > /backup/log/qmail ssize 50 nnum 50 try this /usr/local/bin/multilog t s9 n100 /var/log/qmail > > That is ignored. > > If I put it this way: > > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize > 50 nnum 50 /backup/log/qmail > > Then files are created with max size of around 3k instead of 500k. > > What am I doing wrong?? Someone please help. > > Thanks.
RE: Multilog log file size specification
> -Original Message- > From: Alex Khanin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 14, 2001 11:22 AM > To: [EMAIL PROTECTED] > Subject: Multilog log file size specification > > > I've read the manpage and it states you should use the ssize action, > So I put this in my /var/qmail/supervise/qmail-send/log/run: > > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > /backup/log/qmail ssize 50 nnum 50 > > That is ignored. > > If I put it this way: > > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize > 50 nnum 50 /backup/log/qmail make it ... t s500 n50 -- Michael Boyiazis [EMAIL PROTECTED] Mail Architect, NetZero, Inc.
Re: Multilog log file size specification
Alex Khanin <[EMAIL PROTECTED]> wrote: > I've read the manpage and it states you should use the ssize action, > So I put this in my /var/qmail/supervise/qmail-send/log/run: > > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > /backup/log/qmail ssize 50 nnum 50 > > That is ignored. [...] > What am I doing wrong?? Taking the documentation too literally. The size directive should be "s50" to create logs of 0.5MB each. Not "ssize 50". The "action" itself is just "s", the "size" in the documentation is the parameter of that action. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Multilog log file size specification
I've read the manpage and it states you should use the ssize action, So I put this in my /var/qmail/supervise/qmail-send/log/run: #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /backup/log/qmail ssize 50 nnum 50 That is ignored. If I put it this way: #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize 50 nnum 50 /backup/log/qmail Then files are created with max size of around 3k instead of 500k. What am I doing wrong?? Someone please help. Thanks.
vmailmgr pop pop3d logging with multilog
I have qmail + vmailmgr set up and working, qmail pop accesses are being logged via daemontools and multilog and end up in /var/log/qmail/pop3d/current. i can get /etc/vmailmgr/checkvpw-postexec to write to a file (/tmp/vm), but I can't make its output show up in the pop3d logs via multilog (by changing the >> /tmp/vm to >&2 as suggested in the archives of the vmailmgr list ). I expect lines like this: Thu May 31 12:19:43 EDT 2001 /etc/vmailmgr/checkvpw-postexec u:janitors v:joe m:./users/joe h:/home/janitors to show up in /var/log/qmail/pop3d/current ... am i looking in the wrong place? Here are what my files look like: /etc/vmailmgr/checkvpw-postexec : #!/bin/sh echo `date` $0 $1 $2 u:$USER v:$VUSER m:$MAILDIR h:$HOME >&2 echo `date` $0 $1 $2 u:$USER v:$VUSER m:$MAILDIR h:$HOME >> /tmp/vm /var/qmail/supervise/qmail-pop3d/run : #!/bin/sh /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R 0 110 /var/qmail/bin/qmail-popup \ FQDN /usr/local/bin/checkvpw /var/qmail/bin/qmail-pop3d Mailbox/ 2>&1 /var/qmail/supervise/qmail-pop3d/log : #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/pop3d __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: isoqlog and multilog not playing nice
Hi... I had similar problems. In isoqlog it is mentioned to remove any s12345 stuff from /var/qmail/supervise/qmail-send/log/run which looks like nonsense to me. in fact, multilog ALWAYS uses a "s" switch. only that it uses default values of about 100kbyte if you supply it with another size. so, rotating the log on a daily basis, you would either have to use the patch for multilog which rotates the logfile, whenever it receives a HUP, or your logfile is not truely rotated daily. by applying a small s value however, you can come near to a daily rotation... please notice, that isoqlogappend is only run when the "current" log is rotated. so if you don't notice anything happening it might just be, because your "current" file is smaller than 100kbyte. well, another possibility would be not to use multilog.. Saturday, May 19, 2001, 11:21:33 PM, you wrote: > I have qmail,qpop3d, and courier-imap humming along just fine. I added > isoqlog which, when run manually works fine, but I can not get it to log > on it's own. I've search all 38 messages (wow!) on the yahoo isoqlog > message board, and tho others are having the same problem, no solutions. > The problem centers around the /var/qmail/supervise/qmail-send/log/run > file. (Yes, I used the 'Live With Qmail' doc to set everything up. The > isoqlog doc says to remove the 's250 ' portion of the command and > put in !isoqlogappend instead. So the file reads (all on one line): > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > !isoqlogappend /var/log/qmail/send > I can see the command running in "ps auxw" so I know the restart took > affect. But nothing happens. The /var/log/qmail/isoqlog file is supposed > to fill up (I think) with info. But after each nights cron job that > rotates the log file, it just sits there at zero bytes. The doc says to > manully run the tai64nlocal command to create the first isoqlog file, > which works fine. Then I manully run the cron jobs and the web pages get > created beautifully. > What am I missing? > - Gary Regards, Justin
isoqlog and multilog not playing nice
I have qmail,qpop3d, and courier-imap humming along just fine. I added isoqlog which, when run manually works fine, but I can not get it to log on it's own. I've search all 38 messages (wow!) on the yahoo isoqlog message board, and tho others are having the same problem, no solutions. The problem centers around the /var/qmail/supervise/qmail-send/log/run file. (Yes, I used the 'Live With Qmail' doc to set everything up. The isoqlog doc says to remove the 's250 ' portion of the command and put in !isoqlogappend instead. So the file reads (all on one line): #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t !isoqlogappend /var/log/qmail/send I can see the command running in "ps auxw" so I know the restart took affect. But nothing happens. The /var/log/qmail/isoqlog file is supposed to fill up (I think) with info. But after each nights cron job that rotates the log file, it just sits there at zero bytes. The doc says to manully run the tai64nlocal command to create the first isoqlog file, which works fine. Then I manully run the cron jobs and the web pages get created beautifully. What am I missing? - Gary
Re: Make multilog rotate according to time?
hi for daily report you can use isoqlog log analyzer at http://www.enderunix.org/isoqlog byye On Wed, 16 May 2001, Ralph Hackl wrote: > Now that was at http://www.superscript.com/patches/intro.html . A multilog > Patch!!It works fine. You can give multilog a HUP i.a with a cron job. > > -rh > > -- > -- > Ralph Hackl | > CANCOM Computersysteme GmbH | L I N U X .~. > A-8042 Graz, Koeglerweg 50, Austria | The Choice /V\ > phone: +43 (0)316 4006 20 (fax -4) | of a GNU /( )\ > e-mail: [EMAIL PROTECTED]| Generation ^^-^^ > > > > > > -- > >Von: Mike Jackson <[EMAIL PROTECTED]> > >An: [EMAIL PROTECTED] > >Betreff: Make multilog rotate according to time? > >Datum: Die, 15. Mai 2001 18:32 Uhr > > > > > Hi, > > I would like to use qmailanalog to make a daily report that will get > > mailed to the local administrative staff. I would like to have the > > reports include exactly 24 hours of activity. I thought that the easiest > > way to do this is to have multilog start a new log file at 0.00 every > > day, but couldn't figure out how to do it. I have looked at the multilog > > source and man page, and it seems to only rotate logs based on size. How > > are you guys doing this? > > > > Please cc me also with your reply. > > > > Regards, > > Mike > > >
Re: Make multilog rotate according to time?
Now that was at http://www.superscript.com/patches/intro.html . A multilog Patch!!It works fine. You can give multilog a HUP i.a with a cron job. -rh -- -- Ralph Hackl | CANCOM Computersysteme GmbH | L I N U X .~. A-8042 Graz, Koeglerweg 50, Austria | The Choice /V\ phone: +43 (0)316 4006 20 (fax -4) | of a GNU /( )\ e-mail: [EMAIL PROTECTED]| Generation ^^-^^ -- >Von: Mike Jackson <[EMAIL PROTECTED]> >An: [EMAIL PROTECTED] >Betreff: Make multilog rotate according to time? >Datum: Die, 15. Mai 2001 18:32 Uhr > > Hi, > I would like to use qmailanalog to make a daily report that will get > mailed to the local administrative staff. I would like to have the > reports include exactly 24 hours of activity. I thought that the easiest > way to do this is to have multilog start a new log file at 0.00 every > day, but couldn't figure out how to do it. I have looked at the multilog > source and man page, and it seems to only rotate logs based on size. How > are you guys doing this? > > Please cc me also with your reply. > > Regards, > Mike >
Make multilog rotate according to time?
Hi, I would like to use qmailanalog to make a daily report that will get mailed to the local administrative staff. I would like to have the reports include exactly 24 hours of activity. I thought that the easiest way to do this is to have multilog start a new log file at 0.00 every day, but couldn't figure out how to do it. I have looked at the multilog source and man page, and it seems to only rotate logs based on size. How are you guys doing this? Please cc me also with your reply. Regards, Mike
My problem with Multilog logging solved.
Ref : Previous mail regarding problem with multilog Logging. Had to use 2>&1 i.e. send std error to Descriptor 1 from where multilog can read. for smtpd & pop3d in run scripts. eg. in /service/qmail-smtpd/run --- #!/bin/sh exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 1012 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 Same for Pop3d. Now smtpd & pop3d are logging correctly. Though i.e. still get that @timestamp instead of human readable format though i have used tai64nlocal (correctly ) in /service/qmail-smtpd/log/run #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t !/usr/local/bin/t ai64nlocal /log/qmail/smtpd Thanx & Regards Mustafa M -- VeetVision Communications (P) Ltd. Bungalow C-3, Moghul Gardens, 411001 Pune, India Tel. 91-20-6113056, 6051597, 6051598 / Fax 91-20-6050652
Re: Logging using multilog
On Tue, Apr 10, 2001 at 06:40:14PM +0530, Mustafa Mahudhawala wrote: > Hello, > I have successfully installed qmail on FreeBSD, > using tcpserver & Daemontools i.e. starting qmail daemons from /service > directory. > (Based on life with qmail help, but here svscan & supervice are not only > used for qmail) > > My Problem is there are no logs generated for smtpd & pop3d > > Contents of /service/qmail-send/run > --- > #!/bin/sh > exec /var/qmail/rc > > I have modified /var/qmail/rc as follows to use multilog instead of splogger. > > Contents of /var/qmail/rc > > #!/bin/sh > exec env - PATH="/var/qmail/bin:$PATH" \ > qmail-start ./Maildir/ /usr/local/bin/multilog -t > !/usr/local/bin/tai64nlocal /log/qmail > Better use multilog in a log/run script and let svscan provide the pipe, just as in qmail-smtpd. Dont forget to chmod +t /service/qmail-send and restart the supervise process (see below). > (This Works but below doesn't) > > Contents of /service/qmail-smtpd/run > -- > #!/bin/sh > exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g > 1012 0 smtp /var/qmail/bin/qmail-smtpd > > Contents of /service/qmail-smtpd/log/run > ----- > #!/bin/sh > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > !/usr/local/bin/tai64nlocal /log/qmail/smtpd > You need to chmod +t /service/qmail-smtpd to have log/run started. If the service is allready running, use # cd /service # mv qmail-smtpd .qmail-smtpd # svc -dx .qmail-smtpd # chmod +t .qmail-smtpd # mv .qmail-smtpd qmail-smtpd check with # svstat qmail-smtpd qmail-smtpd/log Hope this helps, Gerrit. -- [EMAIL PROTECTED] innominate AG the linux architects tel: +49.30.308806-0 fax: -77 http://www.innominate.com
Logging using multilog
Hello, I have successfully installed qmail on FreeBSD, using tcpserver & Daemontools i.e. starting qmail daemons from /service directory. (Based on life with qmail help, but here svscan & supervice are not only used for qmail) Currently everything, local to remote, local to local, remote to local (including alias) & pop are working correctly. I have used Maildir as Mail - Storage method. My Problem is there are no logs generated for smtpd & pop3d Contents of /service/qmail-send/run --- #!/bin/sh exec /var/qmail/rc I have modified /var/qmail/rc as follows to use multilog instead of splogger. Contents of /var/qmail/rc #!/bin/sh exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start ./Maildir/ /usr/local/bin/multilog -t !/usr/local/bin/tai64nlocal /log/qmail (This Works but below doesn't) Contents of /service/qmail-smtpd/run -- #!/bin/sh exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 1012 0 smtp /var/qmail/bin/qmail-smtpd Contents of /service/qmail-smtpd/log/run - #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t !/usr/local/bin/tai64nlocal /log/qmail/smtpd Though Mail is Correctly Logged for qmail-send in /log/qmail/current It doesn't seem to work for qmail-smtpd & qmail-pop3d. I already checked directory permissions Also is my usage of tai64nlocal correct i.e. as processor in multilog ??? Any Help will be Highly Appreciated.. Thanx Mustafa M -- VeetVision Communications (P) Ltd. Bungalow C-3, Moghul Gardens, 411001 Pune, India Tel. 91-20-6113056, 6051597, 6051598 / Fax 91-20-6050652
multilog: unable to lock directory
One of the 6 supervised services on one of my gateways stopped responding (tinydns) yesterday afternoon. On the screen was "unable to lock directory /var/log/tinydns:", so I did an "svc -t /service/tinydns/log" and it worked fine. Since the line that generates that log output exits 111, how would terminating the supervise process help? Thanks.
RE: multilog and missing info
Sorry, http://www.flounder.net/qmail/qmail-howto-old.html :-) -Original Message- From: Adam McKenna [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 1:11 AM To: [EMAIL PROTECTED] Subject: Re: multilog and missing info On Mon, Mar 19, 2001 at 01:04:23AM -0700, Chris Bolt wrote: > /var/log/qmail/current actually wasn't being filled because I had left > splogger in my /var/qmail/rc... *oops* > > Thanks though, I wouldn't have noticed it if I hadn't gone over > lifewithqmail.org (I had originally used > http://www.flounder.net/qmail/qmail-howto.html) Uh, my example rc file doesn't log via splogger. --Adam -- Adam McKenna <[EMAIL PROTECTED]> | "No matter how much it changes, http://flounder.net/publickey.html | technology's just a bunch of wires GPG: 17A4 11F7 5E7E C2E7 08AA| connected to a bunch of other wires." 38B0 05D0 8BF7 2C6D 110A| Joe Rogan, _NewsRadio_ 12:07am up 28 days, 7:54, 9 users, load average: 0.00, 0.01, 0.00
Re: multilog and missing info
On Mon, Mar 19, 2001 at 01:04:23AM -0700, Chris Bolt wrote: > /var/log/qmail/current actually wasn't being filled because I had left > splogger in my /var/qmail/rc... *oops* > > Thanks though, I wouldn't have noticed it if I hadn't gone over > lifewithqmail.org (I had originally used > http://www.flounder.net/qmail/qmail-howto.html) Uh, my example rc file doesn't log via splogger. --Adam -- Adam McKenna <[EMAIL PROTECTED]> | "No matter how much it changes, http://flounder.net/publickey.html | technology's just a bunch of wires GPG: 17A4 11F7 5E7E C2E7 08AA| connected to a bunch of other wires." 38B0 05D0 8BF7 2C6D 110A| Joe Rogan, _NewsRadio_ 12:07am up 28 days, 7:54, 9 users, load average: 0.00, 0.01, 0.00
RE: multilog and missing info
/var/log/qmail/current actually wasn't being filled because I had left splogger in my /var/qmail/rc... *oops* Thanks though, I wouldn't have noticed it if I hadn't gone over lifewithqmail.org (I had originally used http://www.flounder.net/qmail/qmail-howto.html) -Original Message- From: Brett Randall [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 12:44 AM To: Chris Bolt Cc: [EMAIL PROTECTED] Subject: Re: multilog and missing info >>>>> "Chris" == Chris Bolt <[EMAIL PROTECTED]> writes: > I was previously using splogger, and I just upgraded daemontools and > set up svscan. Now logs are written with multilog, however I am not > seeing as much information in my logs as with splogger. For example, > a syslog logfile: If you set up qmail as per www.lifewithqmail.org, you will find that there are two log files. The SMTP connections one and the messages one. Have a look in /var/log/qmail/{send|smtpd} to see your logs. -- "Hitting your modem with an aluminum baseball bat is only going to get you electrocuted. Try a wooden one." - Lynn Marshall
Re: multilog and missing info
>>>>> "Chris" == Chris Bolt <[EMAIL PROTECTED]> writes: > I was previously using splogger, and I just upgraded daemontools and > set up svscan. Now logs are written with multilog, however I am not > seeing as much information in my logs as with splogger. For example, > a syslog logfile: If you set up qmail as per www.lifewithqmail.org, you will find that there are two log files. The SMTP connections one and the messages one. Have a look in /var/log/qmail/{send|smtpd} to see your logs. -- "Hitting your modem with an aluminum baseball bat is only going to get you electrocuted. Try a wooden one." - Lynn Marshall
multilog and missing info
I was previously using splogger, and I just upgraded daemontools and set up svscan. Now logs are written with multilog, however I am not seeing as much information in my logs as with splogger. For example, a syslog logfile: Mar 18 12:55:34 illusion qmail: 984945334.323009 status: local 1/10 remote 2/50 Mar 18 12:55:34 illusion qmail: 984945334.324140 new msg 650950 Mar 18 12:55:34 illusion qmail: 984945334.324406 info msg 650950: bytes 3402 from <[EMAIL PROTECTED]> qp 7965 uid 1055 Mar 18 12:55:34 illusion qmail: 984945334.449068 starting delivery 329159: msg 650950 to remote [EMAIL PROTECTED] Mar 18 12:55:34 illusion qmail: 984945334.449907 status: local 1/10 remote 3/50 Mar 18 12:55:35 illusion qmail: 984945335.915589 delivery 329153: deferral: Sorry,_I_couldn't_find_any_host_by_that_name._(#4.1.2)/ And a multilog logfile: @40003ab5b36e29511c3c tcpserver: status: 1/40 @40003ab5b3812ef8fc7c tcpserver: ok 25834 illusion.dmusic.com:216.234.161.133:25 ant.m0.net:209.10.46.156::52668 @40003ab5b38c2914a3c4 tcpserver: end 25834 status 0 @40003ab5b38c29168054 tcpserver: status: 0/40 My qmail-smtpd's log/run file consists of this: #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s250 /var/log/qmail/qmail-smtpd So I am not filtering anything with multilog. Any ideas, or is this what is supposed to be output? __ Chris Bolt [EMAIL PROTECTED] http://www.bolt.cx
Re: multilog vs. splogger
Hatem <[EMAIL PROTECTED]> wrote: > I am just wondering , if I am using splogger then the file to look at is > :/var/log/syslog now if I am using multilog, then which file to look at? > thanks. is it /var/log/mail.log? Read the documentation for multilog. Where the logs end up is completely dependent on how you configured it. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
multilog vs. splogger
hi, I am just wondering , if I am using splogger then the file to look at is :/var/log/syslog now if I am using multilog, then which file to look at? thanks. is it /var/log/mail.log?
IsoQlog 1.5 released (multilog support has been added )
hi i released isoqlog version 1.5 what is isoqlog : Isoqlog is an qmail log analysis program written in perl . it designed to scan qmail logfile and produce usage statistics in HTML format. for viewing through a browser. It produces Top domains output according to Incoming , Outgoing , total mails and bytes, it keeps your main domain mail statistics for per day and per month . what is new : -All codes are rewritten , now isoqlog is more functional -multilog support has been given -User based incoming mail top scores has been added for every your domain that you define -User based outgoing mail top scores has been added for every your domain that you define -User based total mail top scores has been added for every your domain that you define -User based byte top scores has been added for every your domain that you define -Domain based byte top scores has been added - minus(-) mail values at top scores part is corrected i strongly recommend redownload if you are using older versions of isoqlog sample output for sample output visit http://www.enderunix.org/isoqlog/maillog15 For more information http://www.enderunix.org/isoqlog byee Ismail YENIGUL http://www.enderunix.org
Re: Peculiar results with multilog
On Sat, Mar 03, 2001 at 11:59:39PM -0800, Dan Peterson wrote: > John R Levine <[EMAIL PROTECTED]> wrote: > > multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status > > > > The status lines logged from tcpserver look like this: > > > > @40003aa13cff07eb6d7c tcpserver: status: 2/40 > > > > Any suggestions what's wrong? > > '*' matches anything except the character that follows it. Since "tcpserver" > has an 's' in it, the first '*' stops at the 's' in "tcpserver." Since it > doesn't see "tatus:*" after that, the line is not logged. Try adding some > spaces: > > '-*' '+* status: *' > Note that also the timestamp could have the 's'. '+* *...' is mandatory when using multilog with timestamps. Gerrit. -- [EMAIL PROTECTED] innominate AG the linux architects tel: +49.30.308806-0 fax: -77 http://www.innominate.com
Re: Peculiar results with multilog
John R Levine <[EMAIL PROTECTED]> wrote: > I have the same run command for all the log files: > > exec setuidgid qmaill \ > multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status > > The status lines logged from tcpserver look like this: > > @40003aa13cff07eb6d7c tcpserver: status: 2/40 > > Any suggestions what's wrong? '*' matches anything except the character that follows it. Since "tcpserver" has an 's' in it, the first '*' stops at the 's' in "tcpserver." Since it doesn't see "tatus:*" after that, the line is not logged. Try adding some spaces: '-*' '+* status: *' -- Dan Peterson <[EMAIL PROTECTED]> http://danp.net "67MB is a reasonable size for named. Your box has 256M, so don't worry about it." --Michael R. Wayne, on [EMAIL PROTECTED]
Peculiar results with multilog
I just switched my qmail setup (one of them at least) to daemontools, qmail, two tcpservers for smtp, one for qmqp. It works great, execpt for one teensy thing. I have the same run command for all the log files: exec setuidgid qmaill \ multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status (except for the log size after the t, which I fiddle so each one rotates its logs about equally often.) The logger for qmail puts the status in logfiles/status. The loggers for the tcpservers don't, although they make the main logfiles (current, rotating to @whatever) correctly. It just creates a zero length status file. The status lines logged from tcpserver look like this: @40003aa13cff07eb6d7c tcpserver: status: 2/40 so it sure looks to me like they should be stored in logfiles/status. Any suggestions what's wrong? Regards, John Levine, [EMAIL PROTECTED], Primary Perpetrator of "The Internet for Dummies", Information Superhighwayman wanna-be, http://iecc.com/johnl, Sewer Commissioner Finger for PGP key, f'print = 3A 5B D0 3F D9 A0 6A A4 2D AC 1E 9E A6 36 A3 47
Re: Using Virtual Consoles with multilog
Roger Waterhouse <[EMAIL PROTECTED]> wrote: > > ... the best I can come up with is to append the console device > to the end of the command that invokes multilog ie: > > /usr/local/bin/multilog t /var/log/qmail /dev/tty9 > > where /dev/tty9 is virtual console 9. Does anyone know if this will work? Have you tried it? If not, why not? Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Using Virtual Consoles with multilog
On Wed, Feb 28, 2001 at 02:33:52PM -0700, Roger Waterhouse wrote: > Hello > > I would like multilog to output to one of the virtual consoles under linux > as well as the usual log file. I have looked through the archives, man > pages, etc and the best I can come up with is to append the console device > to the end of the command that invokes multilog ie: > > /usr/local/bin/multilog t /var/log/qmail /dev/tty9 > > where /dev/tty9 is virtual console 9. Does anyone know if this will work? Try it and you'll know. Greetz, Peter.
Using Virtual Consoles with multilog
Hello I would like multilog to output to one of the virtual consoles under linux as well as the usual log file. I have looked through the archives, man pages, etc and the best I can come up with is to append the console device to the end of the command that invokes multilog ie: /usr/local/bin/multilog t /var/log/qmail /dev/tty9 where /dev/tty9 is virtual console 9. Does anyone know if this will work? Cheers Roger
Re: qmail-conf-054 / multilog
For debugging purposes you might want to run svscan manually so the errors go to the screen/window you're on. On Fri, Feb 23, 2001 at 06:25:11PM -0500, Paul Farber wrote: > Is there a specific kernel setting I need for supervise to log Not unless it's some wierd Unix. svscan writes errors to stderr. You don't need kernel settings to control where that goes. > correctly??? I am on kernel 2.4.1 it's working fine on a RH 6.2 > machine with 2.2.17 (using djbdns). > > The sticky bit seemed to have no effect.. Did you restart svscan? > and nothing is being logged error-wise. Did you check the system console? Regards. > > Paul Farber > Farber Technology > [EMAIL PROTECTED] > Ph 570-628-5303 > Fax 570-628-5545 > > On Fri, 23 Feb 2001, Chris Johnson wrote: > > > On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > > > > > and under that > > > > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > > > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > > > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > > > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > > > > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > > > to it... what is the 'sticky bit'? > > > > chmod +t the directory. (Are you sure man chmod doesn't refer to this?) > > > > From http://cr.yp.to/daemontools/svscan.html: > > > > "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, > > one for sub, one for sub/log, with a pipe between them. svscan needs two free > > descriptors for each pipe." > > > > Chris > > >
Re: qmail-conf-054 / multilog
Is there a specific kernel setting I need for supervise to log correctly??? I am on kernel 2.4.1 it's working fine on a RH 6.2 machine with 2.2.17 (using djbdns). The sticky bit seemed to have no effect.. and nothing is being logged error-wise. Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: > On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > > > and under that > > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > > to it... what is the 'sticky bit'? > > chmod +t the directory. (Are you sure man chmod doesn't refer to this?) > > From http://cr.yp.to/daemontools/svscan.html: > > "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, > one for sub, one for sub/log, with a pipe between them. svscan needs two free > descriptors for each pipe." > > Chris >
Re: qmail-conf-054 / multilog
Assuminmg you're running this all via svscan, the problem is that svscan only notices the +t flag when it first sees the directory in /service. You need to remove the service and re-add it. I believe the daemontools page at cr.yp.to has the sequence needed to do this. Regards. On Fri, Feb 23, 2001 at 03:05:23PM -0500, Paul Farber wrote: > Tried that... > > > but it will not fire off a copy of multilog: > > 3181 ?S 0:00 supervise qmail-smtpd > 3182 ?S 0:00 /usr/local/bin/tcpserver -qDHR > -ladmin.f-tech.net -xt > > here is some file info: > > drwxr-sr-t 5 root root 4096 Feb 21 01:35 qmail-smtpd > > ./run= > > #!/bin/sh > exec 2>&1 \ > envdir ./env \ > sh -c ' > case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac > case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac > exec \ > /usr/local/bin/envuidgid qmaild \ > softlimit ${DATALIMIT+"-d$DATALIMIT"} \ > /usr/local/bin/tcpserver \ > -qD"$H$R" \ > ${LOCALNAME+"-l$LOCALNAME"} \ > ${BACKLOG+"-b$BACKLOG"} \ > ${CONCURRENCY+"-c$CONCURRENCY"} \ > -xtcp.cdb \ > -- "${IP-0}" "${PORT-25}" \ > /var/qmail/bin/qmail-smtpd > ' > > ./run/log= > > [root@admin log]# cat run > #!/bin/sh > exec \ > setuidgid qmaill \ > multilog t ./main > > ./mail is empty... and there is no multilog process running > > Paul Farber > Farber Technology > [EMAIL PROTECTED] > Ph 570-628-5303 > Fax 570-628-5545 > > On Fri, 23 Feb 2001, Chris Johnson wrote: > > > On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > > > > > and under that > > > > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > > > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > > > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > > > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > > > > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > > > to it... what is the 'sticky bit'? > > > > chmod +t the directory. (Are you sure man chmod doesn't refer to this?) > > > > From http://cr.yp.to/daemontools/svscan.html: > > > > "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, > > one for sub, one for sub/log, with a pipe between them. svscan needs two free > > descriptors for each pipe." > > > > Chris > > >
Re: qmail-conf-054 / multilog
Tried that... but it will not fire off a copy of multilog: 3181 ?S 0:00 supervise qmail-smtpd 3182 ?S 0:00 /usr/local/bin/tcpserver -qDHR -ladmin.f-tech.net -xt here is some file info: drwxr-sr-t 5 root root 4096 Feb 21 01:35 qmail-smtpd ./run= #!/bin/sh exec 2>&1 \ envdir ./env \ sh -c ' case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac exec \ /usr/local/bin/envuidgid qmaild \ softlimit ${DATALIMIT+"-d$DATALIMIT"} \ /usr/local/bin/tcpserver \ -qD"$H$R" \ ${LOCALNAME+"-l$LOCALNAME"} \ ${BACKLOG+"-b$BACKLOG"} \ ${CONCURRENCY+"-c$CONCURRENCY"} \ -xtcp.cdb \ -- "${IP-0}" "${PORT-25}" \ /var/qmail/bin/qmail-smtpd ' ./run/log= [root@admin log]# cat run #!/bin/sh exec \ setuidgid qmaill \ multilog t ./main ./mail is empty... and there is no multilog process running Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: > On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > > > and under that > > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > > to it... what is the 'sticky bit'? > > chmod +t the directory. (Are you sure man chmod doesn't refer to this?) > > From http://cr.yp.to/daemontools/svscan.html: > > "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, > one for sub, one for sub/log, with a pipe between them. svscan needs two free > descriptors for each pipe." > > Chris >
Re: qmail-conf-054 / multilog
DOH The manpage I have referneces .70 but nothing about a sticky bit oh well, live and learn.. and learn and learn and learn! Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: > On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > > > and under that > > > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > > to it... what is the 'sticky bit'? > > chmod +t the directory. (Are you sure man chmod doesn't refer to this?) > > From http://cr.yp.to/daemontools/svscan.html: > > "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, > one for sub, one for sub/log, with a pipe between them. svscan needs two free > descriptors for each pipe." > > Chris >
Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > I have > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > and under that > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > to it... what is the 'sticky bit'? Hmm. Solaris manpage talks about it as does FreeBSD - you must be on Linux, right? In octal it is 1000 or symbolically, +t. Thus: chmod +t /service/qmail Regards. > > > > Paul Farber > Farber Technology > [EMAIL PROTECTED] > Ph 570-628-5303 > Fax 570-628-5545 > > On Fri, 23 Feb 2001, Chris Johnson wrote: > > > On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: > > > It appears that all logging is being dumped to the first virtual console: > > > > > > info msg 224981: bytes 32957 from <#@[]> qp 9474 uid 0 > > > starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] > > > status: local 1/10 remote 0/20 > > > delivery 1692: success: did_1+0+0/ > > > status: local 0/10 remote 0/20 > > > end msg 224981 > > > new msg 224981 > > > info msg 224981: bytes 3235 from > > > <[EMAIL PROTECTED]> qp 9479 uid 0 > > > starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] > > > status: local 1/10 remote 0/20 > > > delivery 1693: success: did_1+0+0/ > > > status: local 0/10 remote 0/20 > > > end msg 224981 > > > > > > even though I have log/run set up EXACTLY as in the supervise man page. > > > Is this a supervise/multilog bug? anyone getting qmail to log deliveries > > > to multilog using log/run ? > > > > Did you set the sticky bit on your qmail service directory? > > > > Chris > > >
Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: > drwxr-xr-x 4 root root 4096 Feb 21 01:40 service > > and under that > > drwxr-xr-x 4 root root 4096 Feb 21 01:40 . > drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. > drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail > drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd > > Since the manual (man chmod) or the qmail-conf program docs didn't allude > to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris PGP signature
Re: qmail-conf-054 / multilog
I have drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: > On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: > > It appears that all logging is being dumped to the first virtual console: > > > > info msg 224981: bytes 32957 from <#@[]> qp 9474 uid 0 > > starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] > > status: local 1/10 remote 0/20 > > delivery 1692: success: did_1+0+0/ > > status: local 0/10 remote 0/20 > > end msg 224981 > > new msg 224981 > > info msg 224981: bytes 3235 from > > <[EMAIL PROTECTED]> qp 9479 uid 0 > > starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] > > status: local 1/10 remote 0/20 > > delivery 1693: success: did_1+0+0/ > > status: local 0/10 remote 0/20 > > end msg 224981 > > > > even though I have log/run set up EXACTLY as in the supervise man page. > > Is this a supervise/multilog bug? anyone getting qmail to log deliveries > > to multilog using log/run ? > > Did you set the sticky bit on your qmail service directory? > > Chris >
Re: qmail-conf-054 / multilog
Paul Farber <[EMAIL PROTECTED]> wrote: >even though I have log/run set up EXACTLY as in the supervise man >page. Including the sticky bit on the on the qmail-send directory? >Is this a supervise/multilog bug? No. >anyone getting qmail to log deliveries >to multilog using log/run ? Of course. >Any advise would be helpful. Provide more useful information than 'I set it up right and it doesn't work'. For example, the output of: cd [supervise directory] ls -lR cat */run */log/run -Dave
Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: > It appears that all logging is being dumped to the first virtual console: > > info msg 224981: bytes 32957 from <#@[]> qp 9474 uid 0 > starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] > status: local 1/10 remote 0/20 > delivery 1692: success: did_1+0+0/ > status: local 0/10 remote 0/20 > end msg 224981 > new msg 224981 > info msg 224981: bytes 3235 from > <[EMAIL PROTECTED]> qp 9479 uid 0 > starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] > status: local 1/10 remote 0/20 > delivery 1693: success: did_1+0+0/ > status: local 0/10 remote 0/20 > end msg 224981 > > even though I have log/run set up EXACTLY as in the supervise man page. > Is this a supervise/multilog bug? anyone getting qmail to log deliveries > to multilog using log/run ? Did you set the sticky bit on your qmail service directory? Chris PGP signature
qmail-conf-054 / multilog
hello all using qmail-1.03 daemontools .70 and ucspi-88 on several RH 6.2 based servers. It appears that all logging is being dumped to the first virtual console: info msg 224981: bytes 32957 from <#@[]> qp 9474 uid 0 starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1692: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 new msg 224981 info msg 224981: bytes 3235 from <[EMAIL PROTECTED]> qp 9479 uid 0 starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1693: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 even though I have log/run set up EXACTLY as in the supervise man page. Is this a supervise/multilog bug? anyone getting qmail to log deliveries to multilog using log/run ? Any advise would be helpful. Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545
multilog not getting messages?
Hello all (again) this is coming up on the console after setting up daemontools .70 (svscan): starting delivery 47: msg 224960 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 47: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224960 new msg 224960 info msg 224960: bytes 6927 from <[EMAIL PROTECTED]> qp 1004 uid 0 starting delivery 48: msg 224960 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 48: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224960 ps awxx gives me: 519 ?S 0:00 supervise qmail-smtpd 520 ?S 0:00 supervise log 522 ?S 0:00 multilog t ./main 523 ?S 0:00 qmail-send 524 ?S 0:00 qmail-lspawn ./Maildir/ 525 ?S 0:00 qmail-rspawn 526 ?S 0:00 qmail-clean 527 tty2 S 0:00 -bash 586 tty3 S 0:00 -bash 971 ?S 0:00 /usr/local/bin/tcpserver -qDHR -ladmin.f-tech.net -xtcp.cdb -- 0 25 /var/qmail/bin/qmail-smtpd so it seems that qmail-smtpd is barfing messages instead of logging them log/mail/currnet is chock full of tcpserver messages... how do I get qmail-smtpd to play nice?? Thanks! Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545
Re: Supervise without multilog.
Uwe Ohse writes: > On Wed, Feb 07, 2001 at 11:57:34AM -0500, Peter Brezny wrote: > > > I'd like to run supervise, but i would prefer the logging still take place > > in /var/log/maillog. > > you are mistaken. Nonsense. Of course he prefers that the logging still take place in /var/log/maillog. You can be sure he prefers this because he said so. That's a bad idea. However, he can get a similar effect by creating a symlink like this: ln -s /service/qmail/log/main/current /var/log/maillog > or put this in your supervised-service/log/run file: > #! /bin/sh > /var/qmail/bin/splogger qmail That's like putting the cart before the automobile, to turn a phrase. syslog is a piece of crap. You *can* use it, but it's a waste of resources that could be better spent delivering email. -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com Crynwr sells support for free software | PGPok | "This is Unix... 521 Pleasant Valley Rd. | +1 315 268 1925 voice | Stop acting so helpless." Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | --Daniel J. Bernstein
Re: Supervise without multilog.
On Wed, Feb 07, 2001 at 11:57:34AM -0500, Peter Brezny wrote: > I'd like to run supervise, but i would prefer the logging still take place > in /var/log/maillog. you are mistaken. > For example, could i just leave my /var/qmail/rc file as is and omit the > portions regarding multilog in the qmail startup scripts give in the > examples above? then chmod -t the supervised directory and reboot. > exec env - PATH="/var/qmail/bin:$PATH" \ > qmail-start ./Maildir splogger qmail& or put this in your supervised-service/log/run file: #! /bin/sh /var/qmail/bin/splogger qmail Regards, Uwe
Supervise without multilog.
I'd like to run supervise, but i would prefer the logging still take place in /var/log/maillog. I've read over the examples on lifewithqmail.org and http://matt.simerson.net/computing/qmail.toaster.shtml, but each use multilog. If anyone has a startup script, for qmail they would like to share (or just advice) that would be great. For example, could i just leave my /var/qmail/rc file as is and omit the portions regarding multilog in the qmail startup scripts give in the examples above? Here's my qmail/rc exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start ./Maildir splogger qmail& Thanks for your help. Peter Brezny SysAdmin Services Inc.
Re: Volunteers for a multilog patch?
Last week there was much discussion (some of it even on topic :) about making multilog rotate files on receipt of a signal. Here's my very simple patch to make multilog rotate its current file on receipt of SIGHUP. I have tested it under RedHat Linux 6.2 ONLY. However, as I have used Dan's coding style (all 2 lines of it) it should work under any systems on which multilog currently works. My tests were fairly minimal - I hammered multilog as fast as I could and sent it a SIGHUP. I then checked to see if it lost any data between rotations - it didn't. It obviously needs field testing, but I think it will allow us to rotate based on time. All we need is a cron job to send the SIGHUP at the appropriate time. If you use this, please let me know how it goes. If I get positive feedback (or no feedback at all) I'll release it in the same manner as my tai64nunix package - ie a stripped down daemontools with only enough to build the new multilog. This should comply with Dan's licensing rules. -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left" Emanuel.exe
Re: Multilog
check out tai64nlocal. it comes with daemontools. http://cr.yp.to/daemontools/tai64nlocal.html might help. -tcl. On Mon, 15 Jan 2001, Alex Kramarov wrote: > Hi. I have been happily running qmail now for some time, till now, > then I have decided to try qmailmrtg > (i also happily run mrtg for some time, to monitor my router). > > As I see, qmailmrtg requires that qmail logging will be done with multilog, (till >now I use syslog, although it's supposed to be slow which is not my primary concern). > I successfully ran multilog, but now I have a problem with it's timestamps - its >some TAI format which is pretty hard to decipher when you want to fond a log of what >happened say half an hour ago. > is there an easy way to display multilog log with "normal" (syslog-like) timestamps >(display-not write it in this format, because qmailmrtg need it in TAI).. > > Thanks.
Multilog
Hi. I have been happily running qmail now for some time, till now, then I have decided to try qmailmrtg (i also happily run mrtg for some time, to monitor my router). As I see, qmailmrtg requires that qmail logging will be done with multilog, (till now I use syslog, although it's supposed to be slow which is not my primary concern). I successfully ran multilog, but now I have a problem with it's timestamps - its some TAI format which is pretty hard to decipher when you want to fond a log of what happened say half an hour ago. is there an easy way to display multilog log with "normal" (syslog-like) timestamps (display-not write it in this format, because qmailmrtg need it in TAI).. Thanks. __IncrediMail - Email has finally evolved - Click Here
Re: Life w/qmail: multilog qmail link
[EMAIL PROTECTED] wrote: >I am trying to get a better understanding of the interoperation and I >have tried the archives but can't find the answer I am looking for. > >I have qmail working by using Sill's LWQ, but I don't understand how >the programs qmail-send and qmail-smtp are linked to the multilog >program. I see that they are both started independently and that >multilog accepts input in STDIN, but I don't see how qmail-* knows >about multilog and knows to send to its STDIN. svscan is the missing link, as dd-b pointed out. >Further adding to my confusion is the line in section 2.9 "Note that >using these instructions, logging will be accomplished by multilog, >not splogger". My /var/qmail/rc file (from LWQ)states 'qmail-start >./Maildir splogger qmail'. That tells me that splogger is being >used. The LWQ /var/qmail/rc file does *not* specify splogger. Check again. -Dave
Re: Life w/qmail: multilog qmail link
[EMAIL PROTECTED] <[EMAIL PROTECTED]> writes on 20 December 2000 at 16:29:07 GMT > I have qmail working by using Sill's LWQ, but I don't understand > how the programs qmail-send and qmail-smtp are linked to the > multilog program. I see that they are both started independently > and that multilog accepts input in STDIN, but I don't see how > qmail-* knows about multilog and knows to send to its STDIN. LWQ is recommending a setup where qmail-send and tcpserver are both run under supervise, which in turn is under control of svscan, am I remembering this right? In that scenario, svscan recognizes the need for a second supervise to do logging by the presence of the 't' bit in the directory permissions on the directory for the service. > Further adding to my confusion is the line in section 2.9 "Note > that using these instructions, logging will be accomplished by > multilog, not splogger". My /var/qmail/rc file (from LWQ)states > 'qmail-start ./Maildir splogger qmail'. That tells me that > splogger is being used. > Can someone please describe the link for me? Why does LWQ say to > put splogger on qmail-start command line if it does not even get > used? I'm not sure; is this perhaps vestigial, or to cover the possibility that something will emit output even though it's not expected? -- David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED] SF: http://www.dd-b.net/dd-b/ Minicon: http://www.mnstf.org/minicon/ Photos: http://dd-b.lighthunters.net/
Life w/qmail: multilog qmail link
Hi, I am trying to get a better understanding of the interoperation and I have tried the archives but can't find the answer I am looking for. I have qmail working by using Sill's LWQ, but I don't understand how the programs qmail-send and qmail-smtp are linked to the multilog program. I see that they are both started independently and that multilog accepts input in STDIN, but I don't see how qmail-* knows about multilog and knows to send to its STDIN. Further adding to my confusion is the line in section 2.9 "Note that using these instructions, logging will be accomplished by multilog, not splogger". My /var/qmail/rc file (from LWQ)states 'qmail-start ./Maildir splogger qmail'. That tells me that splogger is being used. Can someone please describe the link for me? Why does LWQ say to put splogger on qmail-start command line if it does not even get used? much thanks. rich
Re: Multilog
Thanks, it worked: tail --follow=name --retry current or tail -f --follow=name --retry current tail (GNU textutils) 2.0e - RedHat - Original Message - From: "Peter Samuel" <[EMAIL PROTECTED]> To: "Ari Arantes Filho" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 5:31 PM Subject: Re: Multilog > On Thu, 30 Nov 2000, Ari Arantes Filho wrote: > > > Hi, > > > > I'm using multilog, so it write the current log in the current file. I > > like to see to current file with tail -f current, but when it switch the > > log, the tail process stops, so I need to Control-C and tail -f current > > again. I've already tried tail -f --retry current and nothing... How can I > > solve this? > > Get the GNU textutils package version 2.0a or later. Use > > tail -f --follow=name --retry /var/log/qmail/current > > -- > Regards > Peter > -- > Peter Samuel[EMAIL PROTECTED] > http://www.e-smith.org (development)http://www.e-smith.com (corporate) > Phone: +1 613 368 4398 Fax: +1 613 564 7739 > e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada > > "If you kill all your unhappy customers, you'll only have happy ones left" > >
Re: Multilog
On Thu, 30 Nov 2000, Ari Arantes Filho wrote: > Hi, > > I'm using multilog, so it write the current log in the current file. I > like to see to current file with tail -f current, but when it switch the > log, the tail process stops, so I need to Control-C and tail -f current > again. I've already tried tail -f --retry current and nothing... How can I > solve this? Get the GNU textutils package version 2.0a or later. Use tail -f --follow=name --retry /var/log/qmail/current -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Multilog
Am Donnerstag, 30. November 2000 22:09 schrieb Ari Arantes Filho: > Hi, > > I'm using multilog, so it write the current log in the current file. I > like to see to current file with tail -f current, but when it switch the > log, the tail process stops, so I need to Control-C and tail -f current > again. I've already tried tail -f --retry current and nothing... How can I > solve this? Without naming your OS it's not easy to answer... and tail --version would help to. OpenBSDs tail -f works, FreeBSD needs tail -F, gnu tail needs --follow=name. > Thanks, > > Ari -- Henning Brauer | BS Web Services Hostmaster BSWS| Roedingsmarkt 14 [EMAIL PROTECTED] | 20459 Hamburg www.bsws.de| Germany
Multilog
Hi, I'm using multilog, so it write the current log in the current file. I like to see to current file with tail -f current, but when it switch the log, the tail process stops, so I need to Control-C and tail -f current again. I've already tried tail -f --retry current and nothing... How can I solve this? Thanks, Ari
Svscan, Multilog and performance issue
I have set up qmail using std instructions from life with qmail. In order to run svscan, it has to set up log directory and run multilog, some log program. However I notice that the hard disk and system is heavily loaded when multilog is turned on. Using my P133, the load is usually about 70% and the hard disk keeps accessing all the time. It in turns affect the response time when ssh to the email server. Could I not run multilog, ie not having a log directory at all to run svscan? I think I can not to run svscan instead just run supervise by some script file. Is it advisable? I also use svscan to control some other functions, including dhcpd and dhclient. However could control the order to these services being started by svscan? David Kwok
qmailanalog and multilog
hi has anybody used qmailanalog with qmail multilogs? i'd like to run statistics on my qmail-send, but multilog rotates the logfiles, so im probably loosing some logs when i run qmailanalog on the 'current' log. so has anybody some tips? as far as i understand the way qmailanalog works, i can just run it over all logfiles and it won't double-log messages?? thx for help & greetz Flavio -- -=: http://no-way.org :=-.
Multilog + Courier-imap Question
I have trouble combine these two. What I have done: 1. install daemontools, qmail and courier-imap successfully (all are newest version) 2. ./run file for courier-imap #!/bin/sh exec /usr/lib/courier-imap/libexec/imapd.rc start 3. ./log/run file #!/bin/sh exec multilog t /var/log/courier-imapd 4. edit "couriertcpd" line in file imapd.rc (1) delete -stderrlogger option (2) add 2>&1 to the end What I got: Nothing appears in /var/log/courier-imapd but new .u files continue to appear What I want: using multilog instead of logger If anybody knows how to solve it, please reply to this message. Thanks a lot! = === Luby Gao Department of Computer Science Hua Zhong University of Science and Technology Wu Han, Hu Bei, 430074 P. R. China Email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/
Re: multilog logging with vpopmail
>Hello. I've setup vpopmail for the first time last night and so far >it works pretty good. I really don't like the fact that it logs to >syslog and mail.log, however, and would prefer to use multilog with it >under supervise which works for my qmail/qmail-smtp logging. I >currently have a /var/qmail/supervise/qmail-pop3d directory with the >following in my run file: > >#!/bin/sh >exec /usr/bin/tcpserver -H -R 0 pop3 \ > /var/qmail/bin/qmail-popup $HOSTNAME \ > /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1 > >In the log/ subdirectory I have the same run file that exists in my >supervise/qmail-{send,smtpd}/log directories to handle multilog >logging for those two. > >How can I make vpopmail log in the same fashion? I'd like everything >to remain consistant if at all possible. > >Currently, absolutely nothing is written to my multilogs, and when I >try to use -v or -p with tcpserver, it refuses connection to the pop3 >server and sits there (but still nothing is printed to the logs). > >Thanks. On Mandrake 7.1 I am trying to build a vpopmail RPM. I modifield the spec of qmail-1.03.mdk.rpm and the problem is this: I noticed the qmail-pop3d (1) do not start with the init.d script: 10813 pts/1S 0:00 svscan 10814 pts/1S 0:00 supervise qmail-pop3d 10815 pts/1S 0:00 supervise qmail-send 10816 pts/1S 0:00 supervise log 10817 pts/1S 0:00 supervise qmail-smtpd 10818 pts/1S 0:00 supervise log 10819 pts/1S 0:00 /usr/bin/tcpserver -H -R 0 pop3 /var/qmail/bin/qmail-popup ns2.clikka.com 10820 pts/1S 0:00 /usr/bin/multilog t s10 n20 /var/log/qmail/smtpd 10821 pts/1S 0:00 /usr/bin/tcpserver -v -p -x /etc/tcprules.d/qmail-smtp.cdb -u 401 -g 401 -v -c100 0 10822 pts/1S 0:00 /usr/bin/multilog t s10 n20 /var/log/qmail 10823 pts/1S 0:00 qmail-send 10826 pts/1S 0:00 qmail-lspawn ./Maildir/ 10827 pts/1S 0:00 qmail-rspawn 10828 pts/1S 0:00 qmail-clean and it start manually 10814 pts/1S 0:00 supervise qmail-pop3d 10815 pts/1S 0:00 supervise qmail-send 10816 pts/1S 0:00 supervise log 10817 pts/1S 0:00 supervise qmail-smtpd 10818 pts/1S 0:00 supervise log 10819 pts/1S 0:00 /usr/bin/tcpserver -H -R 0 pop3 /var/qmail/bin/qmail-popup ns2.clikka.com 10820 pts/1S 0:00 /usr/bin/multilog t s10 n20 /var/log/qmail/smtpd 10821 pts/1S 0:00 /usr/bin/tcpserver -v -p -x /etc/tcprules.d/qmail-smtp.cdb -u 401 -g 401 -v -c100 0 10822 pts/1S 0:00 /usr/bin/multilog t s10 n20 /var/log/qmail 10823 pts/1S 0:00 qmail-send 10826 pts/1S 0:00 qmail-lspawn ./Maildir/ 10827 pts/1S 0:00 qmail-rspawn 10828 pts/1S 0:00 qmail-clean 10858 pts/1T 0:00 /usr/bin/multilog t s10 n20 /var/log/qmail-pop3d 10859 pts/1S 0:00 supervise log How can I modifiy the scripts to start it at the same time? (1) cat /var/qmail/supervise/qmail-pop3d/log/run #!/bin/sh exec /usr/bin/multilog t s10 n20 /var/log/qmail-pop3d 2>&1 Second question: the script cant run under setuidgid qmaill (unable to chenge directory) and cant log in /var/qmail/pop3d (cant lock directory) Why? Tnx Miguel Beccari
Re: qmail-mrtg-multilog [all 0's for me]
Hey, I rewrote the qmail-mrtg-mess script the other day to handle it properly. Multilog uses tai64n instead of the timestamp ones. You need to compile the tai64n program as well. Have fun. On Tue, 17 Oct 2000 11:45:52 -0700, Alex Khanin said: > [root@ns2 qm]# cat mrtg.cfg > WorkDir: /usr/local/apache/htdocs/qm > # > > Title[messages]: example.com - qmail message throughput > MaxBytes[messages]: 100 > AbsMax[messages]: 1 > Options[messages]: gauge > Target[messages]: `/usr/local/apache/htdocs/qm/qmail-mrtg-mess > /backup/log/qmail` > PageTop[messages]: example.com - qmail message throughput > ShortLegend[messages]: Messages > YLegend[messages]: Messages > Legend1[messages]: Total messages > LegendI[messages]: Deliveries: > LegendO[messages]: Attempts: > WithPeak[messages]: ymwd > > #--- > > Title[queue-size]: example.com - qmail queue size > MaxBytes[queue-size]: 1000 > AbsMax[queue-size]: 1 > Options[queue-size]: gauge > Target[queue-size]: `/usr/local/apache/htdocs/qm/qmail-mrtg-queue` > PageTop[queue-size]: example.com - qmail queue size > ShortLegend[queue-size]: Messages > YLegend[queue-size]: Messages > Legend1[queue-size]: Messages > LegendI[queue-size]: Messages: > LegendO[queue-size]: Unprocessed Messages: > WithPeak[queue-size]: ymwd > > #--- > > Title[concurrency]: example.com - qmail concurrency > MaxBytes[concurrency]: 1000 > AbsMax[concurrency]: 1 > Options[concurrency]: gauge > Target[concurrency]: `/usr/local/apache/htdocs/qm/qmail-mrtg-concurrency > /backup/log/qmail` > PageTop[concurrency]: example.com - qmail concurrency > ShortLegend[concurrency]: Concurrency > YLegend[concurrency]: Concurrency > Legend1[concurrency]: Concurrency > LegendI[concurrency]: Local: > LegendO[concurrency]: Remote: > WithPeak[concurrency]: ymwd > > #--- > > [root@ns2 qm]# pwd > /usr/local/apache/htdocs/qm > > [root@ns2 qm]# ls -al qmail-mrtg-* > -rwxr-xr-x1 alex alex 680 Jun 12 13:08 > qmail-mrtg-concurrency > -rwxr-xr-x1 alex alex 2279 Jun 12 13:08 qmail-mrtg-mess > -rwxr-xr-x1 alex alex 116 Jun 12 13:08 qmail-mrtg-queue > > [root@ns2 qm]# ls -ld /backup/log/qmail/ > drwxrwxr-x3 qmaill root 4096 Oct 17 09:02 /backup/log/qmail/ > > [root@ns2 qm]# ls -la /backup/log/qmail/ > total 940 > drwxrwxr-x3 qmaill root 4096 Oct 17 09:02 . > drwxrwxr-x4 root root 4096 Oct 16 11:46 .. > -rwxr--r--1 qmaill nofiles 98027 Oct 17 08:54 > @400039ec4c010f1ebc34.s > -rwxr--r--1 qmaill nofiles 98095 Oct 17 08:54 > @400039ec4c0a0c33dcfc.s > -rwxr--r--1 qmaill nofiles 98095 Oct 17 08:54 > @400039ec4c0e101944ec.s > -rwxr--r--1 qmaill nofiles 98035 Oct 17 08:54 > @400039ec4c161c8621b4.s > -rwxr--r--1 qmaill nofiles 98124 Oct 17 08:54 > @400039ec4c23300e7b8c.s > -rwxr--r--1 qmaill nofiles 98005 Oct 17 08:55 > @400039ec4c331a2bbadc.s > -rwxr--r--1 qmaill nofiles 98002 Oct 17 08:55 > @400039ec4c43094659fc.s > -rwxr--r--1 qmaill nofiles 98075 Oct 17 08:55 > @400039ec4c5400f15b1c.s > -rwxr--r--1 qmaill nofiles 98106 Oct 17 09:02 > @400039ec4de428cb717c.s > -rw-r--r--1 qmaill nofiles 26158 Oct 17 11:29 current > -rw---1 qmaill nofiles 0 Oct 16 11:07 lock > drwxrwxr-x2 qmaill root 4096 Oct 17 11:27 smtpd > -rw-r--r--1 qmaill nofiles 0 Oct 16 11:07 state > > // ok lets run the mrtg now.. > > [root@ns2 qm]# /usr/local/mrtg/bin/mrtg /usr/local/apache/htdocs/qm/mrtg.cfg > [root@ns2 qm]# > > [root@ns2 qm]# grep -B 3 0.0 messages.html > example.com - qmail message throughput > > > > -- > > example.com - qmail message throughput > > The statistics were last updated Tuesday, 17 October 2000 at 11:41 > -- > > >Max COLOR="#00cc00"> Deliveries: >0.0 Messages (0.0%) > > >Average COLOR="#00cc00"> Deliveries: >0.0 Messages (0.0%) > > >Current COLOR="#00cc00"> Deliveries: >0.0 Messages (0.0%) > -- > > i have more than 50k messages going out daily, yet these are my reports.. > did anyone ever get _ANY_ qmail mrtg to work? if so please reply
qmail-mrtg-multilog [all 0's for me]
[root@ns2 qm]# cat mrtg.cfg WorkDir: /usr/local/apache/htdocs/qm # Title[messages]: example.com - qmail message throughput MaxBytes[messages]: 100 AbsMax[messages]: 1 Options[messages]: gauge Target[messages]: `/usr/local/apache/htdocs/qm/qmail-mrtg-mess /backup/log/qmail` PageTop[messages]: example.com - qmail message throughput ShortLegend[messages]: Messages YLegend[messages]: Messages Legend1[messages]: Total messages LegendI[messages]: Deliveries: LegendO[messages]: Attempts: WithPeak[messages]: ymwd #--- Title[queue-size]: example.com - qmail queue size MaxBytes[queue-size]: 1000 AbsMax[queue-size]: 1 Options[queue-size]: gauge Target[queue-size]: `/usr/local/apache/htdocs/qm/qmail-mrtg-queue` PageTop[queue-size]: example.com - qmail queue size ShortLegend[queue-size]: Messages YLegend[queue-size]: Messages Legend1[queue-size]: Messages LegendI[queue-size]: Messages: LegendO[queue-size]: Unprocessed Messages: WithPeak[queue-size]: ymwd #--- Title[concurrency]: example.com - qmail concurrency MaxBytes[concurrency]: 1000 AbsMax[concurrency]: 1 Options[concurrency]: gauge Target[concurrency]: `/usr/local/apache/htdocs/qm/qmail-mrtg-concurrency /backup/log/qmail` PageTop[concurrency]: example.com - qmail concurrency ShortLegend[concurrency]: Concurrency YLegend[concurrency]: Concurrency Legend1[concurrency]: Concurrency LegendI[concurrency]: Local: LegendO[concurrency]: Remote: WithPeak[concurrency]: ymwd #--- [root@ns2 qm]# pwd /usr/local/apache/htdocs/qm [root@ns2 qm]# ls -al qmail-mrtg-* -rwxr-xr-x1 alex alex 680 Jun 12 13:08 qmail-mrtg-concurrency -rwxr-xr-x1 alex alex 2279 Jun 12 13:08 qmail-mrtg-mess -rwxr-xr-x1 alex alex 116 Jun 12 13:08 qmail-mrtg-queue [root@ns2 qm]# ls -ld /backup/log/qmail/ drwxrwxr-x3 qmaill root 4096 Oct 17 09:02 /backup/log/qmail/ [root@ns2 qm]# ls -la /backup/log/qmail/ total 940 drwxrwxr-x3 qmaill root 4096 Oct 17 09:02 . drwxrwxr-x4 root root 4096 Oct 16 11:46 .. -rwxr--r--1 qmaill nofiles 98027 Oct 17 08:54 @400039ec4c010f1ebc34.s -rwxr--r--1 qmaill nofiles 98095 Oct 17 08:54 @400039ec4c0a0c33dcfc.s -rwxr--r--1 qmaill nofiles 98095 Oct 17 08:54 @400039ec4c0e101944ec.s -rwxr--r--1 qmaill nofiles 98035 Oct 17 08:54 @400039ec4c161c8621b4.s -rwxr--r--1 qmaill nofiles 98124 Oct 17 08:54 @400039ec4c23300e7b8c.s -rwxr--r--1 qmaill nofiles 98005 Oct 17 08:55 @400039ec4c331a2bbadc.s -rwxr--r--1 qmaill nofiles 98002 Oct 17 08:55 @400039ec4c43094659fc.s -rwxr--r--1 qmaill nofiles 98075 Oct 17 08:55 @400039ec4c5400f15b1c.s -rwxr--r--1 qmaill nofiles 98106 Oct 17 09:02 @400039ec4de428cb717c.s -rw-r--r--1 qmaill nofiles 26158 Oct 17 11:29 current -rw---1 qmaill nofiles 0 Oct 16 11:07 lock drwxrwxr-x2 qmaill root 4096 Oct 17 11:27 smtpd -rw-r--r--1 qmaill nofiles 0 Oct 16 11:07 state // ok lets run the mrtg now.. [root@ns2 qm]# /usr/local/mrtg/bin/mrtg /usr/local/apache/htdocs/qm/mrtg.cfg [root@ns2 qm]# [root@ns2 qm]# grep -B 3 0.0 messages.html example.com - qmail message throughput -- example.com - qmail message throughput The statistics were last updated Tuesday, 17 October 2000 at 11:41 -- Max Deliveries: 0.0 Messages (0.0%) Average Deliveries: 0.0 Messages (0.0%) Current Deliveries: 0.0 Messages (0.0%) -- i have more than 50k messages going out daily, yet these are my reports.. did anyone ever get _ANY_ qmail mrtg to work? if so please reply, with what logger? (i use multilog) what qmail-mrtg? where to get it? what did you edit in the cfg file/etc. thank you. help greatly appreciated!! alex khanin, system administrator, relationalMail 205 hudson st, 7th floor, new york, ny 10013, usa v: 646-613-2074 * e: alex -at- relationalmail.com
Re: emergency phone numbers (was: Volunteers for a multilog patch?)
On 15 Oct 2000, Chris K. Young wrote: > Quoted from Peter Samuel: > > - 911 is the emergency number in North America, while it is 000 in > > Oz, 999 in NZ and UK etc. > > 999 in New Zealand? Not unless you use pulse dialling! :-) (Hint: most > phones in New Zealand do tone dialling. And rotary phones in New Zealand > are labelled backwards to what I've seen in other places.) That's what confused me! I've not been in NZ since 1980 and I remember that their emergency number was the hardest to dial on a rotary phone (like Australia's 000), I'd forgotten that their rotary phones were backwards, hence 111 is the hardest number to dial. (Or close to it). > > A New Zealand station (channel 2, I think) used to screen ``Rescue 911'' > (that American programme) on TV, and some kids actually dialled 911 in > an emergency. :-( So since then, channel 2 had another series, ``Rescue > 111''. Similar problems in Oz. -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left"
emergency phone numbers (was: Volunteers for a multilog patch?)
Quoted from Peter Samuel: > - 911 is the emergency number in North America, while it is 000 in > Oz, 999 in NZ and UK etc. 999 in New Zealand? Not unless you use pulse dialling! :-) (Hint: most phones in New Zealand do tone dialling. And rotary phones in New Zealand are labelled backwards to what I've seen in other places.) A New Zealand station (channel 2, I think) used to screen ``Rescue 911'' (that American programme) on TV, and some kids actually dialled 911 in an emergency. :-( So since then, channel 2 had another series, ``Rescue 111''. ---Chris K. -- Chris, the Young One |_ If you can't afford a backup system, you can't Auckland, New Zealand |_ afford to have important data on your computer. http://cloud9.hedgee.com/ |_ ---Tracy R. Reed
Re: multilog (not working)
"Alex Khanin" <[EMAIL PROTECTED]> writes: > what am i doing wrong, multilog setup accord to Life with qmail webpage, > is not working for me at all > > because their rc file with start command starts the old /var/qmail/rc which > has splogger in it. Where in the hell did you find that?! Section 2.8.1, /var/qmail/rc. There ain't no friggin splogger there. As you will soon find, we don't explain stuff step-by-step on this list. There is always doco out there... Enjoy -- === |User: |Href: |Status:| --- |Brett Randall |<http://xbox.ipsware.com/>|Hibernating| === Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
RE: multilog (not working)
To stop the tcpserver error, reconfigure or terminate the other program which is listening on port 25. This may be another tcpserver, inetd, sendmail, or something else I never heard of. You know your box better than I do. (I hope) As for logging, I found that I needed to make the directory in which multilog will be writing its logs read/write/executable for at least the qmaill user, otherwise it would not work, and the ps ax | grep multilog would show [multilog], indicating a failed 'zombie' sort of state. Check the permissions. And you may wish to send to us the line you are running with multilog on it, and an ls -ld of the directory the multilog script points to. David > -Original Message- > From: Alex Khanin [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 13, 2000 6:15 PM > To: [EMAIL PROTECTED] > Subject: multilog (not working) > > > what am i doing wrong, multilog setup accord to Life with > qmail webpage, > is not working for me at all > > because their rc file with start command starts the old > /var/qmail/rc which > has splogger in it. > also it starts scrolling non stop "tcpserver: cannot bind to > port, already > in use" > > could someone PLEASE show me what i am doing wrong? dont send > to another > webpage, > because they dont explain anything. please show me step by > step the stuff > that i need to do > to get it to work. (ex: what files to edit, what dirs/files > to make) PLEASE! > =( > > this is what i have: > > [root@fly supervise]# pwd > /var/qmail/supervise > > [root@fly supervise]# ls -la > total 4 > drwxrwxr-x4 root root 1024 Oct 13 17:56 . > drwxr-xr-x 11 root qmail1024 Oct 13 18:04 .. > drwxrwxr-t4 root root 1024 Oct 13 17:59 qmail-send > drwxrwxr-t4 root root 1024 Oct 13 17:59 qmail-smtpd > > [root@fly supervise]# find . > . > ./qmail-send > ./qmail-send/log > ./qmail-send/log/run > ./qmail-send/log/supervise > ./qmail-send/log/supervise/lock > ./qmail-send/log/supervise/control > ./qmail-send/log/supervise/ok > ./qmail-send/log/supervise/status > ./qmail-send/run > ./qmail-send/supervise > ./qmail-send/supervise/lock > ./qmail-send/supervise/control > ./qmail-send/supervise/ok > ./qmail-send/supervise/status > ./qmail-smtpd > ./qmail-smtpd/log > ./qmail-smtpd/log/run > ./qmail-smtpd/log/supervise > ./qmail-smtpd/log/supervise/lock > ./qmail-smtpd/log/supervise/control > ./qmail-smtpd/log/supervise/ok > ./qmail-smtpd/log/supervise/status > ./qmail-smtpd/run > ./qmail-smtpd/supervise > ./qmail-smtpd/supervise/lock > ./qmail-smtpd/supervise/control > ./qmail-smtpd/supervise/ok > ./qmail-smtpd/supervise/status > > > > ok inside the /var/qmail/rc: > > [root@fly supervise]# cat /var/qmail/rc > export PATH="/var/qmail/bin:$PATH" > qmail-start ./Mailbox splogger qmail >/dev/null 2>&1 & > > > what do i do?? > i did everything according to [http://web.infoave.net/~dsill/lwq.html] and its not working. please help me. thanks.
multilog (not working)
what am i doing wrong, multilog setup accord to Life with qmail webpage, is not working for me at all because their rc file with start command starts the old /var/qmail/rc which has splogger in it. also it starts scrolling non stop "tcpserver: cannot bind to port, already in use" could someone PLEASE show me what i am doing wrong? dont send to another webpage, because they dont explain anything. please show me step by step the stuff that i need to do to get it to work. (ex: what files to edit, what dirs/files to make) PLEASE! =( this is what i have: [root@fly supervise]# pwd /var/qmail/supervise [root@fly supervise]# ls -la total 4 drwxrwxr-x4 root root 1024 Oct 13 17:56 . drwxr-xr-x 11 root qmail1024 Oct 13 18:04 .. drwxrwxr-t4 root root 1024 Oct 13 17:59 qmail-send drwxrwxr-t4 root root 1024 Oct 13 17:59 qmail-smtpd [root@fly supervise]# find . . ./qmail-send ./qmail-send/log ./qmail-send/log/run ./qmail-send/log/supervise ./qmail-send/log/supervise/lock ./qmail-send/log/supervise/control ./qmail-send/log/supervise/ok ./qmail-send/log/supervise/status ./qmail-send/run ./qmail-send/supervise ./qmail-send/supervise/lock ./qmail-send/supervise/control ./qmail-send/supervise/ok ./qmail-send/supervise/status ./qmail-smtpd ./qmail-smtpd/log ./qmail-smtpd/log/run ./qmail-smtpd/log/supervise ./qmail-smtpd/log/supervise/lock ./qmail-smtpd/log/supervise/control ./qmail-smtpd/log/supervise/ok ./qmail-smtpd/log/supervise/status ./qmail-smtpd/run ./qmail-smtpd/supervise ./qmail-smtpd/supervise/lock ./qmail-smtpd/supervise/control ./qmail-smtpd/supervise/ok ./qmail-smtpd/supervise/status ok inside the /var/qmail/rc: [root@fly supervise]# cat /var/qmail/rc export PATH="/var/qmail/bin:$PATH" qmail-start ./Mailbox splogger qmail >/dev/null 2>&1 & what do i do?? i did everything according to [http://web.infoave.net/~dsill/lwq.html] and its not working. please help me. thanks.
Re: Volunteers for a multilog patch?
Last week there was much discussion (some of it even on topic :) about making multilog rotate files on receipt of a signal. Here's my very simple patch to make multilog rotate its current file on receipt of SIGHUP. I have tested it under RedHat Linux 6.2 ONLY. However, as I have used Dan's coding style (all 2 lines of it) it should work under any systems on which multilog currently works. My tests were fairly minimal - I hammered multilog as fast as I could and sent it a SIGHUP. I then checked to see if it lost any data between rotations - it didn't. It obviously needs field testing, but I think it will allow us to rotate based on time. All we need is a cron job to send the SIGHUP at the appropriate time. If you use this, please let me know how it goes. If I get positive feedback (or no feedback at all) I'll release it in the same manner as my tai64nunix package - ie a stripped down daemontools with only enough to build the new multilog. This should comply with Dan's licensing rules. -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left" --- multilog.c.orig Mon Mar 6 00:21:09 2000 +++ multilog.c Tue Oct 10 12:29:42 2000 @@ -243,6 +243,11 @@ } } +void rotate(void) +{ + fullcurrent(c); +} + int c_write(int pos,char *buf,int len) { struct cyclog *d; @@ -561,6 +566,7 @@ coe(fdstartdir); sig_catch(sig_term,exitasap); + sig_catch(sig_hangup,rotate); ++argv; f_init(argv);
Re: Volunteers for a multilog patch?
On Sat, Oct 07, 2000 at 08:03:04AM +1000, Brett Randall wrote: > > If you insist on just one file per time period (day) then you'll need > > to discourage multilog from automatically rolling by making the size > > setting absurdly large. Of course by doing this you remove a major > > advantage of multilog, namely resource control. > > Resource control is a nice idea, but really I mean how many admins have way > more than enough disk space to handle logs? Even if a day's mail log reached > 50mb (we have about 200 users, so this figure is pretty damn huge for one > day), then on a standard 9gb drive we can still fit 180 days logs, not On my popserver (which does local deliveries, forwards, and some big alias expansions) with just under 40.000 users, I *normally* do about 40mb a day, but one fat mailbomb (which happens too often) and that number easily grows to a 100-200. Greetz, Peter -- dataloss networks '/ignore-ance is bliss' - me
Re: Volunteers for a multilog patch?
On Sat, Oct 07, 2000 at 08:03:04AM +1000, Brett Randall wrote: > > If you insist on just one file per time period (day) then you'll need > > to discourage multilog from automatically rolling by making the size > > setting absurdly large. Of course by doing this you remove a major > > advantage of multilog, namely resource control. > > Resource control is a nice idea, but really I mean how many admins have way > more than enough disk space to handle logs? Even if a day's mail log reached > 50mb (we have about 200 users, so this figure is pretty damn huge Well, a system I work on regularly does 20+ million deliveries a week. Your figure is pretty damn small, actually. > in multilog for time-based or size-based logs. Logs filling up my hard drive > is never a worry...I keep an eye on such things When you look after 50+ systems that all have unbounded resource usage, you need a lot more than two eyes. Do you really want to spend your days lookng at log file sizes or are you ready for something a little more challenging? The novelty does wear off, I assure you. Regards.
RE: Volunteers for a multilog patch?
> If you insist on just one file per time period (day) then you'll need > to discourage multilog from automatically rolling by making the size > setting absurdly large. Of course by doing this you remove a major > advantage of multilog, namely resource control. Resource control is a nice idea, but really I mean how many admins have way more than enough disk space to handle logs? Even if a day's mail log reached 50mb (we have about 200 users, so this figure is pretty damn huge for one day), then on a standard 9gb drive we can still fit 180 days logs, not taking into account a compression factor of 10:1 once logs are archived, and our normal backup routine. I'm not sure really why an option wasn't included in multilog for time-based or size-based logs. Logs filling up my hard drive is never a worry...I keep an eye on such things, and in the last 4 years have never had a problem and none in the forseeable future, either. Of course, a good backup routine helps. Anyway, thanks for the suggestions and help, guys (Harald in particular). I'll give that a go when I get back. /BR Manager InterPlanetary Solutions http://ipsware.com/
Re: Volunteers for a multilog patch?
On Fri, Oct 06, 2000 at 07:07:11PM +0200, Harald Hanche-Olsen wrote: > + [EMAIL PROTECTED]: > > | On Fri, Oct 06, 2000 at 06:06:51PM +0200, Harald Hanche-Olsen wrote: > | > | > using a /log directory, just have a cron job kill the logger > | > using svc -t. Supervise will start a new logger. Now, unless you do > | > | That's the thought I had too, but I'd want to check that supervise > | re-establishes the same pipeline between the two processes. > > svscan takes care of that by keeping the file descriptor to both ends > of the pipe open. Indeed. Of course svc -t doesn't propogate back up to svscan, instead supervise (which has inherited the pipe) merely re-forks multilog. In any event, using Harald's strategy works just fine. svc -t the log service at midnight or whenever, and your job is done. If you insist on just one file per time period (day) then you'll need to discourage multilog from automatically rolling by making the size setting absurdly large. Of course by doing this you remove a major advantage of multilog, namely resource control. Regards.
Re: Volunteers for a multilog patch?
+ [EMAIL PROTECTED]: | On Fri, Oct 06, 2000 at 06:06:51PM +0200, Harald Hanche-Olsen wrote: | | > using a /log directory, just have a cron job kill the logger | > using svc -t. Supervise will start a new logger. Now, unless you do | | That's the thought I had too, but I'd want to check that supervise | re-establishes the same pipeline between the two processes. svscan takes care of that by keeping the file descriptor to both ends of the pipe open. - Harald
Re: Volunteers for a multilog patch?
On Fri, Oct 06, 2000 at 06:06:51PM +0200, Harald Hanche-Olsen wrote: > using a /log directory, just have a cron job kill the logger > using svc -t. Supervise will start a new logger. Now, unless you do That's the thought I had too, but I'd want to check that supervise re-establishes the same pipeline between the two processes. Regards.
Re: Volunteers for a multilog patch?
+ Dave Sill <[EMAIL PROTECTED]>: | "Brett Randall" <[EMAIL PROTECTED]> wrote: | | >I'm in need of some sanity. Does a patch exist, or does anyone want | >to make one, to make multilog rotate logs based on time rather than | >file size? | | There's a patch that causes multilog to close the current file when | it receives a certain signal, but I don't have a pointer to it. It should be easy enough, in principle, to solve this using daemontools. Assuming the logger is controlled by svscan/supervise using a /log directory, just have a cron job kill the logger using svc -t. Supervise will start a new logger. Now, unless you do something, the new logger will run in the same directory, and keep appending to current until it's big enough. To avoid this problem, let the logger actually be a shell script along the lines of #!/bin/sh exec multilog ... `date +/var/log/foolog.%Y-%m-%d` ... Voila, each day's log output in its own directory. Postprocess and rearrange to your heart's content. This solution comes untested and without a warranty, but I can't see why it should not work. ObOffTopic: + Peter Samuel <[EMAIL PROTECTED]>: | - 911 is the emergency number in North America, while it is 000 in | Oz, 999 in NZ and UK etc. While it is 112 in the rest of the civilized world? That's actually an international standard. - Harald
Re: OT: who cares? (was: Volunteers for a multilog patch?)
Well said! > > The qmail list isn't just a qmail hotline, it's an on-line community > of people interested in qmail. If some of us want to talk about other > topics now and then, we will. Feel free not to participate in such > discussions. > > -Dave >
Re: Volunteers for a multilog patch?
Peter Samuel writes: > - Australian power points (or power outlets if you don't know what > I'm talking about) all have switches on the outlet itself, not at > the wall. Seems to be part of the UK mains wiring code, because it's in Britain and India as well. Even in the server colocation facility in VSNL (India's national telephone company), the server outlets have switches. I was aghast! Who would ever turn a server off?? If it were me, I'd devise a little plastic grommet which would go between the outlet and the plug, and hold the switch *on*, damnit. Then again, while I was there doing a qmail server install, the facility lost power (and yes, they have generators in the basement). Somebody make a *big* boo-boo, once for thirty seconds (which was bad enough), and then again five minutes later, for fifteen minutes. Just long enough for the e2fsck to get started. It only took three hours to complete. -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com | A hate crime makes Crynwr sells support for free software | PGPok | it illegal to think certain 521 Pleasant Valley Rd. | +1 315 268 1925 voice | thoughts. The crime is Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | itself already a crime.
OT: Re: Volunteers for a multilog patch?
On Thu, 5 Oct 2000, Dave Sill wrote: > Peter Samuel <[EMAIL PROTECTED]> wrote: > > >- we're metric, the USA isn't (and Canada still hasn't quite made > > up its mind yet, even after almost 30 years. And if you think > > otherwsie, why do they sell coffee/meat by the pound here?) > > We do some metric. E.g., nutritional information labels are metric. UK > is half and half, too. no it is not -- i think you'll find that it's now illegal to sell goods in 'imperial' measures. Since moving to the USA I'm having to learn what all of these strange measures are. Goods might be dual-labeled, but it's the Metric measure which is 'standard'. RjL
Re: OT: who cares? (was: Volunteers for a multilog patch?)
On Thu, Oct 05, 2000 at 08:55:11PM +0200, Johan Almqvist wrote: > > What about getting a sense of humor? Jeez. > > Where do the sell those? I'd like a bunch for some people around me... You seem to be well-supplied yourself, tho :) Greetz, Peter -- dataloss networks '/ignore-ance is bliss' - me
Re: OT: who cares? (was: Volunteers for a multilog patch?)
> What about getting a sense of humor? Jeez. Where do the sell those? I'd like a bunch for some people around me... -Johan -- Johan Almqvist
Re: OT Country differences (was: Volunteers for a multilog patch?)
Kris Kelley <[EMAIL PROTECTED]> writes on 5 October 2000 at 11:58:57 -0500 > And guess which countries will be important when the U.S., China, and Russia > all go to war and wipe each other out? :) Um, ones on some other planet? -- David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED] Photos: http://dd-b.lighthunters.net/ SF: http://www.dd-b.net/dd-b/ Minicon: http://www.mnstf.org/minicon/
Re: OT: who cares? (was: Volunteers for a multilog patch?)
On Thu, Oct 05, 2000 at 08:09:58PM +0200, Martin Jespersen wrote: > What about taking this to a private forum? What about getting a sense of humor? Jeez. --Adam -- Adam McKenna <[EMAIL PROTECTED]> | "No matter how much it changes, http://flounder.net/publickey.html | technology's just a bunch of wires GPG: 17A4 11F7 5E7E C2E7 08AA| connected to a bunch of other wires." 38B0 05D0 8BF7 2C6D 110A| Joe Rogan, _NewsRadio_
Re: OT: who cares? (was: Volunteers for a multilog patch?)
Martin Jespersen <[EMAIL PROTECTED]> wrote: >What about taking this to a private forum? What about stirring the coals on a dead thread? What about using the "delete" button or "d" key? The qmail list isn't just a qmail hotline, it's an on-line community of people interested in qmail. If some of us want to talk about other topics now and then, we will. Feel free not to participate in such discussions. -Dave
OT: who cares? (was: Volunteers for a multilog patch?)
What about taking this to a private forum? /Martin Peter Samuel wrote: > > On Thu, 5 Oct 2000, Dave Sill wrote: > > > Justin Bell <[EMAIL PROTECTED]> wrote: > > > > >can someone please tell me what Quarter of nine means, is it a quarter til, > > >quarter past? > > > > It means 8:45. > > > > >Oh, and US citizens are about as arrogant as the French > > > > As if *that's* possible. :-) > > Ah, something we can all agree on. We all hate the French :) > > -- > Regards > Peter > -- > Peter Samuel[EMAIL PROTECTED] > http://www.e-smith.org (development)http://www.e-smith.com (corporate) > Phone: +1 613 368 4398 Fax: +1 613 564 7739 > e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada > > "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Volunteers for a multilog patch?
On Thu, 5 Oct 2000, Dave Sill wrote: > Justin Bell <[EMAIL PROTECTED]> wrote: > > >can someone please tell me what Quarter of nine means, is it a quarter til, > >quarter past? > > It means 8:45. > > >Oh, and US citizens are about as arrogant as the French > > As if *that's* possible. :-) Ah, something we can all agree on. We all hate the French :) -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Volunteers for a multilog patch?
Justin Bell <[EMAIL PROTECTED]> wrote: >can someone please tell me what Quarter of nine means, is it a quarter til, >quarter past? It means 8:45. >Oh, and US citizens are about as arrogant as the French As if *that's* possible. :-) -Dave
OT Country differences (was: Volunteers for a multilog patch?)
> mm/dd/yy is silly. dd/mm/yy is better, but I use -mm-dd, which is > ISO-compatible and sorts nicely. mm/dd/yy is the natural derivative of how we usually say dates out loud, e.g., today is October 5th, 2000. Silly in a mathematical sense, perhaps, but it wasn't just yanked out of a hat. > We do some metric. E.g., nutritional information labels are metric. UK > is half and half, too. U.S. nutritional information labels aren't just metric. They commonly have one "layman's terms" measurement, followed by the metric equivalent in parentheses. For example, my orange juice bottle has "Serving Size: 8 fl oz (240mL)", and the cupcake package reads "Serving Size: 1 cake (50g)". > [Light switches] toggle, for Peter's sake! If it's dark, flip the danged switch > and see if it gets brighter. Sheesh. :-) Of course, when you have lights serviced by two or more switches, both sides of this argument fly right out the window. > >- Australian power points (or power outlets if you don't know what > > I'm talking about) all have switches on the outlet itself, not at > > the wall. > > Oh, that's *handy*...walk into a room and fumble behind the furniture > looking for the light switch. Gee, I can't imagine why we put them on > the wall... A bit of clarification is needed here. Typically, power outlets in the U.S. won't have switches at all; that is, they're "always on." However, housing and apartment contractors have gotten really cheap lately. Instead of putting in overhead lighting, they'll wire the wall switch to a power outlet and expect the tenant to provide his/her own light source. On the other hand, power outlets in many modern U.S. home bathrooms *do* have a switch on the outlet itself, due to safety codes. > Of course we have a North Amercian centric view of the world: we're > the most powerful and important country in the world. If we were a > backwater like Canada or Australia, we'd be paying a lot more > attention to other countries like the US, too. And guess which countries will be important when the U.S., China, and Russia all go to war and wipe each other out? :) ---Kris Kelley
Re: Volunteers for a multilog patch?
On 05 20, Dave Sill wrote: # Peter Samuel <[EMAIL PROTECTED]> wrote: # # >On Thu, 5 Oct 2000, Dave Sill wrote: # >> # >> >It's like comparing America # >> >to Australia. Why do America have to make everything back-to-front # >> >for us? # >> # >> Such as? # > # >I'll bite that one. Here's my short list off the top of my head. # # Brett implied that the US was intentionally being different. I think # your examples are perfectly typical international differences. # # >- we each drive on different sides of the road # # US and Canada do it one way. UK and Australia do it the other. There's # no clear international standard. Ahh, but the reason the US drives on the other side of the road is because the UK doesn't! It makes life hell for kids who have been taught to look right, left, right again # >- we tell time differently, eg quarter past 9 vs quarter after # > nine # # Same difference. can someone please tell me what Quarter of nine means, is it a quarter til, quarter past? # >- North American light switches are up for on, but in Oz they are # > down for on. # # They toggle, for Peter's sake! If it's dark, flip the danged switch # and see if it gets brighter. Sheesh. :-) Actually, this one got me too I thought the bulb was out # >- Australian power points (or power outlets if you don't know what # > I'm talking about) all have switches on the outlet itself, not at # > the wall. # # Oh, that's *handy*...walk into a room and fumble behind the furniture # looking for the light switch. Gee, I can't imagine why we put them on # the wall... No, Power outlets, not light switches... the power outlets have switches at the outlet... # >- typically, North Americans have a North American centric view of # > the world, while people in Oz tend to be, on the whole, more aware # > of the rest of the world. (I know, a sweeping generalisation and North # > Americans have improved greatly since I first encountered them on # > mass in 1978). # # Of course we have a North Amercian centric view of the world: we're # the most powerful and important country in the world. If we were a # backwater like Canada or Australia, we'd be paying a lot more # attention to other countries like the US, too. Oh, and US citizens are about as arrogant as the French ;) -- Justin Bell
Re: Volunteers for a multilog patch?
Peter Samuel <[EMAIL PROTECTED]> wrote: >On Thu, 5 Oct 2000, Dave Sill wrote: >> >> >It's like comparing America >> >to Australia. Why do America have to make everything back-to-front >> >for us? >> >> Such as? > >I'll bite that one. Here's my short list off the top of my head. Brett implied that the US was intentionally being different. I think your examples are perfectly typical international differences. >- we each drive on different sides of the road US and Canada do it one way. UK and Australia do it the other. There's no clear international standard. >- we describe dates differently mm/dd/yy vs dd/mm/yy mm/dd/yy is silly. dd/mm/yy is better, but I use -mm-dd, which is ISO-compatible and sorts nicely. >- we tell time differently, eg quarter past 9 vs quarter after > nine Same difference. >- we're metric, the USA isn't (and Canada still hasn't quite made > up its mind yet, even after almost 30 years. And if you think > otherwsie, why do they sell coffee/meat by the pound here?) We do some metric. E.g., nutritional information labels are metric. UK is half and half, too. >- North American light switches are up for on, but in Oz they are > down for on. They toggle, for Peter's sake! If it's dark, flip the danged switch and see if it gets brighter. Sheesh. :-) >- Australian power points (or power outlets if you don't know what > I'm talking about) all have switches on the outlet itself, not at > the wall. Oh, that's *handy*...walk into a room and fumble behind the furniture looking for the light switch. Gee, I can't imagine why we put them on the wall... >- typically, North Americans have a North American centric view of > the world, while people in Oz tend to be, on the whole, more aware > of the rest of the world. (I know, a sweeping generalisation and North > Americans have improved greatly since I first encountered them on > mass in 1978). Of course we have a North Amercian centric view of the world: we're the most powerful and important country in the world. If we were a backwater like Canada or Australia, we'd be paying a lot more attention to other countries like the US, too. 1/2 :-) -Dave
Re: Volunteers for a multilog patch?
On Thu, 5 Oct 2000, Dave Sill wrote: > > >It's like comparing America > >to Australia. Why do America have to make everything back-to-front > >for us? > > Such as? I'll bite that one. Here's my short list off the top of my head. In no particular order, it's also my opinionated view, it's not accurate, I'm not complaining (and please don't point out that I am now living in Canada and working for a Canadian company because I know that already :) And I don't think North Americans go out of there way just to annoy Australians (however we Australians have been known to go out of our way to bait North Americans - it's fun and often altogether too easy :) - we each drive on different sides of the road - we describe dates differently mm/dd/yy vs dd/mm/yy - we tell time differently, eg quarter past 9 vs quarter after nine - we're metric, the USA isn't (and Canada still hasn't quite made up its mind yet, even after almost 30 years. And if you think otherwsie, why do they sell coffee/meat by the pound here?) - and while we're on the subject of imperial measurements, a ton in Oz is 2400 pounds, but it's 2000 pounds in North America. Gallons are smaller in North America too (approx 3.5 litres compared with approx 4.5 litres). - North American light switches are up for on, but in Oz they are down for on. - Australian power points (or power outlets if you don't know what I'm talking about) all have switches on the outlet itself, not at the wall. - we have different telephony infrastructure. For example in North America a T1 is approx 1.5Mb/s while in Australia an E1 is 2Mb/s - 911 is the emergency number in North America, while it is 000 in Oz, 999 in NZ and UK etc. - typically, North Americans have a North American centric view of the world, while people in Oz tend to be, on the whole, more aware of the rest of the world. (I know, a sweeping generalisation and North Americans have improved greatly since I first encountered them on mass in 1978). - lots of other things -- Regards Peter -- Peter Samuel[EMAIL PROTECTED] http://www.e-smith.org (development)http://www.e-smith.com (corporate) Phone: +1 613 368 4398 Fax: +1 613 564 7739 e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Volunteers for a multilog patch?
Dave Sill <[EMAIL PROTECTED]> wrote: > "Brett Randall" <[EMAIL PROTECTED]> wrote: > > >I'm in need of some sanity. Does a patch exist, or does anyone want to make > >one, to make multilog rotate logs based on time rather than file size? > > There's a patch that causes multilog to close the current file when it > receives a certain signal, but I don't have a pointer to it. This sounds a lot like some work that Bruce Guenter did a while back; you might want to check http://em.ca/~bruceg/ . I've just had a quick peek but haven't found it exactly yet. It might be part of his daemontools package, or perhaps his qlogtools package. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---