haproxy-watch
v1.0.6
Published
haproxy watch
Downloads
2
Readme
Monitor Haproxy and websites under HAProxy and send alerts
Usage
$ 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-watch");
var haproxyWatch = new proxyWatch();
haproxyWatch.checkHealth({
watch:["lxrmp03","lxrmp04"],
dontWatch:["ramp_push/lxrmp10"],
auth:{username:"admin",password:"pass"},
smtp:{
host:"mailhost.yourhost.com",
port:25,from:"[email protected]",
to:"[email protected]",
subject:"Following services are down"
}
},function(err,result){
console.log(err,result);
});