I am building a ruby application that grabs emails sent to a server and logs them to a database. Right now I don't have is a way to fully test the (Email -> Ruby -> Database) stack for downtime. I am using services that test the server the ruby is running on for downtime, and i'm using monit to make sure that the ruby daemon doesn't go down for too long. Besides manually checking periodically, are there any services I can use to verify:
1) Is my postfix still up and receiving/sending mail
2) Are the messages still making it from my daemon to the database
If not, are there any best practices for monitoring and sending alerts for either of those two scenarios, or any home brew methods that could work reliably?