Page 1 of 1

NagVis/NagiosXI interface

Posted: Thu Jun 28, 2012 12:19 am
by Fred Kroeger
I've created a map in NagVis and am having problems when I click on the icon to display that HostGroup in Nagios.
When I click on the Nagvis icon, I can see that it has been redirected Ok to Nagios -
http://my-host/nagiosxi/includes/compon ... oup%20name
However all that is displayed is "Your session has timed out."

Note: I am accessing the NagVis Map direct using the guest login account and not from the Nagvis link in Nagios. ie" I don't to have people traverse through Nagios and all the Nagvis maps to display the one that they want.
This is my entry in Nagvis.conf which works because it allows the guest user to start nagvis.

Code: Select all

  AuthName "NagVis Access"
  AuthType Basic
  AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
  Require valid-user
I am accessing the Nagvis page direct by: http://my-host/nagvis/frontend/nagvis-j ... how=My_Map


Is there someting I need to setup in Nagios to allow these sessions to start up?

Regards... Fred Kroeger

Re: NagVis/NagiosXI interface

Posted: Thu Jun 28, 2012 9:16 am
by mguthrie
You'd have to either enable auto-login for the guest account, or you can pass the username and backend ticket in the URL to launch the XI session from that URL. The backend API URL component can give you the backend ticket for that user. So the URL would need to be something like:

http://my-host/nagiosxi/includes/compon ... icket=hash

Re: NagVis/NagiosXI interface

Posted: Thu Jun 28, 2012 8:05 pm
by Fred Kroeger
I do have Auto Login enabled for the guest user, however when the session times out it doesn't give you a link to auto login again.

I think the issue here is that I am connecting directly to Nagvis and in turn , it is connecting to Nagios whn you select an Icon. So I really can't use that API interface as it is coming from inside Nagvis.

Basically what I'm trying to achieve is that I'm using a NAgvis Map in an Ops Centre - that is why I'm calling it direct - I don't want the Ops staff to run up Nagios, then login then , select Nagvis, then login, then select the map they need. Hovering over the Nagvis icons works fine in that it dispalys a table of the hosts/services. The problem is when I click on the icon and it actually tries to open the Nagios screen for that hostgroup. It doesn't have the logout link at the top of the screen to force me back to the login screen and run autologin again.

Hope this makes sense - or if you have any other suggestions on how we can achieve this display in the Ops Centre.

thanks... Fred

Re: NagVis/NagiosXI interface

Posted: Fri Jun 29, 2012 4:03 pm
by scottwilkerson
This is currently not available, however you can add it to a feature request on the XI tracker to be implemented in the future.

http://tracker.nagios.com/