Page 1 of 1
Nagios Auto Log Out
Posted: Thu Dec 07, 2017 5:35 am
by Ayush Jain
HI Team,
Is it possible to stop auto logout of NagiosXi UI by any configuration means.
We have seen if we will not use Nagios UI for more than 1 hour or so it will stop updating services and it needs to refresh or login again to make it working.
We are using NagiosXi 5.4.10
Thanks,
Ayush Jain
Re: Nagios Auto Log Out
Posted: Thu Dec 07, 2017 3:57 pm
by kyang
When you say it stops updating services, is the system still running?
Re: Nagios Auto Log Out
Posted: Sat Dec 09, 2017 12:49 am
by Ayush Jain
Yeah, its like if i will not use NagiosXI UI for almost 1-2 hours it will not show recent checks, either i need to refresh the page or sometime require to login again.
Though in backend all checks are performing fine. its just for that UI session it will not show the updates.
Note: We have self signed ssl enabled for Nagiosxi.
Re: Nagios Auto Log Out
Posted: Mon Dec 11, 2017 12:01 pm
by kyang
If you look in the
/etc/php.ini file.
You will see this line.
Which is displayed in seconds, increasing this value keeps the session logged in for the amount of time you specify it for.
Then restart apache, once you make an edit and save changes.
I hope this helps!
Re: Nagios Auto Log Out
Posted: Wed Dec 13, 2017 7:19 am
by Ayush Jain
Thanks Kyang,
Can we disable it permanently ?
Means session will never timeout.
If not, What can be the maximum value session.gc_maxlifetime can hold ?
Regards,
Ayush Jain
Re: Nagios Auto Log Out
Posted: Wed Dec 13, 2017 1:51 pm
by npolovenko
@Ayush Jain, 31536000 will last you a whole year

You cannot set session.gc_maxlifetime to never expire as far as I know. Some users write their own Ajax script to reset the session every once in a while. And some other users report that you may achieve what you're looking for by setting session.gc_probability to 0. Anyway, 1 year of time should probably be enough?
Re: Nagios Auto Log Out
Posted: Thu Dec 14, 2017 2:16 am
by Ayush Jain
heheh... yeah 1 year will be more than enough.
Thanks
Regards,
Ayush Jain
Re: Nagios Auto Log Out
Posted: Thu Dec 14, 2017 12:32 pm
by kyang
Sounds good! I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!