首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 通过HTTP服务自动监测安心。

通过HTTP服务自动监测安心。

  • 资源大小:22.00 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: http ruby monitoring uptime

资 源 简 介

Opticon is a no-nonsense utility for monitoring HTTP-based services (i.e. websites). When triggered, Opticon connects to a list of URIs and checks to make sure that they pass some arbitrary test, such as responding with a non-error HTTP response code, or returning content that matches a regular expression. In case of failure, Opticon generates emails that can be forwarded to your mailbox, blackberry, cellphone, etc. To illustrate how Opticon works, here"s a very simple test you might write: "http://www.yahoo.com/".test do # check that the HTTP response code is in the 200 range test(:responds_with_code, :success) # check that the page includes the string "Privacy Policy" test(:response_body_contains, "Privacy Policy") end An example of a full-fledged Opticon script (including an example showing how to set up an email notifier) can be found here: http://opticon.googlecode.com/svn/trunk/examples/sample.rb<

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • Dream 41分钟前 成为了本站会员

  • lsj2309 6小时前 成为了本站会员

  • 杨波 1天前 成为了本站会员

  • ZS 1天前 成为了本站会员

  • . 2天前 成为了本站会员

  • 奋斗 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 一天不玩浑身难受 3天前 成为了本站会员

  • Aloha 3天前 成为了本站会员

  • 嘻嘻嘻 3天前 成为了本站会员