Page 1 of 2
nagvis not accessible on fresh install 5.7.1
Posted: Fri Jul 03, 2020 1:12 am
by lilydalehs
Hi All,
I've downloaded and installed 5.7.1 on a fresh install of ubuntu 20.04. This machine was freshly installed for just this task.
When I try to access nagvis from the Home.. Nagvis menu I get the error
The requested URL was not found on this server.
I have tried installing the nagvis component again via Admin.. Manage Components, and the system says that it updated successfully, but still no nagvis.
Cheers,
Chris.
Re: nagvis not accessible on fresh install 5.7.1
Posted: Mon Jul 06, 2020 9:57 am
by jbrunkow
I believe we are currently experiencing an issue with
NagVis on
XI 5.7.1. We have made our development team aware and they are working to resolve it.
Thank you for reporting the error.
You may be able to solve the issue by running the following from the CLI
and then restart apache
Re: nagvis not accessible on fresh install 5.7.1
Posted: Thu Jul 09, 2020 4:25 am
by lilydalehs
Hello jbrunkow,
thanks for the response. I ran that command, and the nagvis login screen appears. however, as soon as I login with the default admin login I get the following
Code: Select all
Error: (0) Trying to access array offset on value of type bool
URL: /nagvis/frontend/nagvis-js/index.php
File: /usr/local/nagvis/share/server/core/classes/CoreAuthModPDO.php
Line: 95
#0 /usr/local/nagvis/share/server/core/classes/CoreAuthModPDO.php(95): nagvisExceptionErrorHandler()
#1 /usr/local/nagvis/share/server/core/classes/CoreAuthModPDO.php(197): CoreAuthModPDO->checkUserAuth()
#2 /usr/local/nagvis/share/server/core/classes/CoreAuthHandler.php(161): CoreAuthModPDO->isAuthenticated()
#3 /usr/local/nagvis/share/server/core/classes/CoreLogonDialogHandler.php(40): CoreAuthHandler->isAuthenticated()
#4 /usr/local/nagvis/share/server/core/classes/CoreLogonMixed.php(36): CoreLogonDialogHandler->check()
#5 /usr/local/nagvis/share/server/core/functions/index.php(56): CoreLogonMixed->check()
#6 /usr/local/nagvis/share/frontend/nagvis-js/index.php(53): require('/usr/local/nagv...')
#7 {main}
I had restarted apache, then I also tried a reboot of the machine. Same error.
Cheers,
Chris.
Re: nagvis not accessible on fresh install 5.7.1
Posted: Fri Jul 10, 2020 1:45 pm
by jbrunkow
Can you please try logging in and doing the same with another account and let us know the result?
You can run the command below on your
XI server to tell us what credentials it is trying to pass to
NagVis.
Code: Select all
grep 'dbhost\|dbuser\|dbpass' /usr/local/nagvis/etc/nagvis.ini.php
Please send ( PM ) us a profile as well. We can find lots of information about your system in there. You can download the profile by navigating to
System Profile under
System Config on the left pane > and clicking the
Download Profile button on that page.
Re: nagvis not accessible on fresh install 5.7.1
Posted: Fri Jul 10, 2020 6:30 pm
by lilydalehs
Hi jbrunkow,
while trying to figure out how I could add another user to nagvis to login as, I figured out that I was using the wrong password. I had thought the default username/password was admin/nagiosadmin and when logging in with that I get the above errors.
However, I was able to login with admin/admin. Now I am getting a stack of errors when I try to access any of the demo maps or a map I tried to create myself. The errors are
Code: Select all
Error: (0) Trying to access array offset on value of type int
URL: /nagvis/server/core/ajax_handler.php?mod=Map&act=getMapObjects&show=lhshome&header_menu=1&hover_menu=1&context_menu=1&zoom=100&_ajaxid=1594423582
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}
the output of that grep is
Code: Select all
;dbhost="localhost"
;dbuser="root"
;dbpass=""
This is a brand new, clean install of 5.7.1
I will send the config via pm as requested.
Regards,
Chris.
Re: nagvis not accessible on fresh install 5.7.1
Posted: Mon Jul 13, 2020 11:03 am
by jbrunkow
The output of the grep doesn't seem correct...
;dbhost="localhost"
;dbuser="root"
;dbpass=""
It should look something like this:
Code: Select all
;dbhost="localhost"
dbuser="ndoutils"
dbpass="n@gweb"
Have you modified the credentials in the nagvis.ini.php file manually?
I'm sorry, but I did not receive your
profile. Can you please resend it?
Re: nagvis not accessible on fresh install 5.7.1
Posted: Mon Jul 13, 2020 11:03 pm
by lilydalehs
Hi jbrunkow,
Thanks for the response. I made those changes you suggested above, but that hasn't helped. I will resend the profile again.
This is a brand new system running on ubuntu 20.04. I installed a very fresh 20.04 then installed nagios 5.7.1. I haven't made any changes to anything apart from what's been recommended in this thread, and also one fix in the thread
https://support.nagios.com/forum/viewto ... 16&t=59206 to do with python.
Cheers,
Chris.
The error is slightly different this time
Code: Select all
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-worldmap&sources=worldmap&header_menu=1&hover_menu=1&context_menu=1&zoom=100&backend_id=demo&worldmap_center=50.86837814203458,10.21728515625&worldmap_zoom=6&bbox=-1.4501953125,45.874712248904764,21.884765625,55.3915921070334&_ajaxid=1594699386
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: nagvis not accessible on fresh install 5.7.1
Posted: Tue Jul 14, 2020 1:45 pm
by jbrunkow
I believe that you were encountering a bug in
XI 5.7.1.
The good news is that we have released a fix for it in
5.7.2.
Fixed NagVis installation issue with Ubuntu 20 and CentOS/RHEL 8 due to using Python 3
Can you please try installing it again and let us know if you run in to the same issue?
Re: nagvis not accessible on fresh install 5.7.1
Posted: Tue Jul 14, 2020 3:37 pm
by lmiltchev
We are aware of the issue, and have an internal bug filed for it (task id = 15228). I expect this to be fixed in the next release of Nagios XI. Thank you for reporting this problem!
Re: nagvis not accessible on fresh install 5.7.1
Posted: Thu Jul 23, 2020 12:58 am
by lilydalehs
Hi Lmiltchev,
just checking to see if this was supposed to be fixed in 5.7.2
I have upgraded my installation to 5.7.2. Now, when I click on nagvis from the home page I am automatically logged into nagvis is nagiosadmin and get an error message "You are not permitted to access this page (Overview/view/).".
I am not given the chance to login to nagvis.
Regards,
Chris.
P.S. I just noticed jbrunkow's response above. How do I try to reinstall nagvis?