NagVis - Problems with session expiration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

NagVis - Problems with session expiration

Post by ssoliveira »

I created a dashboard in NagVis to display on my company's televisions.

After some time; the dashboard returns to the authentication screen (probably because the session has expired)

I performed tests creating a read-only account; and also using "Automatic Login"; but it’s still expired.

Is it possible to make dasboards accessible anonymously?

Or yet; pass some parameter in the url so that it is not necessary to authenticate?

https://my-xi/nagvis/frontend/nagvis-js ... TEST&xxxxx
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagVis - Problems with session expiration

Post by benjaminsmith »

Hello @ssoliveira

I would try increasing the Timeout Settings go to Admin --> Security --> Session Timeout. Set this to 0 for unlimited.
session.png
The other option is to try to use the Insecure Logins option, go to Admin --> Backward Integration --> Backend Login Settings

A few helpful posts on settings this up:
https://support.nagios.com/forum/viewto ... 16&t=54045
https://support.nagios.com/forum/viewto ... =6&t=32908
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

Re: NagVis - Problems with session expiration

Post by ssoliveira »

Hi Benjamin,

In the current Nagios version; the location is different "
" Admin> System Config> Backward Compatibility> Allow Insecure Logins "

I enabled the option "Enable insecure login for this user"; and generated a ticket on the desired user (nagiosreader) by clicking on "Generate new insecure ticket".

After; I performed a test accessing the main page with the user and ticket; and it worked.

Code: Select all

OK
https://omitted/nagiosxi/?username=nagiosreader&ticket=omitted

However; I can't access the dashboards with the ticket; the url returns the authentication page.

NON OK
https://omitted/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=100_PRINCIPAL&username=nagiosreader&ticket=omitted
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagVis - Problems with session expiration

Post by benjaminsmith »

Hi @ssoliveira,

NagVis is an open-source project application that is merged into Nagios XI in an iframe. After doing some testing on my end, it looks you cannot directly go the NagVis page using the backend tickets.

As a workaround you can log in using the backend tickets:

Code: Select all

http://192.168.0.232/nagiosxi/index.php?username=nagiosadmin&ticket=123
and then view the NagvVis page

Code: Select all

http://192.168.0.232/nagiosxi/index.php?username=nagiosadmin&ticket=123
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

Re: NagVis - Problems with session expiration

Post by ssoliveira »

Hi Benjamin,

There is some possibility that I can access a url inside nagios by passing the user and ticket parameters; + a parameter containing the desired url? so that after access it redirects the desired url;

Similar to what happens when we access a url without being authenticated; and after authenticating; it redirects the desired page.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagVis - Problems with session expiration

Post by benjaminsmith »

Hi @ssoliveira,

When you say inside Nagios, you are referring to specific map pages withing NagVis, is this correct?

Other than the workaround of authenticating and then going to the desired page, this may need an enhancement submitted as the Nagvis pages are handled differently.
I performed tests creating a read-only account, and also using "Automatic Login"; but it’s still expired.
When you increased the session timeout settings, are you still getting a session expired for the auto-login.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

Re: NagVis - Problems with session expiration

Post by ssoliveira »

Hi Benjamin,

Yes; the pages we are displaying on the televisions in the NoC rooms are NagVis maps; The computers that display the information on televisions are located in places that are difficult to access; So; when the best solution would be to have a way of passing some token that allows access to the maps without authentication.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagVis - Problems with session expiration

Post by benjaminsmith »

Hi @ssoliveira,

One more option, and not sure if this works for your environment or not, but you can add the NagVis map to a View, and display the Views in the NOC room.

https://assets.nagios.com/downloads/nag ... -Views.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked