Truong,
I suggest using Monit. Monit, is open-source, is in the RPMForge repository, and has an excellent community. You can configure Monit to do whatever you like when it detects that a service is down. It could send you an email when service outage occurs, or fire off a bash script, or insert a value into a database – whatever you want. Monit doesn’t rely on SNMP or an agent daemon. You can be up and running in (literally) minutes. Sincerely, -- Joseph Lundgren Systems Engineer Peak Internet, LLC joseph.lundg...@peakinternet.com From: Truong Duc Luong [mailto:luongductru...@gmail.com] Sent: Thursday, May 28, 2009 9:29 AM To: qmailtoaster-list@qmailtoaster.com Subject: RE: [qmailtoaster] Script for qmail monitoring Thank Dave, Your advice is very helpful. But, I need an independent script to monitor qmail services. The result of that script will be input data of another application which control the cluster. So I think script cannot be module as in Cacti, OpenNMS. Any help is appreciate. From: Dave Hallowell [mailto:d...@acbsco.com] Sent: Thursday, May 28, 2009 9:20 PM To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Script for qmail monitoring Hi Truong, may be more than what you need, but Nagios allows you to monitor any service on any machine and notify you when the service is down. You can get alerts via emails, text messages, etc. from nagios. You can set alerts when your filesystems reach a certain threshold. Plus a whole lot more. Nagios is not for the faint of heart though. Configuration can be a beast. There are other opensource products that do the same thing. For instance, OpenNMS or Cacti and there are probably many more. I would take a look at one of them. Dave Truong Duc Luong wrote: Thank Andreas, How can I use this script without webmin? Someone want to share more about this? -----Original Message----- From: Andreas Galatis [mailto:a...@unet.de] Sent: Thursday, May 28, 2009 1:50 PM To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Script for qmail monitoring Hi Truong, within webmin you have various scripts to monitor services. Here the first few lines: # mailserver-monitor.pl # Check a remote mail server by sending email at period intervals and waiting # for a response. This depends on the remote address being an autoreponder that # replies to the sending address with the same or derived subject line. Andreas Am Thursday 28 May 2009 06:46:05 schrieb Truong Duc Luong: Hi list, I have just installed qmail on my server. Now I need a script to monitor qmailtoaster services: If qmail services (SMTP, POP3, IMAP) down script return code 1, otherwise, return code 0. The script on qmailtoaster failover thread only check server up or down ( <http://wiki.qmailtoaster.com/index.php/QMT_Failover_replication_Setup> <http://wiki.qmailtoaster.com/index.php/QMT_Failover_replication_Setup> http://wiki.qmailtoaster.com/index.php/QMT_Failover_replication_Setup). Anyone can share this script or suggestion? Help me, please. Thank you very much. --------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! --------------------------------------------------------------------------------- Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com --------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! --------------------------------------------------------------------------------- Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com --------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! --------------------------------------------------------------------------------- Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com