Script de monitor Drupal simples (evite bootstrap completo, verifique a disponibilidade do banco de dados e do cache)

<?php// OH HAI THARE// NO CACH PLZheader( “Cache-Control: no-cache, max-age=0, must-revalidate”);// SET ERROR HANDLRset_error_handler(‘monitor_handle_error’);// CAN HAS DRUPAL BOOTSTRAP?define(‘DRUPAL_ROOT’, __DIR__);chdir(DRUPAL_ROOT);require_once ‘includes/bootstrap.inc’;try { // CAN HAS CONFIGURSHION? drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); // RESET ERROR HANDLR …

Continuar lendo