|
|
| mn :: comp :: tools :: The Nagios Network Monitoring System | |
Mailman is a great mailing list manager, but sometimes it gets wedged up. Annoyingly, it gets wedged quietly, at least on my system, so the only way to tell is to monitor its queue files for growth. I don't like that, so I figured out how to monitor it.
First, create a testing list in Mailman. Set it to non-public, no archives, drop everything from a nonmember. Give it two members: one sender set to nomail, one recipient. Tell it to silently drop mail from non-members. Make sure that you disable the option to include the list name on the subject line of every email, as this can confuse the Nagios plugin. Make sure your recipient has a real account on your box (shell set to /bin/false, of course).
Second, get the Nagios contrib plugin check_email_loop.pl and test it out from the commandline. Something like this will probably do it for you:
| check_email_loop.pl -from=sender@domain.tld -to=mailman-test-list@domain.tld -pophost=localhost -popuser=recipient -passwd=password -smtphost=localhost -statfile=/tmp/nagios-loop-check-status -lostw=1 lostc=2 -pendw=2 -pendc=3 |
Note that the plugin is time-sensitive, so if you run it ten times in ten seconds, it will basically consider everything to be in pending state. Take your time and it will work.
When that's working, edit checkcommands.cfg and put your check_email_loop.pl in as check_mailman, then add a
service to services.cfg.
That's all, folks!
|
Last modified: Oct 24, 2008 2:28 pm.
|
||
|
|