Sometimes, due to database problems, my Drupal sites go offline. The database server always says it is online when I face these problems. I am trying to solve the problems causing the database errors by one by, but in any case it will be good to be notified by mail in case of Drupal's database connectivity problems.
There are some solutions about editing maintenance mode template file to add email functions to these template. I tried this solution and I got 1000+ e-mails, therefore I got a warning from my host. I am searching a way to make these e-mail function feasible (i.e. once in 15 minutes or 30 minutes). Are there any such possibilities?
If this feature is needed to be developed, I can surely code but I am not very well in Drupal coding. Any hints and tips for this topic is also welcomed.
Note: I am using Drupal 6.