Hello,
after playing around with my NagVis configuration I've got a new Exception whilst trying to load the NagVis page.
I've tried different approaches and i don't know what to do anymore.
I'm working on Ubuntu 14.04 and those are my config files for NagVis
PHP: index.php
Code: nagvis.ini.php
- [global]
- authmodule="CoreAuthModIcingaweb2"
- authorisationmodule="CoreAuthorisationModIcingaweb2"
- logonmodule="LogonIcingaweb2"
- file_group="www-data"
- file_mode=660
- [paths]
- base="/usr/local/nagvis/"
- htmlbase="/nagvis"
- htmlcgi = "/icingaweb2"
- [defaults]
- backend = "ndomy_1"
- urltarget = "_top"
- hosturl="icingaweb2/monitoring/list/hosts#!/icingaweb2/monitoring/host/show?host=[host_name]"
- hostgroupurl="[htmlcgi]/monitoring/list/hostgroups?hostgroup_name=[hostgroup_name]"
- serviceurl="[htmlcgi]/monitoring/service/show?host=[host_name]&service=[service_description]"
- servicegroupurl="[htmlcgi]/monitoring/list/servicegroups?servicegroup=[servicegroup_name]"
- mapurl="[htmlcgi]/nagvis/show/map?map=[map_name]"
- headermenu="0"
- stylesheet="icingaweb-nagvis-integration.css"
- urltarget="_parent"
- hosturl="/icingaweb2/monitoring/host/show?host=[host_name]"
- hostgroupurl="[htmlcgi]/list/hosts?hostgroup=[hostgroup_name]"
- eventsound=0
- [index]
- showrotations=0
- [automap]
- [wui]
- [worker]
- [backend_live_1]
- backendtype="mklivestatus"
- socket="unix:/var/run/icinga2/cmd/livestatus"
- [backend_ndomy_1]
- backendtype="ndomy"
- dbhost="localhost"
- dbport=3306
- dbname="icinga2"
- dbuser="icingaweb"
- dbpass="!Icinga2_DB"
- dbprefix="icinga_"
- dbinstancename="default"
- htmlcgi="/icinga/cgi-bin"
- [rotation_demo]
- maps="demo-germany,demo-ham-racks,demo-load,demo-muc-srv1,demo-geomap,demo-automap"
- interval=15
- [states]
Code: apache2/conf-available/nagvis.conf
- # NagVis Apache2 sample configuration file
- #
- # #############################################################################
- Alias /nagvis "/usr/local/nagvis/share"
- <Directory "/usr/local/nagvis/share">
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- # 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"
- #AuthName "Nagios Access"
- #AuthType Basic
- #AuthUserFile /etc/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
- # RewriteEngine on
- #RewriteLock var/log/rewrite.lck
- #RewriteLog /dev/null
- #RewriteLogLevel 0
- #RewriteRule /nagvis/ - [E=REMOTE_USER:aula]
- # 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 also have a nagvis-1.0.0 module directory in /usr/share/icingaweb2/modules.
The biggest problem is the fact that another administrator didn't write a protocol of his changes.
I hope you are able to help me
With kind regards
David