-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: WARN when 1 of a multi-backend proxy is down, CRIT when all down
Previously, check_haproxy would consider it a crit if any server was DOWN, change it so it only considers a full BACKEND or FRONTEND failure a crit ( Fixes #17. ) Have better active/backup role testing, to ignore backup servers that are down. ( Fixes #14 )
- Loading branch information
Showing
3 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,chkdown,lastchg,downtime,qlimit,pid,iid,sid,throttle,lbtot,tracked,type,rate,rate_lim,rate_max,check_status,check_code,check_duration,hrsp_1xx,hrsp_2xx,hrsp_3xx,hrsp_4xx,hrsp_5xx,hrsp_other,hanafail,req_rate,req_rate_max,req_tot,cli_abrt,srv_abrt,comp_in,comp_out,comp_byp,comp_rsp,lastsess,last_chk,last_agt,qtime,ctime,rtime,ttime, | ||
ubuntuusers-static,she,0,0,0,0,512,0,0,0,,0,,0,0,0,0,UP,1,1,0,19,5,559046,168,,1,18,1,,0,,2,0,,0,L4OK,,6,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-static,kanu,0,0,0,0,512,0,0,0,,0,,0,0,0,0,DOWN,1,1,0,1,1,4857267,4857267,,1,18,2,,0,,2,0,,0,L4TOUT,,2001,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-static,BACKEND,0,0,0,1,820,761,183203,108701,0,0,,0,0,0,0,UP,1,1,0,,5,559046,168,,1,18,0,,0,,1,0,,2,,,,0,0,761,0,0,0,,,,,0,0,0,0,0,0,-1,,,0,0,0,0, | ||
ubuntuusers-media,she,0,0,0,0,512,0,0,0,,0,,0,0,0,0,UP,1,1,0,18,4,559046,163,,1,20,1,,0,,2,0,,0,L4OK,,6,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-media,kanu,0,0,0,0,512,0,0,0,,0,,0,0,0,0,DOWN,1,1,0,1,1,4857266,4857266,,1,20,2,,0,,2,0,,0,L4TOUT,,2001,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-media,BACKEND,0,0,0,0,820,0,0,0,0,0,,0,0,0,0,UP,1,1,0,,4,559046,163,,1,20,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0,-1,,,0,0,0,0, | ||
ubuntuusers-legacy,she,0,0,0,0,512,0,0,0,,0,,0,0,0,0,UP,1,1,0,19,5,559046,167,,1,21,1,,0,,2,0,,0,L4OK,,6,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-legacy,kanu,0,0,0,0,512,0,0,0,,0,,0,0,0,0,DOWN,1,1,0,1,1,4857266,4857266,,1,21,2,,0,,2,0,,0,L4TOUT,,2001,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, | ||
ubuntuusers-legacy,BACKEND,0,0,0,0,820,0,0,0,0,0,,0,0,0,0,UP,1,1,0,,5,559046,167,,1,21,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0,-1,,,0,0,0,0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HAPROXY WARN: ubuntuusers-static kanu (act) DOWN sess=0/512(0%) smax=0; ubuntuusers-media kanu (act) DOWN sess=0/512(0%) smax=0; ubuntuusers-legacy kanu (act) DOWN sess=0/512(0%) smax=0 | ||
ubuntuusers-legacy BACKEND (act) UP sess=0/820(0%) smax=0 | ||
ubuntuusers-legacy kanu (act) DOWN sess=0/512(0%) smax=0 | ||
ubuntuusers-legacy she (act) UP sess=0/512(0%) smax=0 | ||
ubuntuusers-media BACKEND (act) UP sess=0/820(0%) smax=0 | ||
ubuntuusers-media kanu (act) DOWN sess=0/512(0%) smax=0 | ||
ubuntuusers-media she (act) UP sess=0/512(0%) smax=0 | ||
ubuntuusers-static BACKEND (act) UP sess=0/820(0%) smax=1 | ||
ubuntuusers-static kanu (act) DOWN sess=0/512(0%) smax=0 | ||
ubuntuusers-static she (act) UP sess=0/512(0%) smax=0 |