still can't access nagvis

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

still can't access nagvis

Post by lilydalehs »

Hello Support,

ever since I created a new Ubuntu 20.04 and upgraded to 5.7 I have been unable to access nagvis.

After being told late July that 5.7.3 would fix my issue, today I've upgraded to 5.7.3 and still no joy.

Whenever I click on nagvis from the homepage menu, all I get is

Code: Select all

You are not permitted to access this page (Overview/view/).
Can you please advise how I can get this working?

Thanks,
Chris.

PS the original thread was https://support.nagios.com/forum/viewto ... 16&t=59215
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: still can't access nagvis

Post by ssax »

Please perform these steps:

cd /usr/local/nagiosxi/html/includes/components/nagvis
tar zxf nagvis-1.9.8-nagios.tar.gz
cp -p nagvis-1.9.8-nagios/nagvis-make-admin /usr/local/nagvis/etc
cd /usr/local/nagvis/etc
./nagvis-make-admin nagiosadmin

Then login as nagiosadmin, go to Home > Nagvis:
- Click User Menu > Manage Users
- Under the Modify User row edit one of the users (not nagiosadmin)
- Add Users (read-only) to the right hand column
- Hit Save

Now logout and log back in and test and the other users. That worked for me on Ubuntu 20.
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

Re: still can't access nagvis

Post by lilydalehs »

Hi ssax,

thanks for the response. I did all that, which seemed to work ok. When I login I get a page with Map Index and Rotation Pools.

However, when I click any of the "demo" maps I get the following error. All the other pages appear to work ok but none of the demo maps will open.

Cheers,
Chris.
Error: (0) Trying to access array offset on value of type int
URL: /nagvis/server/core/ajax_handler.php?mod=Map&act=getMapObjects&show=demo-automap&sources=automap&header_menu=1&hover_menu=1&context_menu=1&zoom=100&header_template=default&root=%3C%3C%3Cmonitoring%3E%3E%3E&render_mode=directed&backend_id=demo&width=500&height=300&iconset=std_big&icon_size=22&filter_by_state=0&child_layers=-1&margin=50&rankdir=TB&overlap=scale&label_show=1&url_target=_self&_ajaxid=1601685572
File: /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php
Line: 970
#0 /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php(970): nagvisExceptionErrorHandler()
#1 /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php(489): GlobalMapCfg->verifyObjectIds()
#2 /usr/local/nagvis/share/server/core/classes/CoreModMap.php(319): GlobalMapCfg->readMapConfig()
#3 /usr/local/nagvis/share/server/core/classes/CoreModMap.php(105): CoreModMap->getMapObjects()
#4 /usr/local/nagvis/share/server/core/functions/index.php(120): CoreModMap->handleAction()
#5 /usr/local/nagvis/share/server/core/ajax_handler.php(59): require('/usr/local/nagv...')
#6 {main}
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: still can't access nagvis

Post by ssax »

This seems to be a nagvis bug with PHP 7.4, please implement these changes and it should fix your issue:
- I only ran into the first bug listed, that should fix yours, you may want to do both

https://github.com/NagVis/nagvis/issues/265
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

Re: still can't access nagvis

Post by lilydalehs »

Hi ssax,

thanks for the response.

I made both the changes that were indicated in that document, and I ended up right back where I started, with

Code: Select all

You are not permitted to access this page (Overview/view/).
So I removed the second of the changes on the page, and just used the first one mentioned, and now it seems to be working.

Thanks,
Chris.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: still can't access nagvis

Post by ssax »

Awesome, thank you for posting the update, I'll let the devs know that second one breaks it. Let us know when we're okay to close this and mark it as resolved.
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

Re: still can't access nagvis

Post by lilydalehs »

Happy to close it now.

Thanks for the assistance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: still can't access nagvis

Post by scottwilkerson »

lilydalehs wrote:Happy to close it now.

Thanks for the assistance.
Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked