Page 1 of 2

Time-out issue.

Posted: Mon May 13, 2013 1:16 pm
by TBT
In Nagios Fusion 2012R1.5, I'm using session based authentication on all Nagios XI fused servers.

I've noticed if Fusion is left open in a browser for more than an hour and then you try clicking on a monitored element, you'll get the login screen for that Nagios XI server.
I assume this is attributed to a time-out, as normal behavior would be to have the session just pass-through. Anyone else experience this or know how to keep alive?

Re: Time-out issue.

Posted: Mon May 13, 2013 4:15 pm
by abrist
There is a setting you can modify in /etc/php.ini

Code: Select all

session.gc_maxlifetime = 10800
This is an amount of time in seconds (10800 seconds = 3 hours), set as you wish.
Then restart httpd:

Code: Select all

service httpd restart

Re: Time-out issue.

Posted: Tue May 14, 2013 7:15 am
by TBT
Thank you. Any recommendations for a 24/7 NOC environment where it would be best to stay logged in?

Re: Time-out issue.

Posted: Tue May 14, 2013 9:45 am
by sreinhardt
Altering the same session.gc_maxlifetime value to 0 should keep until the browser is closed.

Re: Time-out issue.

Posted: Tue May 14, 2013 10:46 am
by TBT
sreinhardt wrote:Altering the same session.gc_maxlifetime value to 0 should keep until the browser is closed.
This is to be done on the Fusion server, XI servers or all?

Re: Time-out issue.

Posted: Tue May 14, 2013 12:49 pm
by sreinhardt
You could certainly do both, however if I recall correctly fusion uses the session from XI to passthrough without authentication when you click a link. So just XI systems should be enough. However the same principal of locking you out of fusion may happen at some point.

Re: Time-out issue.

Posted: Wed May 15, 2013 7:11 am
by TBT
The solution suggested did not work. Applied to Fusion and all XI servers.

After leaving Fusion open for 12+ hours in tactical overview, clicking on any XI server still brings up the corresponding login page. Any other ideas?

Re: Time-out issue.

Posted: Wed May 15, 2013 11:40 am
by abrist
As long as the server passwords in "server credentials" are correct, you should never have to log in to an XI box when clicking through from fusion. What versions of XI servers are you running?

Re: Time-out issue.

Posted: Wed May 15, 2013 11:55 am
by TBT
You're right, but after an hour the experience is as described above.

Nagios Fusion 2012R1.5
Nagios XI 2012R1.8
abrist wrote:As long as the server passwords in "server credentials" are correct, you should never have to log in to an XI box when clicking through from fusion. What versions of XI servers are you running?

Re: Time-out issue.

Posted: Wed May 15, 2013 2:14 pm
by abrist
TBT wrote:You're right, but after an hour the experience is as described above.
You are right as well. After an hour, the XI links will take me to a login page. Though curiously, if I click once on some other link somewhere in the fusion interface like configure etc. and then click one of the XI links, it works. Seems like a fusion session-related bug. Are you able to reproduce/experience this behavior on your fusion box as well?