├── README.md └── img ├── urlooker1.png ├── urlooker2.png ├── urlooker3.png └── urlooker4.png /README.md: -------------------------------------------------------------------------------- 1 | ## [urlooker](https://github.com/710leo/urlooker) 2 | 监控web服务可用性及访问质量,采用go语言编写,易于安装和二次开发 3 | [English](https://github.com/710leo/urlooker)|[中文](https://github.com/710leo/urlooker/blob/master/readme_zh.md) 4 | 5 | ## Feature 6 | - 返回状态码检测 7 | - 页面响应时间检测 8 | - 页面关键词匹配检测 9 | - 自定义Header 10 | - GET、POST、PUT访问 11 | - 自定义POST BODY 12 | - 检测结果支持推送 nightingale、open-falcon 13 | 14 | ## Architecture 15 | ![Architecture](img/urlooker_arch.png) 16 | 17 | ## ScreenShot 18 | 19 | ![ScreenShot](img/urlooker1.png) 20 | ![ScreenShot](img/urlooker2.png) 21 | 22 | 23 | ## 常见问题 24 | - [wiki手册](https://github.com/710leo/urlooker/wiki) 25 | - [常见问题](https://github.com/710leo/urlooker/wiki/FAQ) 26 | - 初始用户名密码:admin/password 27 | 28 | ## Install 29 | #### docker 安装 30 | 31 | ```bash 32 | git clone https://github.com/710leo/urlooker.git 33 | cd urlooker 34 | docker build . 35 | docker volume create urlooker-vol 36 | docker run -p 1984:1984 -d --name urlooker --mount source=urlooker-vol,target=/var/lib/mysql --restart=always [CONTAINER ID] 37 | ``` 38 | 39 | #### 源码安装 40 | 41 | ```bash 42 | # 安装mysql 43 | yum install -y mysql-server 44 | wget https://raw.githubusercontent.com/710leo/urlooker/master/sql/schema.sql 45 | mysql -h 127.0.0.1 -u root -p < schema.sql 46 | 47 | # 安装组件 48 | curl https://raw.githubusercontent.com/710leo/urlooker/master/install.sh|bash 49 | cd $GOPATH/src/github.com/710leo/urlooker 50 | 51 | # 将[mysql root password]替换为mysql root 数据库密码 52 | sed -i 's/urlooker.pass/[mysql root password]/g' configs/web.yml 53 | 54 | ./control start all 55 | ``` 56 | 57 | 打开浏览器访问 http://127.0.0.1:1984 即可 58 | 59 | ## 答疑 60 | QQ群:556988374 61 | 62 | ## Thanks 63 | 一些功能参考了open-falcon,感谢 [UlricQin](http://ulricqin.com) & [laiwei](https://github.com/laiwei) 64 | -------------------------------------------------------------------------------- /img/urlooker1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/URLooker/wiki/55af41174e2c5ce6b296a5a5f6931812261180c7/img/urlooker1.png -------------------------------------------------------------------------------- /img/urlooker2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/URLooker/wiki/55af41174e2c5ce6b296a5a5f6931812261180c7/img/urlooker2.png -------------------------------------------------------------------------------- /img/urlooker3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/URLooker/wiki/55af41174e2c5ce6b296a5a5f6931812261180c7/img/urlooker3.png -------------------------------------------------------------------------------- /img/urlooker4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/URLooker/wiki/55af41174e2c5ce6b296a5a5f6931812261180c7/img/urlooker4.png --------------------------------------------------------------------------------