# Nagvis missing options icingaweb2

**URL:** <https://community.icinga.com/t/nagvis-missing-options-icingaweb2/656>\
**Category:** Icinga Web Modules\
**Tags:** nagvis, icingaweb2\
**Created:** [March 20, 2019, 2:49pm UTC](https://community.icinga.com/t/nagvis-missing-options-icingaweb2/656 "2019-03-20T14:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RsMonitor](https://community.icinga.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@RsMonitor](https://community.icinga.com/u/RsMonitor)\
**Post date:** [March 20, 2019, 2:49pm UTC](https://community.icinga.com/t/nagvis-missing-options-icingaweb2/656/1 "2019-03-20T14:49:03Z")

</div>

Hi guys,

i did install the nagvis module as described here: [https://dokuwiki.nausch.org/doku.php/centos:web\_c7:icinga:nagvis](https://dokuwiki.nausch.org/doku.php/centos:web_c7:icinga:nagvis)

It seems to be working and looks like this currently:

 ![image](https://community.icinga.com/uploads/default/original/1X/b5c17bfc85040efd22385d1c008c9320f7af855c.png)

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

 ![image](https://community.icinga.com/uploads/default/original/1X/bb8a265b256f31447f376d526365535656ca5238.png)  
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 :

 ![image](https://community.icinga.com/uploads/default/original/1X/60e4521a441c4dcdb589518645bc395c2fe6e1a1.png)

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 ☹  
If i can provide more details please tell me, i really appreciate every hint!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [March 20, 2019, 3:38pm UTC](https://community.icinga.com/t/nagvis-missing-options-icingaweb2/656/2 "2019-03-20T15:38:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RsMonitor](https://community.icinga.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@RsMonitor](https://community.icinga.com/u/RsMonitor)\
**Post date:** [March 21, 2019, 9:19am UTC](https://community.icinga.com/t/nagvis-missing-options-icingaweb2/656/3 "2019-03-21T09:19:32Z")

</div>

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](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
