When logging attempting to login to nagvis the following error is displayed.
Error: (0) in_array() expects parameter 2 to be array, boolean given
URL: /nagvis/frontend/nagvis-js/
File: /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php
Line: 1019
#0 [internal function]: nagvisExceptionErrorHandler(2, 'in_array() expe...', '/usr/local/nagv...', 1019, Array)
#1 /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php(1019): in_array('worldmap', false)
#2 /usr/local/nagvis/share/server/core/classes/GlobalMapCfg.php(480): GlobalMapCfg->checkMapConfigIsValid()
#3 /usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php(164): GlobalMapCfg->readMapConfig(true)
#4 /usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php(305): NagVisHeaderMenu->getMapList()
#5 /usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php(82): NagVisHeaderMenu->getMacros()
#6 /usr/local/nagvis/share/frontend/nagvis-js/classes/FrontendModOverview.php(77): NagVisHeaderMenu->__toString()
#7 /usr/local/nagvis/share/frontend/nagvis-js/classes/FrontendModOverview.php(55): FrontendModOverview->showViewDialog()
#8 /usr/local/nagvis/share/server/core/functions/index.php(120): FrontendModOverview->handleAction()
#9 /usr/local/nagvis/share/frontend/nagvis-js/index.php(53): require('/usr/local/nagv...')
#10 {main}
Access_log and Error_log grep for my IP is below.
[root@nagios httpd]# cat access_log | grep 192.168.61.76
192.168.61.76 - - [15/May/2018:09:09:51 -0500] "GET /nagvis/ HTTP/1.1" 401 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
192.168.61.76 - jpeterson [15/May/2018:09:09:54 -0500] "GET /nagvis/ HTTP/1.1" 401 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
192.168.61.76 - jpeterson [15/May/2018:09:10:04 -0500] "GET /nagvis/ HTTP/1.1" 301 260 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
192.168.61.76 - jpeterson [15/May/2018:09:10:04 -0500] "GET /nagvis/frontend/nagvis-js/ HTTP/1.1" 200 1358 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
192.168.61.76 - - [15/May/2018:09:10:04 -0500] "GET /favicon.ico HTTP/1.1" 404 209 "http://nagios.acentek.net/nagvis/frontend/nagvis-js/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
[root@nagios httpd]# cat error_log | grep 192.168.61.76
[Tue May 15 09:09:54.582442 2018] [auth_basic:error] [pid 25900] [client 192.168.61.76:10719] AH01617: user jpeterson: authentication failure for "/nagvis/": Password Mismatch
[root@nagios httpd]#
I found this github where the user had my same problem but he does not give the solution.
https://github.com/NagVis/nagvis/issues/97
I am guessing I need to delete something with my maps.
Help.
NagVis- Unable to view
Re: NagVis- Unable to view
Are you having issues with logging into NagVis as "jpeterson" or as any user, including "nagiosadmin"? You haven't tried upgrading the "default" NagVis version that ships with XI, have you?
If this doesn't work, try restarting apache:
or reboot the Nagios XI server.
Let us know if this helped.
Are you sure that you are using the correct password for the "jpeterson" user? Log in Nagios XI as "jpeterson", and change your password under the "Account Information" page. Next, try to log in NagVis using your new password.[Tue May 15 09:09:54.582442 2018] [auth_basic:error] [pid 25900] [client 192.168.61.76:10719] AH01617: user jpeterson: authentication failure for "/nagvis/": Password Mismatch
If this doesn't work, try restarting apache:
Code: Select all
service httpd restartLet us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!