Create a Rackspace Cloud Monitoring Check for Error database connection lost

if (metric['body_match'] regex 'Error establishing a database connection') {
  return new AlarmStatus(CRITICAL, 'Database connection lost, returning CRITICAL.');
}

Simples.

Leave a Reply

Your email address will not be published. Required fields are marked *