Current time: 12-24-2024, 01:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] Munin :: Postfix Mailqueue
Author Message
Pionier Offline
Junior Member
*

Posts: 43
Joined: Sep 2009
Reputation: 0
Post: #1
[ERLEDIGT] Munin :: Postfix Mailqueue
Hallo,

Ich habe vor ein paar Tagen mal Munin installiert.
Nun ist mir aufgefallen, das das Postfix Mailqueue Plugin nicht richtig läuft.

[Image: postfixmailqueue.png]

Postfix bytes throughput und Mailaddresses on Server (hier aus dem Forum) laufen sauber.

Liegt das nun am ispCP, an Debian Lenny oder am Plugin selbst?

Auszug aus /etc/munin/plugin-conf.d/munin-node
Code:
...
[postfix_mailqueue]
user postfix
...
Das Plugin
Code:
#!/bin/sh
#
# Plugin to monitor postfix mail spools
#
# Contributed by Nicolai Langfeldt
#
# $Log$
# Revision 1.4  2004/05/20 19:02:36  jimmyo
# Set categories on a bunch of plugins
#
# Revision 1.3  2004/05/14 21:16:46  jimmyo
# "Upped" som plugins from contrib/manual to auto.
#
# Revision 1.2  2004/05/09 21:11:15  jimmyo
# New plugin (pm3users) and a bunch of patches from Jacques Caruso.
#
# Revision 1.1  2004/01/02 18:50:00  jimmyo
# Renamed occurrances of lrrd -> munin
#
# Revision 1.1.1.1  2004/01/02 15:18:07  jimmyo
# Import of LRRD CVS tree after renaming to Munin
#
# Revision 1.2  2003/11/26 14:55:52  jimmyo
# Added total summaries
#
# Revision 1.1  2003/11/26 09:10:28  jimmyo
# Plugin contribution by Nicolai Langfeldt
#
#
#%# family=auto
#%# capabilities=autoconf

# Can be set via environment, but default is fetched by postconf (if available,
# else /var/spool/postfix)
if which postconf > /dev/null ; then
    SPOOLDIR=${spooldir:-`postconf -h queue_directory`}
else
    SPOOLDIR=${spooldir:-/var/spool/postfix}
fi

# Postfix mqueue management: http://www.postfix.cs.uu.nl/queuing.html
# maildrop: Localy posted mail
# incoming: Processed local mail and received from network
# active: Mails being delivered (should be small)
# deferred: Stuck mails (that will be retried later)
# corrupt: Messages found to not be in correct format (shold be 0)
# hold: Recent addition, messages put on hold indefinitly - delete of free

case $1 in
    autoconf|detect)
    if [ -d $SPOOLDIR/ ] ; then
        echo yes
        exit 0
        else
        echo "no (spooldir not found)"
        exit 1
        fi;;
    config)
    cat <<'EOF'
graph_title Postfix Mailqueue
graph_vlabel Mails in queue
graph_category postfix
graph_total Total
active.label active
deferred.label deferred
maildrop.label maildrop
incoming.label incoming
corrupt.label corrupt
hold.label held
EOF
    exit 0;;
esac

cd $SPOOLDIR >/dev/null 2>/dev/null || {
     echo "# Cannot cd to $SPOOLDIR"
     exit 1
}

