check_http --onredirect=critical fails

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
FeastOrDiet
Posts: 2
Joined: Tue Jan 30, 2018 12:02 pm

check_http --onredirect=critical fails

Post 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")
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check_http --onredirect=critical fails

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked