Page 1 of 1
still can't access nagvis
Posted: Fri Oct 02, 2020 12:52 am
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
Re: still can't access nagvis
Posted: Fri Oct 02, 2020 6:07 pm
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.
Re: still can't access nagvis
Posted: Fri Oct 02, 2020 7:43 pm
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}
Re: still can't access nagvis
Posted: Mon Oct 05, 2020 4:40 pm
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
Re: still can't access nagvis
Posted: Tue Oct 06, 2020 11:46 pm
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.
Re: still can't access nagvis
Posted: Wed Oct 07, 2020 5:01 pm
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.
Re: still can't access nagvis
Posted: Wed Oct 07, 2020 8:53 pm
by lilydalehs
Happy to close it now.
Thanks for the assistance.
Re: still can't access nagvis
Posted: Thu Oct 08, 2020 7:48 am
by scottwilkerson
lilydalehs wrote:Happy to close it now.
Thanks for the assistance.
Closing thread