Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.77 KB

urlooker.md

File metadata and controls

60 lines (46 loc) · 1.77 KB

监控web服务可用性及访问质量,采用go语言编写,易于安装和二次开发

Feature

  • 返回状态码检测
  • 页面响应时间检测
  • 页面关键词匹配检测
  • 自定义Header
  • GET、POST、PUT访问
  • 自定义POST BODY
  • 检测结果支持推送 open-falcon

Architecture

Architecture

ScreenShot

ScreenShot ScreenShot

常见问题

Install

docker 安装

git clone https://github.com/710leo/urlooker.git
cd urlooker
docker build .
docker volume create urlooker-vol
# [CONTAINER ID] 在实际操作中需要替换为实际的镜像的ID
docker run -p 1984:1984 -d --name urlooker --mount source=urlooker-vol,target=/var/lib/mysql --restart=always [CONTAINER ID]

源码安装

# 安装mysql
yum install -y mysql-server
wget https://raw.githubusercontent.com/710leo/urlooker/master/sql/schema.sql
mysql -h 127.0.0.1 -u root -p < schema.sql

# 安装组件
curl https://raw.githubusercontent.com/710leo/urlooker/master/install.sh|bash
cd $GOPATH/src/github.com/710leo/urlooker

# 将[mysql root password]替换为mysql root 数据库密码
sed -i 's/urlooker.pass/[mysql root password]/g' configs/web.yml

./control start all

打开浏览器访问 http://127.0.0.1:1984 即可

答疑

QQ群:556988374