Page Redirection

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
vijragha
Posts: 7
Joined: Wed Aug 22, 2012 3:55 am

Page Redirection

Post by vijragha »

Hi Support,

I want to use check_http

1: From Nagios call URL with parameter (eg: http://domain.com/index.jsp)
2: index.jsp: This page will do the redirect to http://domain.com/xyz.jsp. (response.sendRedirect("http://domain.com/xyz.jsp"))

Contents of index.jsp
-------------------------------------------------------
<html>
<%
System.out.println("In index.jsp");
%>
<script type="text/javascript">
document.location.href="http://domain.com/xyz.jsp";
</script>
</html>

Contents of xyz.jsp
-------------------------------------------------------
<html>
<%
System.out.println("In xyz.jsp");
%>
</html>

-------------------------------

I am able to see index.jsp is getting executed based on log message ("In index.jsp").
But I unable to see xyz.jsp is getting executed. Because it is not printing message "In xyz.jsp"
Hope I describe clearly.

Thanks
Locked