Session Management

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

Session Management

Post by vijragha »

Hi,

I am trying to do the login by key in userid and password to portal and handled the session object. After successful login, it will redirect to another page. Same thing, I want to do using Nagios, Is it possible?

Thanks in advance.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Session Management

Post by agriffin »

Hi vijragha, can you please clarify your post a bit? I don't quite understand what you're asking.

What login method are you using? Please briefly describe the steps you're taking to log in.
vijragha
Posts: 7
Joined: Wed Aug 22, 2012 3:55 am

Re: Session Management and Redirection of another page

Post by vijragha »

Hi Support,

Thanks for your reply.

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

Re: Session Management

Post by vijragha »

Hi Support,

I am waiting for your reply.

Kinldy update me.

Thanks in advance
Locked