WATCH-MIMEDEFANG(8) | System Manager's Manual | WATCH-MIMEDEFANG(8) |
watch-mimedefang - Keep an eye on mimedefang-multiplexor
watch-mimedefang [options]
watch-mimedefang is a Tk script which graphically displays the status of mimedefang-multiplexor(8). Note that Tcl/Tk 8.0 or higher is required to run watch-mimedefang.
watch-mimedefang's display is divided into three main areas, from top to bottom:
The "10s", "1m", "5m" and "10m" checkboxes allow you to enable or disable the graphing of statistics averaged over the last 10 seconds, 1 minute, 5 minutes and 10 minutes.
The "Reread Filters" button forces the multiplexor to reread filter rules. The "Quit" button terminates watch-mimedefang.
The graph area contains six graphs:
If the Activations and Reaps increase significantly, it could indicate heavy load, or an error causing filters to terminate abnormally.
If only Activations increase, then it probably indicates a sudden increase in e-mail volume.
If only Reaps increase, then it probably indicates a quiet time just after a period of heavy mail volume.
You can enable or disable the ten second, one minute, five minute or ten minute plots by clicking on the "10s", "1m", "5m" or "10m" checkbox.
Running watch-mimedefang on your actual mail server poses two problems: You need Tcl/Tk and the X client libraries installed, and the CPU consumption of watch-mimedefang can be considerable.
A better method is to run watch-mimedefang on a desktop machine, but have it monitor the mail server with a remote session.
The best way to establish a remote session is via SSH. For example, if you are running MIMEDefang on "mail.mydomain.net", you can type the following into the Control Command entry box and press enter:
ssh root@mail.mydomain.net md-mx-ctrl
You must have a public/private key for the target machine and you must be running ssh-agent or equivalent; you cannot use an ssh command that requires entry of a password or passphrase.
Assuming your SSH setup is correct, watch-mimedefang will open an SSH connection to mail.mydomain.net and exchange low-bandwith information over that session for monitoring purposes.
watch-mimedefang accepts the following command-line options:
As an example, to monitor MIMEDefang on the machine "mail.mydomain.net" updating once a second, with the 5m and 10m plots turned off, use:
watch-mimedefang -command 'ssh root@mail.mydomain.net md-mx-ctrl' \
-interval 1000 -5m 0 -10m 0 -title "mail"
watch-mimedefang was written by Dianne Skoll <dfs@roaringpenguin.com>. The mimedefang home page is http://www.mimedefang.org/.
watch-mimedefang uses md-mx-ctrl; therefore, it probably needs to be run as root or the same user as mimedefang-multiplexor, or (if you are monitoring a remote machine), the SSH connection must be done as root or the MIMEDefang user.
mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), md-mx-ctrl(8), watch-multiple-mimedefangs(8)
24 October 2002 | 4th Berkeley Distribution |