I'm looking for info and have an offer to make - We have Netsaint running
here to monitor servers / services (plug - http://www.netsaint.org/) and
we wrote a very small plugin to check the queue of mail messages sitting
on the servers.

I would be happy to provide this to anyone looking to do a similar thing.

The problem - 'phantom' qmail-qstat responses.

The qmail archives have a few messages about determining how many messages 
are in the queue from back a ways, but I didn't find any touching on this:

qmail-qstat looks at 'messages in queue' by looking for files in the
directories queue/mess/*.

But - we seem to have a condition (relatively infrequently, but often
enough to cause a stir) - where a file is left in this directory <after>
the message has been delivered. (log confirms delivery, no error)

That is, every other file with the same name from that message is gone,
but the mess file remains for some period of time.  0-60 minutes later,
the file is removed.

The best I have been able to guess is that some program is holding onto
an inode, the file is really left there and cleaned up later when it is
used again, or we have some local bug.

Other info - qmail 1.0.3, Linux 2.2.18, MDA is procmail.
(I'd offer more direct info, but it isn't happening right now...-)
[I started this message in January and waited - I'm attaching an 'ls -lr' 
on the queue directory showing 2 left over files in 'mess']

I could work around this by changing the way we look for messages in the
queue, or fix this.  (and am somewhat thinking I'll see a response -
"your site gets to an empty queue!-)"  ((Note - we use the inside the
firewall queue & outside the firewall queue - the inside server should
always get back to a nothing in the queue state.  It delivers locally
or gives the messages to the other server to deliver))

any help or advice appreciated,
steve
-- 
Steven Tylock <[EMAIL PROTECTED]>
Questra Corporation, (716) 381-0260 x521

=========================
> 
> .:
> total 40
> drwx------    2 qmails   qmail        4096 Jan 29 16:57 bounce
> drwx------   25 qmails   qmail        4096 Jun  5  2000 info
> drwx------    2 qmailq   qmail        4096 Jan 29 16:57 intd
> drwx------   25 qmails   qmail        4096 Jun  5  2000 local
> drwxr-x---    2 qmailq   qmail        4096 Jan 25 00:03 lock
> drwxr-xr-x    2 root     root         4096 Jun  2  2000 lost+found
> drwxr-x---   25 qmailq   qmail        4096 Jun  5  2000 mess
> drwx------    2 qmailq   qmail        4096 Jan 29 16:57 pid
> drwx------   25 qmails   qmail        4096 Jun  5  2000 remote
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:57 todo
> 
> ./bounce:
> total 0
> 
> ./info:
> total 92
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 0
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 1
> drwx------    2 qmails   qmail        4096 Jan 29 16:41 10
> drwx------    2 qmails   qmail        4096 Jan 29 16:41 11
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 12
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 13
> drwx------    2 qmails   qmail        4096 Jan 29 14:15 14
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 15
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 16
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 17
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 18
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 19
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 2
> drwx------    2 qmails   qmail        4096 Jan 29 14:16 20
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 21
> drwx------    2 qmails   qmail        4096 Jan 29 14:16 22
> drwx------    2 qmails   qmail        4096 Jan 29 16:39 3
> drwx------    2 qmails   qmail        4096 Jan 29 16:30 4
> drwx------    2 qmails   qmail        4096 Jan 29 16:57 5
> drwx------    2 qmails   qmail        4096 Jan 29 16:56 6
> drwx------    2 qmails   qmail        4096 Jan 29 16:57 7
> drwx------    2 qmails   qmail        4096 Jan 29 16:51 8
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 9
> 
> ./info/0:
> total 0
> 
> ./info/1:
> total 0
> 
> ./info/10:
> total 0
> 
> ./info/11:
> total 0
> 
> ./info/12:
> total 0
> 
> ./info/13:
> total 0
> 
> ./info/14:
> total 0
> 
> ./info/15:
> total 0
> 
> ./info/16:
> total 0
> 
> ./info/17:
> total 0
> 
> ./info/18:
> total 0
> 
> ./info/19:
> total 0
> 
> ./info/2:
> total 0
> 
> ./info/20:
> total 0
> 
> ./info/21:
> total 0
> 
> ./info/22:
> total 0
> 
> ./info/3:
> total 0
> 
> ./info/4:
> total 0
> 
> ./info/5:
> total 0
> 
> ./info/6:
> total 0
> 
> ./info/7:
> total 0
> 
> ./info/8:
> total 0
> 
> ./info/9:
> total 0
> 
> ./intd:
> total 0
> 
> ./local:
> total 92
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 0
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 1
> drwx------    2 qmails   qmail        4096 Jan 29 16:41 10
> drwx------    2 qmails   qmail        4096 Jan 29 16:41 11
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 12
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 13
> drwx------    2 qmails   qmail        4096 Jan 29 11:23 14
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 15
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 16
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 17
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 18
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 19
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 2
> drwx------    2 qmails   qmail        4096 Jan 29 14:16 20
> drwx------    2 qmails   qmail        4096 Jan 29 14:16 21
> drwx------    2 qmails   qmail        4096 Jan 29 14:16 22
> drwx------    2 qmails   qmail        4096 Jan 29 16:39 3
> drwx------    2 qmails   qmail        4096 Jan 29 16:30 4
> drwx------    2 qmails   qmail        4096 Jan 29 16:57 5
> drwx------    2 qmails   qmail        4096 Jan 29 16:56 6
> drwx------    2 qmails   qmail        4096 Jan 29 16:45 7
> drwx------    2 qmails   qmail        4096 Jan 29 16:51 8
> drwx------    2 qmails   qmail        4096 Jan 29 16:24 9
> 
> ./local/0:
> total 0
> 
> ./local/1:
> total 0
> 
> ./local/10:
> total 0
> 
> ./local/11:
> total 0
> 
> ./local/12:
> total 0
> 
> ./local/13:
> total 0
> 
> ./local/14:
> total 0
> 
> ./local/15:
> total 0
> 
> ./local/16:
> total 0
> 
> ./local/17:
> total 0
> 
> ./local/18:
> total 0
> 
> ./local/19:
> total 0
> 
> ./local/2:
> total 0
> 
> ./local/20:
> total 0
> 
> ./local/21:
> total 0
> 
> ./local/22:
> total 0
> 
> ./local/3:
> total 0
> 
> ./local/4:
> total 0
> 
> ./local/5:
> total 0
> 
> ./local/6:
> total 0
> 
> ./local/7:
> total 0
> 
> ./local/8:
> total 0
> 
> ./local/9:
> total 0
> 
> ./lock:
> total 4
> -rw-r-----    1 qmailq   qmail           0 Jan 25 01:46 monitor-msgq
> -rw-------    1 qmails   qmail           0 Jan 25 01:46 sendmutex
> -rw-r--r--    1 qmailr   qmail        1024 Jan 25 01:47 tcpto
> prw--w--w-    1 qmails   qmail           0 Jan 29 16:57 trigger
> 
> ./lost+found:
> total 0
> 
> ./mess:
> total 92
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 0
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 1
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:41 10
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:41 11
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:24 12
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:24 13
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 14:15 14
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 15
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 16
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 17
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 18
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 19
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 2
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 14:16 20
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 15:22 21
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 14:16 22
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:39 3
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:30 4
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:57 5
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:56 6
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:57 7
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:51 8
> drwxr-x---    2 qmailq   qmail        4096 Jan 29 16:24 9
> 
> ./mess/0:
> total 0
> 
> ./mess/1:
> total 0
> 
> ./mess/10:
> total 0
> 
> ./mess/11:
> total 0
> 
> ./mess/12:
> total 0
> 
> ./mess/13:
> total 0
> 
> ./mess/14:
> total 0
> 
> ./mess/15:
> total 0
> 
> ./mess/16:
> total 0
> 
> ./mess/17:
> total 0
> 
> ./mess/18:
> total 0
> 
> ./mess/19:
> total 0
> 
> ./mess/2:
> total 0
> 
> ./mess/20:
> total 0
> 
> ./mess/21:
> total 0
> 
> ./mess/22:
> total 0
> 
> ./mess/3:
> total 5452
> -rw-r--r--    1 qmailq   nofiles   5566537 Jan 29 16:58 13481
> 
> ./mess/4:
> total 38152
> -rw-r--r--    1 qmailq   nofiles  39020617 Jan 29 16:58 13482
> 
> ./mess/5:
> total 0
> 
> ./mess/6:
> total 0
> 
> ./mess/7:
> total 0
> 
> ./mess/8:
> total 0
> 
> ./mess/9:
> total 0
> 
> ./pid:
> total 0
> 
> ./remote:
> total 92
> drwx------    2 qmails   qmail        4096 Jan 29 11:29 0
> drwx------    2 qmails   qmail        4096 Jan 29 14:15 1
> drwx------    2 qmails   qmail        4096 Jan 29 11:58 10
> drwx------    2 qmails   qmail        4096 Jan 29 11:57 11
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 12
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 13
> drwx------    2 qmails   qmail        4096 Jan 29 14:15 14
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 15
> drwx------    2 qmails   qmail        4096 Jan 29 11:57 16
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 17
> drwx------    2 qmails   qmail        4096 Jan 29 09:31 18
> drwx------    2 qmails   qmail        4096 Jan 26 13:51 19
> drwx------    2 qmails   qmail        4096 Jan 29 14:15 2
> drwx------    2 qmails   qmail        4096 Jan 29 14:15 20
> drwx------    2 qmails   qmail        4096 Jan 29 15:22 21
> drwx------    2 qmails   qmail        4096 Jan 26 16:26 22
> drwx------    2 qmails   qmail        4096 Jan 29 16:23 3
> drwx------    2 qmails   qmail        4096 Jan 29 16:29 4
> drwx------    2 qmails   qmail        4096 Jan 29 16:55 5
> drwx------    2 qmails   qmail        4096 Jan 29 16:54 6
> drwx------    2 qmails   qmail        4096 Jan 29 16:57 7
> drwx------    2 qmails   qmail        4096 Jan 29 16:47 8
> drwx------    2 qmails   qmail        4096 Jan 28 18:11 9
> 
> ./remote/0:
> total 0
> 
> ./remote/1:
> total 0
> 
> ./remote/10:
> total 0
> 
> ./remote/11:
> total 0
> 
> ./remote/12:
> total 0
> 
> ./remote/13:
> total 0
> 
> ./remote/14:
> total 0
> 
> ./remote/15:
> total 0
> 
> ./remote/16:
> total 0
> 
> ./remote/17:
> total 0
> 
> ./remote/18:
> total 0
> 
> ./remote/19:
> total 0
> 
> ./remote/2:
> total 0
> 
> ./remote/20:
> total 0
> 
> ./remote/21:
> total 0
> 
> ./remote/22:
> total 0
> 
> ./remote/3:
> total 0
> 
> ./remote/4:
> total 0
> 
> ./remote/5:
> total 0
> 
> ./remote/6:
> total 0
> 
> ./remote/7:
> total 0
> 
> ./remote/8:
> total 0
> 
> ./remote/9:
> total 0
> 
> ./todo:
> total 0

Reply via email to