Page 1 of 1

Web Session Timeout

Posted: Fri May 15, 2015 6:33 am
by briannd81
Is there a way to adjust the setting so that session NEVER timeout? We require Nagios XI to run 24x7.

Re: Web Session Timeout

Posted: Fri May 15, 2015 11:21 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
But your browser will still probably force a timeout at some point. You may want to use a backend ticket id in for the url you use on your noc to force the login:

You can use the backend ticketing system to access any pgae of the XI server. First make a read only user (as this method will log this user in) in XI and then get the user's backend ticket. Go to Admin --> Manage Components --> Backend API URL --> click the Tools icon to right --> Choose the new read only user from the drop down --> Copy the last part of one of the urls listed. It should resemble:

Code: Select all

username=<readonlyuser>&ticket=<ticket id>
Now get the direct URL for the page you want to access by right clicking it's menu link and copying the link address. For example, for the top alert producer report, the url is:

Code: Select all

http://<xi server ip>/nagiosxi/reports/topalertproducers.php
Now append the user and ticket information ( don't forget the '?' ):

Code: Select all

http://<xi server ip>/nagiosxi/reports/topalertproducers.php?username=<readonlyuser>&ticket=<ticket id>
If there are already backend args, you can just append the ticket information to the url with and '&' :

Code: Select all

https://<xi server ip>nagiosxi/includes/components/xicore/status.php?show=hosts&username=<readonlyuser>&ticket=<ticket id>

Re: Web Session Timeout

Posted: Thu May 28, 2015 11:57 am
by briannd81
This works perfect! You can close this. Thanks.