1.0.6 • Published 10 years ago

haproxy-watch v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

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:"me@mycompany.com",
        to:"support@mycompany.com",
        subject:"Following services are down"
    }
},function(err,result){
    console.log(err,result);
});