check_http and warning / critical on string match?
Posted: Thu Apr 21, 2016 6:12 pm
I have a web page I'd like to check. It's a dashboard that displays a list of things and whether those things are "OK", "WARN", or "CRIT".
I'd like to create a check that looks at this page and goes into Warning if it sees "WARN" anywhere on the page and Critical if it sees "CRIT" anywhere on the page. I've found the --invert-regex parameter, but it looks like this only allows my checks to go Critical. I don't see a way to specify a match for both Warning and Critical. Can it be done?
I'd like to create a check that looks at this page and goes into Warning if it sees "WARN" anywhere on the page and Critical if it sees "CRIT" anywhere on the page. I've found the --invert-regex parameter, but it looks like this only allows my checks to go Critical. I don't see a way to specify a match for both Warning and Critical. Can it be done?