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")
check_http --onredirect=critical fails
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check_http --onredirect=critical fails
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.
PS: As far as the spelling mistake I opened a bug report on a GitHub.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.