Time-out issue.

This support forum board is for questions relating to Nagios Fusion.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Time-out issue.

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Time-out issue.

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Time-out issue.

Post by TBT »

Thank you. Any recommendations for a 24/7 NOC environment where it would be best to stay logged in?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Time-out issue.

Post by sreinhardt »

Altering the same session.gc_maxlifetime value to 0 should keep until the browser is closed.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Time-out issue.

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Time-out issue.

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Time-out issue.

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Time-out issue.

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Time-out issue.

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Time-out issue.

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked