I’ve recently installed NagVis SRV and module for Icinga integration. NagVis backend is working fine, redirects working too. My only problem is that when I click on a map INSIDE icingaweb2 it shows the map but looses Icinga’s dashboard(Screenshot attached).
when it should look like this:
I think it could be related to a new NagVis SRV version because I needed to modify some links from the nagvis module configuration due to badrequestes [404]
ModuleConfiguration [ commented lines are default values]:
/etc/icingaweb2/enabledModules/nagvis/configuration.php
<?php
use Icinga\Application\Config;
use Icinga\Module\Nagvis\RestrictionHelper;
$section = $this->menuSection(N_('Maps'))
->setIcon('globe');
$section->add($this->translate('NagVis'))
#->setUrl('nagvis/show/map');
->setUrl('nagvis-sys/frontend/nagvis-js/index.php');
$prio = 0;
$restriction = RestrictionHelper::getRegex();
foreach (Config::module('nagvis')->getSection('menu') as $name => $caption) {
if ($restriction !== null && ! preg_match($restriction, $name)) {
continue;
}
$section->add($caption, array(
# 'url' => 'nagvis/show/map',
'url' => '../nagvis-sys/frontend/nagvis-js/index.php?mod=Map&act=view',
'urlParameters' => array('show' => $name),
#'urlParameters' => array('map' => $name),
'priority' => ++$prio
));
}
$this->providePermission(
'nagvis/edit',
$this->translate('Modify NagVis maps')
);
$this->providePermission(
'nagvis/admin',
$this->translate('Nagvis administration')
);
$this->providePermission(
'nagvis/overview',
$this->translate('NagVis general overview')
);
$this->provideRestriction(
'nagvis/map/filter',
$this->translate('Filter NagVis maps')
);