Page 1 of 1

check_http --onredirect=critical fails

Posted: Thu Feb 01, 2018 4:38 pm
by FeastOrDiet
In an attempt to detect 301 redirection to cPanel's "SORRY" page, I tried to add "-f critical" (or "--onredirect=critical") to a check_http call. I'm always getting an error that the option is invalid. Specifically: "check_http: Invalid onredirect option - critical". I am not spotting why that is an invalid option.

Also, there is a spelling error in the usage message, where "critical" is spelled "critcal". (Yes, the option-processing code says "critical")

Re: check_http --onredirect=critical fails

Posted: Thu Feb 01, 2018 4:59 pm
by npolovenko
Hello, @FeastOrDiet. Both of the options you've tried seem right. What version of check_http plugin are you using? Can you share the whole command with us?

PS: As far as the spelling mistake I opened a bug report on a GitHub.