Git Product home page Git Product logo

checkup's Introduction

功能:自动检测你指定的IP组,当检测到你指定的失败率后会执行插入iptables,恢复时删除iptables 配置keepalived的检测机制使用

使用

## 启动 要root权限
cd 到checkup目录下
./control start
## 查看状态
./control status
## 其它说明
./control build|pack|start|stop|restart|status|tail|version

配置文件cfg.json说明

{
	"checkup":{
		"hostName":"自定义名称", //自定义运行设备的名称
		"interval":10, //检测周期
		"pingTimeout":300, //检测单个节点时超时时长
		"pingRetry":4, //ping检测重复次数
		"fastPingMode": false,//是否开启false模式
		"failureRate":0.8,
		"failsInterval":2,//当连续的interval失败次数到到failsInterval且failureRate达到设定值时就会执行操作
		"to":"rh.wang|jzh.lin",//执行操作后微信消息发送给谁
		"postUrl": "http://192.168.99.16:8000", //发送微信报警的API
		"ipRange":[ //要检测的节点IP列表,可以上多个哦
			"192.168.99.233",
			"114.114.114.114",
			"218.107.49.162",
			"121.33.191.157",
			"221.5.88.88"
 		]

 	}
}

checkup's People

Contributors

hel2o avatar

Watchers

 avatar

Forkers

bobyou

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.