Revised monitoring and fixed secure.php.