Nagios Auto Log Out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Nagios Auto Log Out

Post 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
kyang

Re: Nagios Auto Log Out

Post by kyang »

When you say it stops updating services, is the system still running?
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Nagios Auto Log Out

Post 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.
kyang

Re: Nagios Auto Log Out

Post by kyang »

If you look in the /etc/php.ini file.

You will see this line.

Code: Select all

session.gc_maxlifetime = 1440
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.

Code: Select all

service httpd restart
I hope this helps!
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Nagios Auto Log Out

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios Auto Log Out

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Nagios Auto Log Out

Post by Ayush Jain »

heheh... yeah 1 year will be more than enough.

Thanks :D

Regards,
Ayush Jain
kyang

Re: Nagios Auto Log Out

Post 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!
Locked