WATCH-MIMEDEFANG(8)

πŸ“¦
version 3.7.1 Β· 2 versions
  • 3.7.1 Β· debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.84 Β· ubuntu jammy
, in debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– WATCH-MIMEDEFANG πŸ’– (section 8 of the System Manager's Manual, bestie)

okay so. watch-mimedefang β€” it's from the WATCH-MIMEDEFANG(8) page, it lives in the System Manager's Manual, and it is exactly what it sounds like: a little window that keeps an eye on mimedefang-multiplexor. πŸ¦‹


✨ NAME ✨

watch-mimedefang β€” keep an eye on mimedefang-multiplexor, no cap. πŸ‘€


🌸 SYNOPSIS 🌸

watch-mimedefang [options]

πŸŽ€ DESCRIPTION πŸŽ€

So watch-mimedefang is a Tk script that graphically displays the status of mimedefang-multiplexor(8). It's giving dashboard, it's giving main character.

⚠️ Heads up bestie: you need Tcl/Tk 8.0 or higher to run watch-mimedefang. No Tcl/Tk 8.0, no vibes. πŸ’€

🌈 DISPLAY 🌈

The display is split into three main areas, top to bottom, and I'm obsessed:

  • The graph display shows six graphs representing various statistics about the multiplexor. πŸ“ˆ
  • The control area shows the maximum number of workers, number of busy workers, and number of idle workers. The "Control Command" text entry lets you monitor remote MIMEDefang servers β€” peep "REMOTE MONITORING" for the details. πŸ‘‘

The "10s", "1m", "5m" and "10m" checkboxes let you 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. (RIP little window. 🫢)

  • The scale at the bottom lets you change the update interval β€” default is 500ms. Be aware that frequent updating may make watch-mimedefang consume a significant fraction of CPU time. πŸ”₯

πŸ‘‘ THE GRAPH AREA πŸ‘‘

The graph area contains six graphs:

  • Busy Workers β€” shows the number of busy workers each time the statistics are sampled.
  • Workers/scan β€” shows the average number of busy workers each time a message was scanned. The red plot is the average over the last ten seconds, the blue plot is the average over the last minute, and the green and yellow plots show the average over the last five and ten minutes, respectively. 🎨
  • Latency (ms) β€” shows the average time taken by each SCAN command over the last ten seconds, one minute, five minutes and ten minutes.
  • Messages/s β€” shows the average number of messages per second that were scanned.
  • Activations/s β€” shows the average number of new workers activated per second.
  • Reaps/s β€” shows the average number of workers that have terminated per second.

Okay now the reading the vibes part, and this is important:

  • 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. πŸ’…


πŸ¦‹ REMOTE MONITORING πŸ¦‹

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. Not the move, honestly.

A better method is to run watch-mimedefang on a desktop machine, but have it monitor the mail server with a remote session. slay.

The best way to establish a remote session is via SSH. For example, if you're 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. (yes, that's spelled "low-bandwith" in the original, we keep it verbatim bestie πŸ’–)


πŸ’œ COMMAND-LINE OPTIONS πŸ’œ

watch-mimedefang accepts the following command-line options:

  • -command cmd β€” Use cmd as the control command. You may need to quote cmd.
  • -interval msec β€” Set the update interval to msec milliseconds.
  • -10s flag β€” Enable the "10s" graph plot if flag is 1, or disable it if flag is 0.
  • -1m flag β€” Enable the "1m" graph plot if flag is 1, or disable it if flag is 0.
  • -5m flag β€” Enable the "5m" graph plot if flag is 1, or disable it if flag is 0.
  • -10m flag β€” Enable the "10m" graph plot if flag is 1, or disable it if flag is 0.
  • -title string β€” Add string to the title of the main window.
  • -help β€” Print usage information.

⭐ EXAMPLE ⭐

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"

🌸 AUTHOR 🌸

watch-mimedefang was written by Dianne Skoll <dfs@roaringpenguin.com>. πŸ’– The mimedefang home page is https://www.mimedefang.org/.


πŸ”‘ PERMISSIONS πŸ”‘

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're monitoring a remote machine), the SSH connection must be done as root or the MIMEDefang user. Periodt.


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie!! 🫢 this one came from the 4th Berkeley Distribution, dated 24 October 2002 β€” vintage but iconic, we love her. πŸ’…βœ¨ go watch those workers. 🐝

πŸ“¦ where this page comes from