使用webpagetest, 关闭agent后, 通过webpagetest -s <server> testers 查看agent状态, 默认1小时后agent才会变成“OFFLINE”。
可以修改文件common_lib.inc 中 function GetTesters($locationId, $includeOffline = false)
if (isset($location['elapsed']) && $location['elapsed'] < 60)
$location['status'] = 'OK';
else
$location['status'] = 'OFFLINE';
修改对应的数字即可。