update monitor.php