如何监控链接状态?
我们有超过 10,000 个由客户添加的网站链接。任何人都可以推荐一种方法来监视这些链接的状态,以便我可以跟踪它们是否在线。我运行每日脚本会更好吗?或者还有其他方法可以做到这一点吗?
我正在寻找一种解决方案,当这些链接中的任何一个出现故障时,该解决方案都会向我发出警报,并且最好在我们链接到的网站出现故障时更新数据库。
我们使用经典的 ASP。
We have over 10,000 links to websites added by clients. Can anyone recommend an approach to monitor the status of these links so I can keep track of if they are online. Would I be better off running a daily script? Or is there another way to do this?
I would be looking for a solution that would alert me when any of these links were down, and ideally update the database if the site we were linking out to was down.
We are using classic ASP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为每天(甚至每小时)的脚本在每个站点上执行 http head 请求,并在返回不是 200 OK 时对其进行标记,这将是最好的方法。您甚至可以将其作为服务器上的后台进程,每当查看该链接时就会触发该进程。
I think a daily (or even hourly) script that does an http head request on each site, and flags them if the return is not 200 OK would be the best way to do it. You could even have it be a background process on the server that fires whenever that link is viewed.
您可以使用 http://aremysitesup.com/ 等专用服务,该服务监控网站并通过电子邮件通知停机情况/短信和其他媒体。检查他们的网站以获取更多信息。
You could use dedicated service like http://aremysitesup.com/, which monitors web sites and notifies about downtime via email/sms and other media. Check their site for more info.