Postfix Mail Graph monitoring with Cacti

Ciao! E’ la prima volta che ti vedo qua, se vuoi seguirmi sottoscrivi il feed RSS.
If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Se avete bisogno di graficare su Cacti l’andamento di un server mail che usa Postfix come MTA, questi semplici step vi saranno di particolare aiuto:

mailgraph.pl scrive dei semplici file di testo con i contatori relativi alla tipologi di traffico mail nella directory /var/tmp:

# ls -l /var/tmp

-rw-r--r-- 1 root root 3 2008-03-06 10:25 mailbounced
-rw-r–r– 1 root root 3 2008-03-06 10:25 mailrecv
-rw-r–r– 1 root root 3 2008-03-06 10:25 mailrejected
-rw-r–r– 1 root root 2 2008-03-06 10:25 mailsent
-rw-r–r– 1 root root 2 2008-03-06 10:25 mailspam
-rw-r–r– 1 root root 2 2008-03-06 10:25 mailvirus

exec .1.3.6.1.4.1.2021.50 mailcount_sent /bin/cat /var/tmp/mailsent
exec .1.3.6.1.4.1.2021.51 mailcount_recv /bin/cat /var/tmp/mailrecv
exec .1.3.6.1.4.1.2021.52 mailcount_reject /bin/cat /var/tmp/mailrejected
exec .1.3.6.1.4.1.2021.53 mailcount_bounced /bin/cat /var/tmp/mailbounced
exec .1.3.6.1.4.1.2021.54 mailcount_spam /bin/cat /var/tmp/mailspam
exec .1.3.6.1.4.1.2021.55 mailcount_virus /bin/cat /var/tmp/mailvirus

Per approfondire:

Postfix Mail Graph monitoring with Cacti

 

Tags: , , , , , , , , , , ,

Post simili:

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

2 Responses to “Postfix Mail Graph monitoring with Cacti”
  1. sarmigezetusa
    22:11 on March 7th, 2008

    Um.
    I blog dei tecnocrati, che ti dicono che sei lì per la prima volta, mi inquietano.
    Vorrei farti una domanda piuttosto ingenua. Vorrei sapere se, nel lasciare splinder (per motivi non tecnici) ho fatto una buona scelta tecnica a prendere wordpress (ho scelto a caso) rispetto ad altre piattaforme tipo blogspot, e se sì (o se no) perchè.

    Grazie :)

  2. redivide
    04:07 on March 9th, 2008

    Always wondered what happens in the catch all mailbox but was afraid to look. :D

    Thanks, I’ll try to get this working.

Leave a comment

(required)

(required)



Comments links could be nofollow free.

Categories