Nagvis missing options icingaweb2

Hi guys,

i did install the nagvis module as described here: https://dokuwiki.nausch.org/doku.php/centos:web_c7:icinga:nagvis

It seems to be working and looks like this currently:

However, i am missing options (top bar, options and actions), should look like this:


I think i am not an admin. I dont have the option to log out (it logs me in automatically). in icinga2 (configuration --> authentification --> roles) my account is set as admin.

How can I be an admin? i never had the chance to log in as admin/admin…

Here are my configs:

nagvis.ini.php in /usr/share/nagvis/etc :

nagvis.conf in /etc/httpd/conf.d :

# NagVis Apache2 sample configuration file
#
# #############################################################################
 
Alias /nagvis "/usr/share/nagvis/share"
 
<Directory "/usr/share/nagvis/share">
  Options FollowSymLinks
  AllowOverride None
  # default: Order allow,deny
  #          Allow from all
  Require IP 10.0
 
  # To enable Nagios basic auth on NagVis use the following options
  # Just uncomment it. Maybe you need to adjust the path to the
  # Auth user file.
  #
  # If you use the NagVis internal auth mechanism based on the web
  # for you won't need this.
  #
  #AuthName "NagVis Access"
  #AuthType Basic
  #AuthUserFile /usr/share/icinga2/etc/htpasswd.users
  #Require valid-user
 
  # With installed and enabled mod_rewrite there are several redirections
  # available to fix deprecated and/or wrong urls. None of those rules is
  # mandatory to get NagVis working.
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /nagvis
 
    # Use mod_rewrite for old url redirection even if there are php files which
    # redirect the queries itselfs. In some cases the mod_rewrite redirect
    # is better than the php redirect.
    #
    # Using the php redirect seems to be better in some cases where https/http servers
    # are mixed. For example in OMD setups where using apache own mode and https in the
    # frontend and http in the backend apache servers.
    #
    # Disabling this redirect by default in the hope that the php direct works better.
    #RewriteCond %{REQUEST_URI} ^/nagvis(/config\.php|/index\.php|/|)(\?.*|)$
    #RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/%1%2 [R=301,L]
 
    # Redirect old regular map links
    RewriteCond %{REQUEST_URI} ^/nagvis/frontend/(wui|nagvis-js)
    RewriteCond %{QUERY_STRING} map=(.*)
    RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=%1 [R=301,L]
 
    # Without map= param
    RewriteCond %{REQUEST_URI} ^/nagvis/frontend(/wui)?/?(index.php)?$
    RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php [R=301,L]
 
    # Redirect old rotation calls
    RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js
    RewriteCond %{QUERY_STRING} !mod
    RewriteCond %{QUERY_STRING} rotation=(.*)
    RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Rotation&act=view&show=%1 [R=301,L]
  </IfModule>
</Directory>  

I played around with Allow from all etc. but it did not change the appearance of my nagvis :frowning:
If i can provide more details please tell me, i really appreciate every hint!

Thanks in advance!

Hi,

the Icinga Web 2 module just embeds that as iframe, and takes care of the permission handling - that is why you won’t see a login screen. Not sure how old the linked wiki article is, but I have never seen this before.

In terms of the menu, this is a mouse-over IIRC. Maybe the permission mapping from the module to NagVis itself doesn’t work. Which NagVis version and module version are you using here?

Cheers,
Michael

Hi Michael!

Thanks for the quick answer. Is there a way/cmd to find out what version i am running? cant find it in a readme or license…
But I think I got the newest version. However, i just had a look at the official installation instructions http://docs.nagvis.org/1.5/en_US/installation_instructions.html . They are different to the tutorial i used (was one of the first one popping up on google for “icinga nagvis centos”)

I will try to reinstall with official instructions. Will report back on if the same issue appears.

Thanks again, cheers
Korbi