Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check Http Redirect

Rating
4 votes
Favoured:
0
Current Version
1.0
Last Release Date
2009-09-18
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
99667
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios check_http_redirect

retrieve an http/s url and checks its header for a given redirects

if the redirect exists and equal to the redirect you entered then exits with OK, otherwise exits with WARNING (if not equal) or CRITICAL ( if doesn't exist)
Nagios check_http_redirect

retrieve an http/s url and checks its header for a given redirects

if the redirect exists and equal to the redirect you entered then exits with OK, otherwise exits with WARNING (if not equal) or CRITICAL ( if doesn't exist)

Syntax:

Command:

define command{
command_name check_redirect
command_line $USER1$/check_http_redirect -U $ARG1$ -R $ARG2$
}

Service:

define service{
*********************
check_command check_redirect!»http://url-from/»!»http://url-to/»
*********************
}
Reviews (3)
byrkabalin, September 21, 2012
The modified version with virtual host support is available at https://github.com/kabalin/check_http_redirect

With optional -H parameter it is possible to specify 'Host' request header attribute. This is particulary useful when webserver is behind loadbalancer and hosting several virtual hosts at the same address. If particular virtual host on the webserver redirection check is required, specify the hostname or IP in the -U parameter and the virtual host using -H parameter:

check_http_redirect.pl -U http://webserver1.com -H somesite.com -R https://somesite.com
bybbuchalter, February 24, 2012
I've updated and revised this script to support multiple redirects. Please see https://github.com/bbuchalter/check_http_redirect
bycparapat, December 2, 2011
Hi,
It is not working properly on me.
When I run the script with perl, I got below error :

Can't locate LWP/UserAgent.pm in @INC ...

I do to install libwww-perl, and I don't find that error anymore when I run the script with perl.

But, when I follow this manuals, the 'Status Information' is shown as 'null' on my Nagios browser.

How did you do that actually ?
If possible, please help with a good manuals..

Thanks in advance.