|
Worms, mail bombs, and users who send multiple megabyte Powerpoint files across the wire give Postfix administrators plenty of reasons to view their charges with a critical eye from time to time.
Mailgraph has been giving me useful information for a long while now [1]. It is time to turn the spotlight on this visualization tool for Postfix logfiles and to introduce the related Queuegraph project. Mailgraph [2] is a small footprint daemon that continuously reads the Postfix logfile and shovels the data it gathers into a round robin database (RRD). The front-end is a CGI script that generates a graph based on the RRD data. The program requires the ubiquitous Perl interpreter, RRDTool [3] for the database, and the File::Tail Perl module, which you can obtain from the CPAN archive. The heart of Mailgraph is a Perl script called mailgraph.pl; the daemon I referred to earlier. You can launch the daemon manually, but it makes more sense to add the init script provided by the distribution to run the daemon when you boot your machine. I use the following command to launch Mailgraph:
|
| Related Articles | |
|---|---|
| WRONG NUMBER! | The Sysadmin’s Daily Grind: Webalizer Xtended |
| SMOKED OUT! | The Sysadmin’s Daily Grind: Smokeping |
| NEGOTIATIONS | The Sysadmin’s Daily Grind: Ethtool |
| TARGET PRACTICE | The Sysadmin’s Daily Grind: Rsnapshot |
| RATTLING PORTS | The Sysadmin’s Daily Grind: Cancerbero |
| BOOT CAMP | The Sysadmin’s Daily Grind: Bootchart |
| Get your backstage pass to Linux! |
|---|
|
If you're ready for a deeper look, Linux Magazine gives you a view behind the scenes. Don't miss out on the tools, tutorials, and reviews you'll need to unlock the secrets of Linux. |
Comments