在 HAProxy 下监控 Haproxy 和网站并发送警报
用法
$ npm install haproxy-watch var proxyWatch = require ( "haproxy-watch" ) ;
var haproxyWatch = new proxyWatch ( ) ;
haproxyWatch . checkHealth ( {
watch : [ "lxrmp03" , "lxrmp04" ] ,
auth : { username : "scloaduser" , password : "test" }
} , function ( err , result ) {
console . log ( err , result ) ;
} ) ;
var proxyWatch = require ( "haproxy-wat