Web Session Timeout
Web Session Timeout
Is there a way to adjust the setting so that session NEVER timeout? We require Nagios XI to run 24x7.
Re: Web Session Timeout
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.
After modifying, restart apache:
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:
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:
Now append the user and ticket information ( don't forget the '?' ):
If there are already backend args, you can just append the ticket information to the url with and '&' :
Code: Select all
session.gc_maxlifetime = 1440Code: Select all
service httpd restartYou 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>Code: Select all
http://<xi server ip>/nagiosxi/reports/topalertproducers.phpCode: Select all
http://<xi server ip>/nagiosxi/reports/topalertproducers.php?username=<readonlyuser>&ticket=<ticket id>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.
"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.
Re: Web Session Timeout
This works perfect! You can close this. Thanks.