HowTo create users that don't log out?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
BWNet
Posts: 12
Joined: Mon Jul 09, 2012 1:39 am

HowTo create users that don't log out?

Post by BWNet »

Hi everybody,

we're deploying some wall monitors for different departments of our company that should access a nagios operations screen. The monitors are attached to small linux pcs (bananaPi) which run 24/7 and show the nagios operating screen within a browser. This setup works for like a week. After that time the browser only shows the NagiosXI welcome screen and we have to log in again.
Is there a way to create users within Nagios that don't time out after a certain amount of time? Or another way to keep the session alive?

Thanks in advance!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: HowTo create users that don't log out?

Post by abrist »

There is an entry in the "/etc/php.ini" that you can modify, in order to increase the session timeout. The default setting is 1440 seconds.

Code: Select all

session.gc_maxlifetime = 1440
After modifying, restart apache:

Code: Select all

service httpd restart
I don't believe this will entirely solve your issue as after a while, your browser will probably cause the session to time out.
You may try to include one of the Nagios XI pages as one of the views (if you haven't done this already). This may help extend the time before it times out.
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