cat <<EOF
deferred.value `(test -d deferred && find deferred -type f ) | wc -l`
active.value `(test -d active && find active -type f ) | wc -l`
maildrop.value `(test -d maildrop && find maildrop -type f ) | wc -l`
incoming.value `(test -d incoming && find incoming -type f ) | wc -l`
corrupt.value `(test -d corrupt && find corrupt -type f ) | wc -l`
hold.value `( test -d hold && find hold -type f ) | wc -l`
EOF
/var/log/munin/munin-graph.log
Code:
Jun 18 21:40:04 - Starting munin-graph
Jun 18 21:40:04 - Processing domain: domain.de
Jun 18 21:40:04 - Graphed service : open_inodes (0.04 sec * 4)
Jun 18 21:40:04 - Graphed service : if_err_eth0 (0.06 sec * 4)
Jun 18 21:40:04 - Graphed service : entropy (0.04 sec * 4)
Jun 18 21:40:04 - Graphed service : irqstats (0.16 sec * 4)
Jun 18 21:40:04 - Graphed service : mysql_slowqueries (0.03 sec * 4)
Jun 18 21:40:04 - Graphed service : processes (0.03 sec * 4)
Jun 18 21:40:04 - Graphed service : postfix_mailqueue (0.04 sec * 4)
Jun 18 21:40:04 - Graphed service : if_eth0 (0.07 sec * 4)
Jun 18 21:40:05 - Graphed service : fail2ban_all_jails (0.08 sec * 4)
Jun 18 21:40:05 - Graphed service : ispcp_mailuser (0.06 sec * 4)
Jun 18 21:40:05 - Graphed service : mysql_threads (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : df (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : interrupts (0.04 sec * 4)
Jun 18 21:40:05 - Graphed service : swap (0.10 sec * 4)
Jun 18 21:40:05 - Graphed service : mysql_bytes (0.04 sec * 4)
Jun 18 21:40:05 - Graphed service : load (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : cpu (0.04 sec * 4)
Jun 18 21:40:05 - Graphed service : df_inode (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : postfix_mailvolume (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : mysql_queries (0.04 sec * 4)
Jun 18 21:40:05 - Graphed service : ispcp_vsites (0.05 sec * 4)
Jun 18 21:40:05 - Graphed service : forks (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : open_files (0.03 sec * 4)
Jun 18 21:40:05 - Graphed service : memory (0.06 sec * 4)
Jun 18 21:40:05 - Processed node: srv1.domain.de (1.19 sec)
Jun 18 21:40:05 - Processed domain: domain.de (1.19 sec)
Jun 18 21:40:05 - Munin-graph finished (1.20 sec)
/var/log/munin/munin-html.log
Code:
Jun 18 21:40:05 - Starting munin-html, checking lock
Jun 18 21:40:05 - processing domain: domain.de
Jun 18 21:40:05 - processing node: srv1.domain.de
Jun 18 21:40:05 - processing service: cpu
Jun 18 21:40:05 - processing service: df
Jun 18 21:40:05 - processing service: df_inode
Jun 18 21:40:05 - processing service: entropy
Jun 18 21:40:05 - processing service: fail2ban_all_jails
Jun 18 21:40:05 - processing service: forks
Jun 18 21:40:05 - processing service: if_err_eth0
Jun 18 21:40:05 - processing service: if_eth0
Jun 18 21:40:05 - processing service: interrupts
Jun 18 21:40:05 - processing service: irqstats
Jun 18 21:40:05 - processing service: ispcp_mailuser
Jun 18 21:40:05 - processing service: ispcp_vsites
Jun 18 21:40:05 - processing service: load
Jun 18 21:40:05 - processing service: memory
Jun 18 21:40:05 - processing service: mysql_bytes
Jun 18 21:40:05 - processing service: mysql_queries
Jun 18 21:40:05 - processing service: mysql_slowqueries
Jun 18 21:40:05 - processing service: mysql_threads
Jun 18 21:40:05 - processing service: open_files
Jun 18 21:40:05 - processing service: open_inodes
Jun 18 21:40:05 - processing service: postfix_mailqueue
Jun 18 21:40:05 - processing service: postfix_mailvolume
Jun 18 21:40:05 - processing service: processes
Jun 18 21:40:05 - processing service: swap
Jun 18 21:40:05 - munin-html finished
/var/log/munin/munin-limits.log
Code:
Jun 18 21:40:04 - Starting munin-limits, checking lock
Jun 18 21:40:04 - Created lock: /var/run/munin/munin-limits.lock
Jun 18 21:40:04 - processing domain: domain.de
Jun 18 21:40:04 - processing node: srv1.domain.de
Jun 18 21:40:04 - munin-limits finished (0.00 sec)
/var/log/munin/munin-node.log
Code:
2010/06/18-21:40:01 CONNECT TCP Peer: "127.0.0.1:51039" Local: "127.0.0.1:4949"
/var/log/munin/munin-update.log
Code:
Jun 18 21:40:01 - Starting munin-update
Jun 18 21:40:01 [24267] - Processing domain: domain.de
Jun 18 21:40:01 [24267] - Processing node: srv1.domain.de
Jun 18 21:40:01 [24320] - Configured service: srv1.domain.de -> open_inodes (0.04 sec)
Jun 18 21:40:01 [24320] - Configured service: srv1.domain.de -> if_err_eth0 (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> mysql_slowqueries (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> entropy (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> irqstats (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> processes (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> if_eth0 (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> postfix_mailqueue (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> fail2ban_all_jails (0.07 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> ispcp_mailuser (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> mysql_threads (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> df (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> interrupts (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> swap (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> mysql_bytes (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> load (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> cpu (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> df_inode (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> postfix_mailvolume (0.05 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> mysql_queries (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> ispcp_vsites (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> forks (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> open_files (0.04 sec)
Jun 18 21:40:02 [24320] - Configured service: srv1.domain.de -> memory (0.05 sec)
Jun 18 21:40:02 [24320] - Configured node: srv1.domain.de (1.13 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> open_inodes (0.04 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> if_err_eth0 (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> irqstats (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> entropy (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> mysql_slowqueries (0.04 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> postfix_mailqueue (0.06 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> if_eth0 (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> processes (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> fail2ban_all_jails (0.31 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> df (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> mysql_threads (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> ispcp_mailuser (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> interrupts (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> swap (0.00 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> mysql_bytes (0.05 sec)
Jun 18 21:40:03 [24320] - Fetched service: srv1.domain.de -> load (0.04 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> df_inode (0.05 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> cpu (0.05 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> postfix_mailvolume (0.05 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> mysql_queries (0.05 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> ispcp_vsites (0.05 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> open_files (0.04 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> forks (0.04 sec)
Jun 18 21:40:04 [24320] - Fetched service: srv1.domain.de -> memory (0.04 sec)
Jun 18 21:40:04 [24320] - Fetched node: srv1.domain.de (1.35 sec)
Jun 18 21:40:01 [24267] - Processed node: srv1.domain.de (0.00 sec)
Jun 18 21:40:01 [24267] - Processed domain: domain.de (0.00 sec)
Jun 18 21:40:04 [24267] - connection from domain.de -> srv1.domain.de (24320)
Jun 18 21:40:04 [24267] - connection from domain.de -> srv1.domain.de (24320) closed
Jun 18 21:40:04 [24267] - Munin-update finished (2.50 sec)
(This post was last modified: 06-23-2010 04:06 PM by BeNe.)
06-19-2010 06:01 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: [Munin] :: Postfix Mailqueue
Was genau geht denn nicht ?
Kann erstmal nichts erkennen.

Greez BeNe
06-21-2010 03:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #3
RE: [Munin] :: Postfix Mailqueue
Ist vielleicht einfach nur eine Mail in der Queue ?

Knut
06-21-2010 06:35 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: [Munin] :: Postfix Mailqueue
Ja, aktuelle ist nach der Grafik eine e-Mail in der Mailqueue.
Erstmal nix falsch daran.

Jetzt warten wir mal auf Pionier ab was genau das Problem ist.

Greez BeNe
06-21-2010 06:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pionier Offline
Junior Member
*

Posts: 43
Joined: Sep 2009
Reputation: 0
Post: #5
RE: [Munin] :: Postfix Mailqueue
Wenn ich mich nicht täusche, dann wird mir doch im Mailqueue alles angezeigt, was über Port 25 geht.
Wenn ich das nun richtig verstanden habe, sind das alle Mails, die ich aus meinem Postfach verschicke und die Mails, die von außerhalb kommen und dann an Courier verteilt werden. Sollte das so sein, dann wird bei mir zu wenig angezeigt.
Liege ich falsch, könnte die Anzeige doch richtig sein.
06-22-2010 04:10 AM
Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #6
RE: [Munin] :: Postfix Mailqueue
Der Graph zeigt nur den Füllstatus zum Zeitpunkt der Messung an.
Wenn Du auf der Konsole mailq eingibst siehst Du die Mail und wahrscheinlich auch den Grund warum diese nicht versendert wurde.


Knut
06-22-2010 01:33 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #7
RE: [Munin] :: Postfix Mailqueue
@Pionier

Also so wie Du meinst ist es nicht!
Die Mailqueue zeigt wie Knut es sagt alles an was im spooler hängt.
Sozusagen was gerade zur sekunde ausgeliefert wird oder eben im spooler hängt weil Postgrey auf dem Empfängerserver läuft, die Domain falsch ist usw.
Der Grund wie Knut es sagt wird ebenfalls immer angezeigt.

Wenn Du eine Übersicht über den Mailtraffic haben willst brauchst Du ein plugin für Postfix. Gibt es ebenfalls für Munin und tut sein Dienst ohne probleme. Hier läuft allso alles richtig und so wie es soll Wink

Greez BeNe
06-22-2010 03:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pionier Offline
Junior Member
*

Posts: 43
Joined: Sep 2009
Reputation: 0
Post: #8
RE: [Munin] :: Postfix Mailqueue
Vielen Dank für die Aufklärung.
06-23-2010 06:05 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)