Web Session Timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Web Session Timeout

Post by briannd81 »

Is there a way to adjust the setting so that session NEVER timeout? We require Nagios XI to run 24x7.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web Session Timeout

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
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>
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.
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Re: Web Session Timeout

Post by briannd81 »

This works perfect! You can close this. Thanks.
Locked