check_http - respond Critical if the website loads?
Posted: Tue Feb 24, 2026 12:17 pm
Basically trying to do the opposite of what check_http is used for. Respond OK if the site does not load, but respond Critical if the site responds.
So basically if I get this using check_http
I've tried messing with -d -s -e -P -T and --invert-regerx but I think the socket timeout is getting in the way.
Basically I'm looking for a failsafe alert if my ACLs for restricting access to a website get wiped out or disabled.
So basically if I get this using check_http
I want Nagios to return with OKconnect to address x.x.x.x and port 80: Connection refused
HTTP CRITICAL - Unable to open TCP socket
I've tried messing with -d -s -e -P -T and --invert-regerx but I think the socket timeout is getting in the way.
Basically I'm looking for a failsafe alert if my ACLs for restricting access to a website get wiped out or disabled.