Page 1 of 1

HowTo create users that don't log out?

Posted: Tue Feb 24, 2015 2:27 am
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!

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

Posted: Tue Feb 24, 2015 10:22 am
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.