I am using Nagios to monitor our enterprise systems. We recently added an ASSP (Anti Spam SMTP Proxy) server to the mix. I am currently monitoring the host, host load, disk space, and Sendmail queue depth on the service.
How can i monitor that ASSP is running OK? What can I monitor in addition to what I am monitoring now to know the server is healthy?
Monitoring the Sendmail queue depth will alert if there are a large number of messages backed up in the queue.
Are there any Nagios plugins? (I haven't found any ASSP specific ones) Or any homegrown scripts anyone can pass along?
Well, for starters you can check whether the service is running at all. Define a command like this:
Obviously you will need the relevant plugin installed, I think this one is pretty much standard on most distros.
Then use it like this:
You will need to replace "assp" in the above with the actual name of the daemon running.
That's the simplest check. If you want to do more than that, you could obviously write your own shell script that tries to send a spammy email through the proxy and then checks that the message goes where it should go (depends on your system configuration). The nagios website has documentation on what sort of values this script needs to return to nagios. Most likely you will have to run that shell script on the server where the daemon runs (in order to be able to check the results). But you can use the check_by_ssh plugin to trigger it remotely and transfer the results back to your nagios server.
I suggest to monitor the overall result: Have a service send an email e.g. 15 min and check that it arrives. (or arrives not, if you send a spammy email).