check_http --onredirect=critical fails

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_http --onredirect=critical fails

Postby FeastOrDiet » Thu Feb 01, 2018 4:38 pm

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")
Posts: 2
Joined: Tue Jan 30, 2018 12:02 pm

Re: check_http --onredirect=critical fails

Postby npolovenko » Thu Feb 01, 2018 4:59 pm

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.
User avatar
Support Tech
Posts: 3318
Joined: Mon May 15, 2017 5:00 pm

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests